semantic-markup

Is it not wise to always expect semantically correct mark-up, in my own and others code?

Is it bad to be semantic purist all the time, at work? is it not achievable all the time ? when i saw code of any other person/interviewee. I know selection of element for a purpose is most important thing. what i should judge person ability from his code; from a good written, managed, optimized css or how he wrote class and id names...

Comprehending the Semantic web and it's methods, syntax, vocabularies and languages

Hi. I have just been introduced to the semantic web and it's family of functions but I have a hard time understanding some of it, which I was hoping someone could explain to me. As far as I've understood, RDF can be written in several syntaxes. RDF/XML, Turtle, etc. Now, I understand XML. How it is presented and how it can be parsed. ...

Semantically correct XHTML markup

Hello all. Just trying to get the hang of using the semantically correct XHTML markup. Just writing the code for a small navigation item. Where each button has effectivly a title and a descrption. I thought a definition list would therefore be great so i wrote the following <dl> <dt>Import images</dt> <dd>Read in new image nam...

Is there any guide on "When to use display:block when :inline and when :inline-block" and why?

Do you know any good article on "When to use display:block when :inline and when :inline-block" and why? and when we will have to override display:?? through css for any HTML tag/element? ...

When to use <strong> and when to use <b>?

Possible Duplicate: Is it ok to use <strong> in place of <b> blindly ? When to use <strong> and when to use <b> or other ways to give look of bold? strong has semantic value ( and useful for screen reader while b is presentation (and even valid in HTML 5). my question is not what is the difference between strong and b. The q...

Semantically-Accurate HTML5 Element for a Modal Dialog

I was wondering what some of my fellow web developers/designers felt would be the best HTML 5 element to use for a modal dialog like a lightbox, superbox, thickbox, or whatever your favorite flavor might happen to be. Since these types of UI's don't follow the typical flow of a 'normal' web page (which, apparently, according to HTML 5 s...

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

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

Semantic HTML markup for complex tables

Which HTML tags would you use to describe table like this: +--------+---------+---------+---------+ | TH1 | TH2 | TH3 | TH4 | +--------+--------+---------+---------+---------+ | TR1 | str1 | 1 | 1 | 1 | +--------+--------+---------+---------+---------+ | TR2 | str2 | 1 |...

Should there ever be anything between the end </body> tag and the end </html> tag

Is there ever an instance in which something should (or can?) be placed between the </body> and </html> tag? Or should they always be paired? I was reading the HTML5 spec, and it got me thinking about the basic structure of a page. Are there any cases where anything can/should be placed after the </html> tag? It used to be gospel that...

HTML markup for an interview

Hello, I am asking for an advice on what kind of markup should be used to mark up an interview type of content in HTML as a transcribed interview in a cleanest and semantically most sensible way? Preferably I would like something that would be valid HTML5, but that is not a hard requirement. (My initial impulse was to use <dl>, <dt> a...

Semantics and Structure of Name-Value Pairs

This is a question I have been struggling with for a while. What is the proper way to mark up name/value pairs? I'm fond of the <dl> element, but it presents a problem: There is no way to separate one pair from another - they have no unique container. Visually, the code lacks definition. Semantically, though, I think this is the correct...

What support does HTML5 provide for semantic markup and Semantic Web technologies?

It seems that, as of right now, there is little to no support in HTML5 for semantic markup using RDFa or Microformats. I've done a little bit of reading, but if I were to start using HTML5 right now, what could I do to support semantic markup (such as microformats) and Semantic Web technologies (such as RDFa)? If I want to utilize these ...

Why it is accepted to use an UL, LI structure in menu lists?

I'm new to HTML. When I started reading documentation about lists, I've noticed that everywhere an <ul>, <li> structure is used, even for creating very simple lists. But for me it's most comfortable to use only <a> elements with CSS: display: block; /* and/or */ float: left; So, why use <ul>, <li> instead of just <a>? Thanks a lot....

PHP - Words in a db - search via lexical dictionary (semantic similarity)

I'm implementing a small dictionary database where I'd like to do searches based on lexical/semantic similarity between them.. For example, beer has "sister words" such as soda, lemonade, wine, champagne each "different" in a "different direction" (in example: the first two are "moderate" versions of the idea of "beer", while the latte...

How to mark up caption for HTML lists

AFAIK, there is no dedicated element--like <caption> for tables, <figcaption> for figures, etc.--to mark the header of a list. What markup should I use? In HTML 3.0, there was an element <LH> but it is deprecated now. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget enim nec metus feugiat porta. Suspendisse ...

In the summer of 2010 is it time to start using HTML5?

I created this question as community wiki in the hope that it and its answers will be edited as the situation with HTML5 changes. Time to use HTML5? This question gets trotted out about once a year, so I might be beating a dead horse, but is it finally time (in the summer of 2010) to use HTML5 when developing a brand new web site? Rel...

How to properly markup/style ordered lists to compensate for large item numbers.

I am dynamically generating a web page containing an ordered list. The page contains 10 items and uses the attribute 'start' to number the items accordingly. A generic ordered list with 'list-style-position: outside' works perfectly fine for items with an item number less than 1000. The problem arises when item numbers are 4 or more...

Mapping HTML5 elements to HTML classes and IDs, but what about header tags?

Hello, at work we're starting to follow this particular guide for slowly implementing HTML5 goodies: http://oli.jp/2008/html5-class-cheatsheet/ The basic idea of using HTML5 structure, but with HTML4 divs with classes and IDs instead. We're aware of Javascript scripts that can genearate the require HTML5 elements (so IE can actually st...

Which html element is semantically most appropriate for displaying a group of emails?

Hello. I have a group of emails (I hesitate to use the word list, as it may prejudice you answers), which I want to display in a tabular manner with columns of Subject, Content, Date, Action (whose value may contain a Delete button, for example). Semantically speaking, would you use a list (<dl>, probably) or a <table> for this data? My...

Correct usage of HTML5 <hr> tag

Hi, I'm writing a new webpage for a company and I have (a sane subset of) HTML5/W3C recommendations in mind. After reading the semantic meaning of <hr />, I was wondering if this was a good place to use it: <section name="historyItem"> <h2>2002</h2> <p>Dolorem ipsum dolor sit amet in 2002, consectetur [...]</p> <hr /> ...