Page 12 - PlusGPT_V2.1_C7_Flipbook
P. 12
The WIDTH is the attribute of the <HR> tag which specifies the width of the horizontal line in pixels or
percentage. By default, the width is 100%.
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.
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. A HTML file is saved with .htm or .html extension.
Basic Structure of HTML Document is as follows:
<HTML>
<HEAD>
<TITLE>Title of the web page</TITLE>
</HEAD>
<BODY>
Content of the page
</BODY>
</HTML>
A 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.
CREATING AND SAVING A HTML DOCUMENT
Let us start with the designing of first web page by using the
basic tags.
Step 1: Open the Notepad and write the following
HTML code:
<html>
<head> HTML code in Notepad
<title> FIRST WEB PAGE </title>
</head>
<body bgcolor = "lightgreen">
10 Premium Edition-VII

