Homepage
Sign in / Sign up
Go to the profile of Nathan Kelly
Nathan Kelly
Front-end Architect @ SBS
Oct 11, 2016
I once worked on a site that was using <span>s with display: block where I would have used a <p>.
David Gilbertson
41

Keep in mind a <p> also has semantic meaning while <span> does not, nor does <div>. So if it’s a non-semantic block level element you need, use a <div>.

  • Go to the profile of Nathan Kelly

    Nathan Kelly

    Front-end Architect @ SBS

    • Share
    Go to the profile of Nathan Kelly
    Never miss a story from Nathan Kelly, when you sign up for Medium. Learn more
    Never miss a story from Nathan Kelly