Zend Framework headLink() helper and HTML5

Posted by Richard Knop on Stack Overflow See other posts from Stack Overflow or by Richard Knop
Published on 2011-09-11T13:12:30Z Indexed on 2012/09/16 21:38 UTC
Read the original article Hit count: 120

Filed under:
|
|

I have set doctype to HTML 5 like this:

$view->doctype('HTML5');

Then I have added a stylesheet like this:

$view->headLink()->appendStylesheet($view->baseUrl().'/css/reset.css');

It produces link tag like this:

<link href="/css/reset.css" media="screen" rel="stylesheet" type="text/css" >

But for HTML 5 this would be correct, no?

<link rel="stylesheet" href="/css/reset.css">

One more question. How to produce meta tag like this with headMeta() helper?

<meta charset="utf-8">

© Stack Overflow or respective owner

Related posts about php

Related posts about html5