Hello readers, welcome to this page. Let's discuss the structure of the HTML document.
So guys, what is structure of the HTML document?
As we know every document having its own structure. Likewise, HTML is also having its own structure. The HTML document has two parts. The HEAD, and the BODY. These parts are contained within the HTML element -it simply denotes that, it is HTML documents.
An HTML file can be created by using a simple text editor viz notepad, WordPad, edit plus,etc., and the file must be saved with an extension .htm or .html.
The title of the HTML document is defined with the tags. This will display the title in the title bar of the window.
The body section contains the information that we want to display on the webpage. This section begins with <body> and ends with </body>.
<head>
<title>Welcome Readers</title>
</head>
<body>
hello readers, welcome to my blog
</body>
</html>
An HTML file can be created by using a simple text editor viz notepad, WordPad, edit plus,etc., and the file must be saved with an extension .htm or .html.
So the explanation of these markup tags is:
<html>......</html>
All the HTML documents must begin with opening tag <html> and closing tag </html>.Head section
The head section is used to display the title of the HTML document. This section is also having both the opening tag <head> and ending with </head>.<title>................<title>
Now what is the use of <title> tags
Body section
So what is the body section?
Sample coding:
<html>
<head>
<title>Welcome Readers</title>
</head>
<body>
hello readers, welcome to my blog
</body>
</html>
ALSO READ: BASICS OF HTML
No comments:
Post a Comment