<body> these four tags are known as structural tags. These tags are basic essential elements to construct a web page. Table: . Opening Tag Closing Tag Description <html> </html> The <html> tag identified the document as an HTML document.
All HTML documents should begins with <html> and end with </html>. <head> </head> The <head> tag contains information about the document, including its title, scripts used, style definition and document descriptions. <title> </title> The <title> tag contains the title of the document. The title specified between opening and closing tags appears in the title bar / page tab of the browser.
<title> tag should be placed within <head> tag. <body> </body> The <body> tag encloses all the tags, attributes and information to be displayed in the web page. <body> tag should be entered below the </head> tag. .
. . HTML Writing Tools To get started writing HTML, there is no need of web server, web hosting or even internet connection. You can write, test and link web pages without a network.
To create and testing a HTML document i.e. web page need an application (text editor) to write HTML code and a browser to view them. Using a simple text editor (Notepad for Windows or getit for Linux) is a good way to learn HTML coding. Chapter Pages .
. . Creating a Webpage Step : Open a text editor Windows7 : Start → All Programs → Accessories → Notepad Step : In the appearing Note pad / Text Editor, type the HTML document. (Refer Figure .
) Step : Save the file as HTML • Click File → Save (or) Press Ctrl + S • Save as dialog box appears as shown in the Figure . • In “File Name” text box, type a file name with .htm or .html extension. • Select “All Files” from “Save as type” list box. • Click “Save” button.
Save in Location Select "All Files" File name with .htm or. html Figure . Save As dialog box . .
. . Viewing Webpage in a Browser: Step : Open a Browser (Internet Explorer /