The layout of html is the main infrastructure of a page. The beauty of a web page depends on the layout of the page. The whole website may be a design but the layout of each different page may be different.
For example: header, navigation, content, footer, etc. The layout is designed where the page will be. Layout is the infrastructure of a page's main content area. There is a general framework for designing web pages by html.
Showing an html design and structure layout :
<! - DOCTYPE -> This is used at the beginning of a web page. This allows the browser to understand what kind of document it can process.
The <html> tag publishes the content of the web page.
The <head> tag sets the name, type, etc. keywords of the document.
<title> Requires page headers and window titles.
The <body> tag makes the content visible or useful for display.
<! DOCTYPE html>
<html>
<head>
<title>
Write the title here.
</title>
</head>
<body>
Here we have to write whatever we want to show on the web page.
</body>
</html>
Attributes : The use of words to express additional meaning in the elements of html is called an attribute. Specifies the direction of the attribute tag. For example - the <hr> tag is to be placed to the right, left, center of the horizontal line.
To set it to the right, type <hr align = "Right">
Elements : The part between any start and end tag in html is called an element.
Some tags do not have any elements, such as <br> <img> etc. Usually those
Tags do not have the last tag, they do not have elements.