virtualinfocom HTML Training
virtualinfocom HTML Training
<openingtag >Content </openingtag>>
< p >A Paragraph Tag </p >
Tags should be lower-case letters if you plan on publishing your work. This is the standard for XHTML and Dynamic <HTML >. Here's quick look at some HTML tags.
HTML Tags:
Body Tag (acts as a content shell)
Paragraph Tag
<h2>
Heading Tag </h2>
< b >Bold Tag </b>
<i >Italic Tag </i >
Tags Without Closing Tags
There are a few tags that do not follow the mold above. In a way, they still have the 3 parts (opening/closing and content). These tags however do not require a formal but rather a modified version. The reason being that these tags do not really require any content. Rather some of them just need a source URL and this is enough information for the web browser to display the tag properly (image tags). Let's take a look at a line break tag.
HTML Code:
<br />
To tell the browser we want to place a line break (carriage return) onto the site, it is not necessary to type
linebreak. If every line break tag needed all three components as other do, life would become redundant real quick. Instead the better solution was to combine the opening and closing tags into a single format. Other tags have also been modified such as the image tag and input tag.
HTML Code:
//<img src="../mypic.jpg" /> -- Image Tag
-- Line Break Tag
<input size="12" type="text" /> -- Input Field
<openingtag >Content </openingtag>>
< p >A Paragraph Tag </p >
Tags should be lower-case letters if you plan on publishing your work. This is the standard for XHTML and Dynamic <HTML >. Here's quick look at some HTML tags.
HTML Tags:
Body Tag (acts as a content shell)
Paragraph Tag
<h2>
Heading Tag </h2>
< b >Bold Tag </b>
<i >Italic Tag </i >
Tags Without Closing Tags
There are a few tags that do not follow the mold above. In a way, they still have the 3 parts (opening/closing and content). These tags however do not require a formal but rather a modified version. The reason being that these tags do not really require any content. Rather some of them just need a source URL and this is enough information for the web browser to display the tag properly (image tags). Let's take a look at a line break tag.
HTML Code:
<br />
To tell the browser we want to place a line break (carriage return) onto the site, it is not necessary to type
linebreak. If every line break tag needed all three components as other do, life would become redundant real quick. Instead the better solution was to combine the opening and closing tags into a single format. Other tags have also been modified such as the image tag and input tag.
HTML Code:
//<img src="../mypic.jpg" /> -- Image Tag
-- Line Break Tag
<input size="12" type="text" /> -- Input Field
Comments