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
Math,
3 months ago
Science,
3 months ago
Accountancy,
3 months ago
Math,
7 months ago
Math,
1 year ago
Physics,
1 year ago
India Languages,
1 year ago