Computer Science, asked by gananani1823, 5 months ago

Write the HTML program to print your name with the help of essential tags of HTML.

Answers

Answered by YUVILOVE2009
0

HTML has various tags to format content, heading, align content, add sections, etc to a website. Some of the essential tags for an HTML document are doctype, <html>, <head>, <title> and <body>.

doctype

doctype is the doctype declaration type. It is used for specifying which version of HTML the document is using.

<!DOCTYPE html>

<html>

The HTML <html> tag is the container for all other HTML elements except for the <!DOCTYPE html> tag, which is located before the opening <html> tag. All other HTML elements are nested between the <html> and </html> tags.

<head>

The HTML <head> tag is used for indicating the head section of the HTML document. Tags included inside head tags are not displayed on browser window.

<title>

The <title>…</title> tag goes inside the <html>…</html>. The title text gets added on the web browser tab. It is visible on the web browsers title bar.

<head>

<title>HTML Document</title>

</head>

<body>

The HTML <body> tag shows the main content section of the HTML document. The <p> tag for formatting, <strong> tag for bold text, <ul> tag for ordered list, etc gets added inside the HTML <body>…</body> tag.

Similar questions