Give the basic structure of an HTML document.
Answers
Answer:
The basic structure of any HTML document consists of the following sections or elements: ... The main container ( html element). The head section ( head element). The body section ( body element
Answer :
An HTML document is divided into two parts - the head and the body. An HTML document contains different tags and every tag is enclosed with start and end tag of the HTML element.
For example, the <head> tag is termed as the start tag and </head> is termed as the end tag.
The basic structure of the HTML document is given below :-
<!DOCTYPE html>
<html>
<head>
<title>
Title of the web page.
</title>
</head>
<body>
Contents of the web page.
</body>
</html>
An HTML document formally begins with the <!DOCTYPE html> element. All your HTML code resides between the <html> and </html> tags. The <html> element has two elements inside it : <head> and <body>.
The <head> element is used to specify information about the HTML Web page, such as title of the Web page. The actual contents of the Web page are specified inside the <body> element.