Site sections

q-and-a category

Valid replacement for <ol type=”a”>

Tuesday, September 16th, 2008

I was recently sent this question:

I have used <ol type=”a”> in my markup. The W3C validator tells me that this is invalid. How can I change the “type” of an ordered list’s the list without using this attribute?

Answer:

The type attribute associated with the <ul> , <ol> and <li> has been deprecated as it is […]

Google and “noodp”

Saturday, August 9th, 2008

I was recently sent this question:
I noticed that some sites use the code below. What is this used for?
<meta name=”robots” content=”noodp” />
Answer:
First of all, this is a meta element. When used, it must be placed in the head of html documents. The meta element is used to provide meta information about a document. The meta […]

“Checked” inputs and attribute minimization

Wednesday, June 18th, 2008

I was recently sent this question:
I tried to use the following code in an XHTML page. When I validated the page, this showed up as invalid. Why?
<input name=”name” type=”checkbox” checked />
Answer:
The use of “checked” in this way is referred to as “attribute minimization”. This means the author has used the attribute’s name but has not […]

Naming id’s with numbers

Thursday, April 10th, 2008

I was recently sent this question:
I am trying to apply a div to a page and it will not show when I use the name “420wide” but it will if I use “wide420″. Why is this? Is this rule documented somewhere?
The simple answer is that the ID name must be unique in a document and […]