<article> Not allowed to be inside a div or even body?

Discussion in 'Web Design and Development' started by Cabbit, Aug 13, 2010.

  1. Cabbit macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #1
    I've been trying to validate some of my HTML5 coding, it seems that i am really messing up the use of <article> by putting it inside <body> or a <div> yet this seems to be logical that there is a <body> and it has a <article> and that these can have <section>.

    But alas validator says no, is this my problem or the validators problem?
     
  2. eponym macrumors 6502

    Joined:
    Jul 2, 2010
    #2
    <article> is an HTML5 element. You're going to have validation issues outside of experimental HTML5 validators.
     
  3. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #3
    I worked it out i think, i had some spelling mistakes and it seems articles need things like headers and stuff to be fully valid i think.

    Its valid html5 now so all's good.
     

Share This Page