Tags
HTML as a language is composed of these basic parts:
<the
opening tag> the content </the closing tag>
The idea behind HTML is to take a piece of text and mark-it-up by
wrapping it in tags.
The opening
tag is formatted like this:
<p>
And the
closing tag is formatted like this:
</p> note the forward slash which indicates this
tag is a closing tag.
Let’s see how HTML tags can be used to markup this piece of text:
This is my
paragraph of text before I added any markup.
<p>This is my
paragraph of text after I added the HTML tags to it.</p>
What do the
different tags mean?
HTML is what is known as a semantic language (one that relates to
the meaning of the language). I like to think of it as “it means what it says, it says what it means.”
Each tag wraps around a portion of the text, and also describes the portion of text it’s
wrapping around.
Because of this, we will use different HTML tags to mark-up
different parts of our text.
<strong>
<em>
<img src=”” alt=””
title=”” />
<div> (used to divide up the page )
<span> (use this to isolate some txt )
<ul> & <ol> & <li> (list tags,used to create menus )
<a> tag: mailto links (used to send a email)
<a herf ="
<strong >
<img src =
<strong >
<img src =
No comments:
Post a Comment