Top "Semantic-markup" questions

For questions related to separation of content and presentation of semantic tags, embedding structured metadata into HTML markup using [rdfa], [json], [microdata] or [microformats]. There are four categories of the most common and important semantic elements: document structure, textual meaning, media type and correlation tags.

When to use <br> line breaks vs CSS positioning?

I've often wondered about the proper use of a <br> line break. Seems that often they are incorrectly …

html css w3c semantics semantic-markup
Which elements are "valid" to place inside <td> tag?

I know that it's not a good idea to place div inside td, but what about span and other elements? …

html semantic-markup
Why does the W3C advise wrapping input elements in <p> tags?

I've seen a lot of examples on the web where forms are laid out like so: <form> <…

html forms w3c semantic-markup
Is it necessary to have <tbody> in every table?

Is it necessary to have <tbody> in every table? According to Standards.

xhtml w3c semantic-markup w3c-validation
Semantic HTML of an articles list

In a typical index of articles (like a blog without excerpt) like this image: those items should be a list (&…

html semantic-markup
Semantic HTML markup for a copyright notice

When a web site is licensed under Creative Commons, I use the rel-license microformat. When a web site is licensed …

html semantic-markup
What html markups to use for displaying label/value data?

I want to render a profile user container that contains a list of labels and their associated values. Here is …

html css markup semantic-markup
What is the appropriate HTML 5 element for a hero unit/showcase?

A lot of marketing and content-heavy sites showcase the page's primary content using large text and/or images, sometimes with …

html semantic-markup
Is it semantically valid to put a <button> inside a <h2>?

I have a header element which needs to fire off some JavaScript when clicked. I know I should only use &…

html semantic-markup html-heading htmlbutton
Should a heading be inside or outside a <p>?

I have a div element and within that div, we have text between p elements. I want to add a …

html semantic-markup