Adding Content



    Now that you have created your web page, it's time to add some content. Hopefully, you have some information or some insight that you'd like to share with the rest of the world. Adding content to HTML files is very simple. HTML files is very simple. To add text to an HTML file, just type it into the body of the file. To change the file that you already created (see Creating A Web Page), first open the file in a text editor (or if you already have it open, just go to it). The page should look like this right now.
<HTML>
This is a HTML page
</HTML>

    Now, we need to define a distinct body section. To do this, a <BODY;> tag must be placed. This goes after the <HTML;> tag. Like this:
<HTML>
<BODY>
This is a HTML page
</BODY>
</HTML>

    You may have noticed that HTML tags work in pairs, an opening and closing tag. As you can see, this page now has an opening <HTML> and closing </HTML> tag. The closing tag differs from the opening tag by the addition of a / in front of the closing tag. This is true for most HTML tags.     Once the body section has been defined, you can begin to add your content. As mentioned earlier, all text outside of HTML tags is displayed as text on the web page. So, if you wanted your web page to say that you liked ice-cream all your would need to do would be to type "I like ice cream" in the body of the page. Now your page would look like this.
<HTML>
<BODY>
This is a HTML page. I like ice cream.
</BODY>
</HTML>

    Now that you've got the basic idea of adding content, we can look into formatting text.
To continue to the next lesson, click here (Formatting HTML).
Or click here to go back to the Main Page




This page created by English 303 Students Rachel Galliano, Kyle Johnson, Joel Ford, Ben Roubique and Lydia Starns, February 2002.