Create a new HTML file separate from previous labs. The page should contain as many page elements as you need to produce the required output.Style your HTML file using CSS if desired.Demonstrate the...







  1. Create a new HTML file separate from previous labs. The page should contain as many page elements as you need to produce the required output.



  2. Style your HTML file using CSS if desired.



  3. Demonstrate the use of an if/else construct.



  4. Demonstrate the use of at least four of the following comparison operators:



    • ==



    • !=



    • ===



    • !==



    • >






    • >=



    • <>









  5. Demonstrate the use of at least two of the following logical operators:



    • &&



    • ||



    • !









  6. Demonstrate the use of the switch statement with at least three case values and a default code block.



  7. Use parseInt() to demonstrate the difference between adding two digits stored as strings and adding the same two digits stored as integers:





  8. Demonstrate the difference between == and ===.



  9. Use a loop to output the contents of an array to the page.



  10. Use a Truthy value in a condition.



  11. Use a Falsy value in a condition.



  12. Select a single page element and change the textContent.



  13. Select at least three page elements by their class attribute or tag name and use innerHTML to change the formatting as well as the content.



  14. Demonstrate the difference between using textContent and innerHTML to output an HTML element with content:





  15. Add a page element with content to the page.



  16. Select a page element based on its ID or class attribute value.



  17. Change the value of the ID or class that was selected in step 16. Changing the attribute value must show visible results on the page.



  18. Remove a page element



  19. Select at least three page elements with a single selection by tag or class attribute value.



  20. Loop through the selection from step 19 and add a new class attribute to each one. This change must show visible results on the page.



Feb 01, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here