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.

<code> vs <pre> vs <samp> for inline and block code snippets

My site is going to have some inline code ("when using the foo() function...") and some block snippets. These tend …

html semantic-markup
Should I use <i> tag for icons instead of <span>?

Facebook's HTML and Twitter Bootstrap HTML (before v3) both use the <i> tag to display icons. However, from …

html semantic-markup
CSS/HTML: What is the correct way to make text italic?

What is the correct way to make text italic? I have seen the following four approaches: <i>Italic …

html css semantic-markup
Valid to use <a> (anchor tag) without href attribute?

I've been using Twitter Bootstrap to build a site, and a lot of its functionality depends on wrapping things in &…

html anchor semantic-markup htmlbutton
Span inside anchor or anchor inside span or doesn't matter?

I want to nest span and a tags. Should I Put <span> inside <a> Put <…

html css semantic-markup
Is a DIV inside a TD a bad idea?

It seems like I heard/read somewhere that a <div> inside of a <td> was a …

html html-table semantic-markup web-standards
input type="submit" Vs button tag are they interchangeable?

input type="submit" and button tag are they interchangeable? or if there is any difference then When to use input …

html accessibility w3c web-standards semantic-markup
Best HTML5 markup for sidebar

I'm setting up my WordPress sidebars for an HTML5 theme and really wanting to use before_widget and after_widget …

html semantic-markup
Correct Semantic tag for copyright info - html5

What would be the best and most semantic tag/method for including a copyright notice in the footer of a …

html semantic-markup
Is it correct to use DIV inside FORM?

I'm just wondering what are you thinking about DIV-tag inside FORM-tag? I need something like this: <form> <…

html semantic-markup