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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -