Page 91 - iPlus_Ver_2.0_class_6
P. 91
i + RULES FOR WRITING HTML CODES
There are certain rules for writing HTML codes. Lets us learn more about them:
• Container tags should always be closed properly.
• Values given to the attributes should be enclosed within the double quotes.
• Tag name should not contain spaces.
• There should be no spaces between < and > in a tag.
• Tags must be nested correctly.
#Digital Literacy
Let’s CatCh Up
Define the following terms:
a. Container Tags - .............................................................................................................................................
b. Empty Tags - .............................................................................................................................................
c. Nesting of tags - .............................................................................................................................................
d. Attribute - .............................................................................................................................................
i + HTML DOCUMENT STRUCTURE
An HTML document is a text file containing markup tags. The markup tags tell the Web browser
how to display the web page. An HTML file is saved with .htm or .html extension.
Basic Structure of Html Document is as follows:
<!DOCTYPE html>
<html>
<head>
<title>Title of the web page</title>
</head>
<body>
Content of the page
</body>
</html>
An HTML page is divided into two sections called Head and Body.
• Head contains the information which is not to be shown on the web page.
• Body contains the information which is to be shown on the web page.
i + BASIC HTML TAGS
HTML provides various tags such as <!DOCTYPE html>, <HTML>, <HEAD>, <TITLE>, <BODY>,
and many more. Let us discuss some tags in detail.
89
HTML—An Introduction

