You might have seen example in previous page about how to go with html but I will assume you are still not familiar with tags that are necessary so now let us get familiar with tags.

In HTML there are two types of tags and they are :

1. logical tags and 
2. Physical tags
3. Nested Tags

Logical Tag

In HTML there are both logical tags and physical tags. Logical tags are designed to describe the enclosed text's meaning.

 Physical Tag
Physical tags on the other hand provide specific instructions on how to display the text they enclose. Examples of physical tags include: ƒ : Makes the text bold.

Physical tags were invented to add style to HTML pages because style sheets were not around, though the original intention of HTML was to not have physical tags. Rather than use physical tags to style your HTML pages, you should use style sheets.

Nested tag
The tag also contains other tags. It is tag within a tag is known as nested tag.
When you enclose an element in with multiple tags, the last tag opened should be the first tag closed. 

Note: It doesn't matter which tag is first, but they must be closed in the proper order. 


HTML Elements
 Remember the HTML example from the previous page: 
<html>
<head>
<title>My first example</title>
</head>
<body>
<b>HI there </b>
</body>
</html>

This is an HTML element

The HTML elements begins with a start tag <b>
The content of the HTML element is to display in bold 
The HTML elements ends with an end tag </b>

The purpose of the tag is to define an HTML element that should be displayed as bold.

The HTML element starts with the start tag <body>, and ends with the end tag </body>. The purpose of the <body> tag is to define the HTML element that contains the body of the HTML document. 


Comments