html5 - HTML 5 - Do I need to declare DOCTYPE on includes and pages with decorator -


i'm using struts 2 , working through pages make them html 5 compliant.

all pages using single decorator jsp declared in decorators.xml

the decorator.jsp includes first line:

<!doctype html> 

do need declare first line on pages (specified in struts.xml) <!doctype html> on these?

if yes, need same <s:include />ed pages?

the doctype declaration should first line of html document rendered result. can place space characters, comments, or bom character before doctype. see conformant documents in html syntax. pages decorated in head or body of document doctype should before these tags , before tag. place doctype on every page @ first line, either included or manual, , use page decorator. doctype declaration should rendered once per html document, shouldn't include every page <s:include/>-ed in main page.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -