Computer Science, asked by shashikantvidhate143, 5 months ago

explain the structure of an html document​

Answers

Answered by Anonymous
2

Answer:

An HTML document has two main parts: the head and the body. But firstly every HTML document should start by declaring that it is an HTML document.

Answered by Ramninder28
5

An HTML document has two main parts: the head and the body. But firstly every HTML document should start by declaring that it is an HTML document.

Declaration:-

To declare HTML:- <html></html>

To declare head:- <head></head>

To declare body:- <body></body>

And one important thing:-

<!DOCTYPE html> declaration defines that this document is an HTML5 document.

Code:-

The HTML code looks like this:-

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

</html>

Similar questions