×
Given the following HTML:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div class="header"> </div> <section id="container"> <ul> <li class="first">one</li> <li class="second">two</li> <li class="third">three</li> </ul> <ol> <li class="first">one</li> <li class="second">two</li> <li class="third">three</li> </ol> </section> <div class="footer"> </div> </body> </html>
Write the code necessary to do the following:
section with an id of container without using querySelector.section with an id of container using querySelector.ol tag.section with an id of container the text "Hello!".main to the div with a class of footer.main on the div with a class of footer.li element.li the text "four".li to the ul element.lis inside the ol tag and give them a background color of "green".footer.You can find solutions to the exercises here
When you're ready, move on to Introduction to Events