chulo — 2011-05-14T13:13:29-04:00 — #1
I have built a simple page with html5, following tutorials on the internet and a book that I have but I'm not sure if the elements, logic and strucure that I have used are corrected especially as I have still had to use divs.
Could somebody please check the code to see if they see any faults or if I should be using different elements in certain places? I 've validated in W3C and it's all good:
Aprendems microsite en HTML5
I know it's a very simple page but would appreciate the help.
scallioxtx — 2011-05-14T13:30:11-04:00 — #2
You're using all the elements in all the wrong places ...
<header> is to be used for the header of the website; your website doesn't really have one, but for example on this forum it would be the top of the top of the page with the logo, slogan, search field, etc. As such it would be highly unlikely to several <header> elements, and it's certainly not meant to use around every <hn> tag. Maybe you're confusing it which <hgroup> (which is already removed from html5 -- or "html", or whatever it's called today) spec AFAIK).
Then there is only one section in your page, which is also incorrect; the <div class="advantages"> and <div class="features"> are both <sections>s, not <divs>.
chulo — 2011-05-14T13:50:09-04:00 — #3
thanks for the help, so if I change those divs (advantages & features) to sections, do I also have to put the content into article tags too? Is it right that these two sections should be in a global section like I have done?
Also instead of <header> what should I use for the tagline "Encuentra el Curso de Educadora Infantil...