Page 163 - Webapplication11_C11_Flipbook
P. 163
Step 2: Click on File menu.
Step 3: Click on Save to open Save As dialog box.
Step 4: Choose the location where you want to save the file. In this case, Desktop is selected.
Step 5: Enter name for the file as ‘First Web Page.html’.
Step 6: Click on Save button to save the file.
2
4
3
6
5
Viewing a Web Page
After creating and saving an HTML document, you
need to open it into a web browser to view it. To
open a HTML document into web browser, perform
the following steps:
Step 1: Open the folder in which you have saved the
HTML document.
Step 2: Locate the file and double-click it. Web page opens in your default web browser window.
Now, let us understand the various tags.
Tag Description
<html> </html> Tell the browser that it is an HTML document.
<head> </head> Defines the header section of the webpage
<title> </title> Specifies the title of the webpage.
<body> </body> Defines the document’s body.
<p> </p> Indicates a paragraph.
<h1> to <h6> </h1> to </h6> Indicates first to sixth heading levels.
<br> Gives a single line break.
Stands for horizontal rule. Draws a single straight line
<hr>
across the webpage.
<!-- --> Defines comments ignored by the browser.
Using The <body> Tag
The body tag is a container tag that encloses all of the text, graphics, and other elements that make up a web page. We
can utilise this tag’s attributes to set formatting features for the full HTML document.
Website Building Using HTML and CSS 161

