Computer Science, asked by doniyogino, 9 months ago

Give the basic structure of an HTML document.​

Answers

Answered by khushisingh4899
2

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

Answered by MajorLazer017
9

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 :-

\rule{200}2

<!DOCTYPE html>

<html>

<head>

<title>

Title of the web page.

</title>

</head>

<body>

Contents of the web page.

</body>

</html>

\rule{200}2

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.

Similar questions