explain the structure of an html document
Answers
Answered by
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
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
Physics,
2 months ago
Accountancy,
2 months ago
Math,
5 months ago
Math,
11 months ago
Physics,
11 months ago
India Languages,
11 months ago