For this section, you can download our HTML5 web page. Click below and it will open in a new window or tab. The file is a text file, so you'll need to save it as html_elements.html rather than html_elements.txt as it is now. If you're not sure how to do this then refer to the earlier page on this topic. Here's the file, though:
Download the HTML5 file
The code should look like this:
The first thing to notice when you access the code is the SCRIPT tags in the head section:
The important part in the BODY of the HTML is this part:
Before the button is clicked, the web page looks like this:
The script will add the news just above the footer, and after the main contents. We'll continue this lesson on the next page, Create HTML Elements.