<!DOCTYPE html><html><body><h1>Welcome Back</h1><hr><br><p> Hello class </p><p> No more Covid19 </p><p> Be safe </p><p> Best wishes </p><h2>See you soon</h2><hr><br><inputtype="text"><inputtype="button"value="Insert header"><br><br><inputtype="color"><inputtype="button"value="Apply to background"><br><br><inputtype="text"><inputtype="button"value="Insert header"><br><br><inputtype="button"value="Show paragraphs"></body></html>
Copy and paste the previous code and do the following:
1- When the user writes inside the text box and clicks Insert to header, this will change the header of the page with the written text.
2- When the user selects a color and clicks Apply, the background color of the page should be changed.
3- When the user clicks on a paragraph, this will change the background color of the paragraph to yellow.
4- When the user double clicks on any paragraph, this will hide the paragraph.
5- Clicking on Show all paragraphs, this will show all the paragraphs in the page.
When the user clicks on any paragraph ( the color of the background should be yellow), when the user clicks on another paragraph, only one paragraph should have the background color been set to yellow.
تم التعديل في بواسطة عبود سمير وضع الأكواد في مكانها المُخصص
السؤال
Mari Carmen
هي كود html ..ممكن مساعده بكود JavaScript:
Copy and paste the previous code and do the following:
1- When the user writes inside the text box and clicks Insert to header, this will change the header of the page with the written text.
2- When the user selects a color and clicks Apply, the background color of the page should be changed.
3- When the user clicks on a paragraph, this will change the background color of the paragraph to yellow.
4- When the user double clicks on any paragraph, this will hide the paragraph.
5- Clicking on Show all paragraphs, this will show all the paragraphs in the page.
When the user clicks on any paragraph ( the color of the background should be yellow), when the user clicks on another paragraph, only one paragraph should have the background color been set to yellow.
تم التعديل في بواسطة عبود سميروضع الأكواد في مكانها المُخصص
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.