One of the new doctype declarations may be indicated as: But recently, I came across one t...">

HTML <! Doctype html public "">

One of the new doctype declarations may be indicated as:

<!doctype html>

But recently, I came across one that was slightly different (see source at http://html5boilerplate.com/ ):

<!doctype html public "">

But I could not understand what this public part is for?

Thank.

+5
source share
3 answers

You missed one important symbol

<!doctype html public "✰">

Inside the quotation marks there is a star symbol. They like to post it everywhere. Its valid, but not any useful: P

+7
source

this is mentioned in the html5boilerplate changelog, doctype search on the page.

This was done to disable dtd warnings in an IDE such as eclipse.

: DTD Ant Eclipse?

+1

IE10 needs PUBLIC ""to properly handle the page as HTML 5 - at least in Windows 7.

0
source

All Articles