explain the basic structure of HTML
Answers
Answer:
Given in the explanation.
Explanation:
Structure as follows:
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Definitions:
<HTML> - First and most basic Tag in starting an HTML Document
<HEAD> - Defines the Heading of an HTML Webpage and is used to give a title and icon to the page.
<BODY> - Defines all the Main Content of an HTML Document
</> - A Tag with a forward slash in it is used to indicate the closure of a container tag.
Question:
Explain the basic structure of HTML.
AnSwEr:-
An HTML document has two main parts:
1)head- The head element contains title and meta data of a web document.
2)body- The body element contains the information that you want to display on a web page.
Some important points-
To make your web pages compatible with HTML 4, you need to add a document type declaration (DTD) before the HTML element. Many web authoring software add DTD and basic tags automatically when you create a new web page.