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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -