Computer Science, asked by anshudalal23, 11 months ago

explain the basic/minimal structure of html document

Answers

Answered by sunil12348
3

<html>

<head>

<title>here is your answer</title>

</head>

<body>

please mark me as best answer

</body>

</html>

Answered by harshitapandey19
8

HTML document is a web page, which helps you in showing content on the website. It consists of tags, which has an opening as well as closing tags. However, some tags do not come in pairs i.e. they do not have a closing tag. The basic minimal structure also has some tags, which you need to add.

doctype

This is a doctype declaration, which begins the HTML program and gets added as <!DOCTYPE html>. It is added to tell and instruct the browser about the document.

<html

The first thing after the doctype declaration is the <html> tag. All the other HTML tags comes inside the <html>…</html> tag tells. Every tag inside this tag follows HTML rules.

<head>

The <head> tag helps you in adding the title for the HTML document using the <title>…<title> tag.

<body>

The <body> tag allows you need to content to the HTML Document. You can use the <p>…</p> tag to add content to the document, which is visible on the web page.

Similar questions