Tuesday, August 9, 2011

HTML5 Tutorial 2: More basic tags

The tags we will be covering today is:  <b> <br /> <i>  and <del>, These tags are very useful for making your site easier to read and more user friendly.

<b>
The <b> tag is used for defining bold text, the body code for the <b> tag looks something like this:
<body>
   <b>This is bold text</b>
</body>
The end result of this looks like this:
This is bold text
 <br />
<br /> signals the browser to insert a line break, when inserted to the body code it looks like this:
<body>
  This is line one.
  <br />
  This is line two.
</body>
This would look like this:
This is line one.
This is line two. 
Although it is not necessary to have a / in the tag it is good form to do so.

<i>
<i> is the tag to make text italicized, Your body code should look like this when it is put in:
<body>
 <i>This text is italicized</i>
</body>
In your browser it will look like this:
This text is italicized 
 <del>
The final tag I will be showing you today is the <del> tag, this tag strikes through text like this, when added to the body of your HTML document it looks like this:
<body>
<del>This text is deleted</del>
</body>
The final product looks like this:
 This text is deleted

That's it for this time, See y'all tomorrow.

7 comments:

  1. getting closer to l33t status AWWW YEAAAAA

    ReplyDelete
  2. I remember when I first learned HTML, I thought I was wizard.

    ReplyDelete
  3. Nice. I know all this but its good info :P

    ReplyDelete
  4. Heh, never knew that del tag. I never quite learned HTML5, when I learned it I think it was still 4. and I never learned it that well :P

    ReplyDelete
  5. Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
    html5 converter

    ReplyDelete