Home Logo
Show Full Menu
Hide Full Menu
 

Begin scripting in the <body> tags

Created: 16/09/10 Views: 1267 myFave Image

In this tutorial we will start to write inside our <body> tags.
As we learnt in the first tutorial, <html> </html>, <head> </head> and <body> </body> are the main tags to layout a HTML file.
We learnt that it is the <body> </body> tags that contain all the visual content for the web page. So now we are going to learn some simple tags that we can use to create a simple web page,

p: This tag is used to create paragraphs.

br: This tag is used to create line breaks.

h1: This tag is used to create headers, there are also h2, h3 etc... You may be similar to this type of formatting if you have used MS Word.

u: This tag makes the text between its tags bold. You can also use <b></b> to achieve the same results.

em: This tag makes the text between its tags emphasized(italic). You can also use <i></i> to achieve the same results.


Here is an example of the tags inside the <body></body> tags
  • <body>
  • <h1> <u> This is my header </u> </h1>
  • <p> <strong> Hello and welcome to my web page. </strong>
  • <br />
  • <em> I hope you like it. </em>
  • </p>
  • </body>


Here is an what it will look like

This is my header

Hello and welcome to my web page.
I hope you like it.


next tutorial: Understanding text styles

There are no comments