html structure

html structure is a simple and a powerful language used to define the structure of HTML documents. It allows you to format text, images and save it as text only file that all the computers understand.
we shall now examine each section individually.
html structure

  • <HTML>: The entire document is enclosed within <HTML> and </HTML> tags. It actually tells the web browser where the page starts and where it ends. It usually consists two parts  HEAD and BODY.

  • <HEAD>:  It is marked by an opening tag <HEAD> and a closing tag </HEAD>. It consists of information such as the title of the webpage.

  • <TITLE>: The title element contains the title of HTML document that appearance on the title bar of the browser's window when the webpage is loaded. It is enclosed between <TITLE>and </TITLE>

  • <BODY>: The body element contains the actual contents of your HTML document that can be seen by the end user. It is enclosed between <BODY> and </BODY>
For Example--

 <html>
<head>
<title>html structure</title>
</head>
<body>
<h1>hello heading 1</h1>
</body>
</html>
so the above example is the html structure.In this example title contains the phrase "html structure" and head always contains the title contain. And then the body is started and then it contains heading1 and then the all the container tags will be closed.

container tags are those tags which has opening as well as closing.

html structure