Tag Archives: HTML5

Symfony2 and required fields

I just came across my first HTML5 ‘issue’. I was testing the Symfony2 forms, and for required fields I always got the message ‘Please fill out this field.’ which was shown in a tooltip. I started looking in the Symfony2 code where this message came from, but I couldn’t find it anywhere. So I started inspecting the generated html, and I saw the ‘required’ attribute on the input fields. Apparently this is a new attribute in HTML5, and most browers already support it. I now realise that HTML5 really is something I should learn more about…

While looking for some more info, I came across an online book that seems very interesting : http://diveintohtml5.org. Definitly on my todo list now :)