Page 81 - TP_Prime_v2.2_Class_6
P. 81
Text Editor
We can create HTML documents using normal text editors like Notepad or Wordpad. The
user should have a proper knowledge of the HTML commands to develop a web page in Text
Editor.
Tags and Attributes
As we know, HTML is a markup language. It uses tags to markup the content of the web HTML—AN INTRODUCTION
pages. These tags also have attributes. Let us learn more about tags and attributes.
Tags
Tags are the basic building blocks of a web page. They tell the browser how the information
is to be displayed on the web page. Tags do not appear in the browser window but they 79
affect the display of the text and non-text items within it. Each tag in HTML follows
specific rules and syntax. HTML tags are not case-sensitive.
In HTML document, a tag name begins with an opening angular bracket (<) and ends with
closing angular bracket (>).
For example,
<TagName> content </TagName>
Opening tag Closing tag
Both the opening and closing tags are the same. The only difference is that the closing tag
contains a forward slash before the tag name. Most of the tags in HTML have opening and
closing tags. A combination of an opening tag, content, and closing tag is called an element.
The HTML tags can be categorised as:
• Container Tags: The tags that have both opening and closing tags are called Container
Tags.
For example <b> ...... </b>
<head> ...... </head>
• Empty Tags: Empty tags contain only an opening tag. They do not have a closing tag.
These tags do not enclose any data.
For example <br>, <hr>, etc.

