answersLogoWhite

0

Is the HTML TAG needed or is it optional?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

In HTML5, according to the W3C, the HTML tag is optional. (Both the opening and closing tag.) As a matter of fact, and as part of a carry-over from HTML 4.01, the HEAD and BODY elements are also optional.

That said, internet Explorer has been known to fail to render HTML5 elements that are not inside a BODY element. And, while you can work without these tags, it will make understanding and maintaining the elements more difficult.

In XHTML, none of these elements are optional. Neither the opening, nor the closing tags.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is the HTML TAG needed or is it optional?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the correct HTML element for inserting a line break?

Correct HTML tag for inserting a line break? you can use <br/>


What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


Syntax when using image tag to an HTML document?

The basic syntax is:Additional optional attributes include height, width, and border.


What HTML tag is used to mark the top of the page?

The first tag you use when developing an HTML document is the tag. The first tag you use for the main content of your page is the tag. is the tag that marks the top of an HTML page. The minimum required first like is , which starts the definition of the page content.


What is the first tag in every HTML document?

The HTML document begins,and ends with the tag . The element defines the whole HTML document. The element has a start tag and an end tag The Start element Tags within the HTML tags begins the content to be displayed for the web page (end body tag) The basic Tags needed to start an HTML document (and must be ended) look like this: This is where the content goes


What HTML tag would you use to indicate a line break?

A tag is used to insert a line break. This tag is the HTML way of outputting a new line.


What is used to meta tag in HTML?

html


The tag that appears after the HTML tag is?

<head>


Which tag tells the Web browser that the document file contains HTML?

The <html> tag at the top and the bottom tells the browsers. It is defined as <html> and </html> at bottom.


What is the full form of BR in HTML?

The correct HTML form for BR is . BR is a tag to force a line break. It was introduced as a single tag, with no companion tag. The and tags work with older HTML, but for HTML 5, you need to have an ending tag for each tag. You can create your own ending tag by adding forward slash within the single tag: .


What does I mean in html?

The I tag is the italics tag: This is in <i>italics</i>.


What are container tag and singular tag in HTML?

Head