Cursor
Cursor

Reputation: 111

Is <!DOCTYPE html> an html tag?

I see that HTML tags start with a < and end with a > So, is <!DOCTYPE html> a HTML tag?

Upvotes: 2

Views: 83

Answers (1)

Quentin
Quentin

Reputation: 943510

HTML 5 defines:

Tags are used to delimit the start and end of elements in the markup.

The Doctype does not delimit an element. So no, it is not a tag.

It is:

a required preamble

Upvotes: 5

Related Questions