valid-html

Is there any Javascript feature that lets you check if an element was closed?

Is there any parameter/function in JS that tells you if an element was closed with an ending tag? ... for this purpose. ...

Correcting 100% Width Problem with Anchors

Ok, so I have a class that modifies the looks for a specific type of anchor that I'm using, but the problem is that the browsers keep adding the 30 pixels of padding that I have set onto the defined 100% width, so it's stretching out past the box which the anchor is located in. div.box div div div a.option_line { cursor: pointer; displa...

target="new" is not opening new tab or window of my browser in OpenSocial app!

target="new" is not opening new tab or window of my browser in OpenSocial app! ...

Does the CSS block attribute affect HTML well-formedness?

An HTML <body> element can only contain block elements such as <p>. If I declare an inline element such as <span> to be display: block using CSS does that make the following HTML well-formed? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/19...

Is it a bad practice to add extra attributes to html elements?

Hi, Sometimes I add an attribute to some of my controls. Like: <a href id="myLlink" isClimber="True">Chris Sharma</a> I know it is not a valid html. But it helps me in some cases. Is this considered as a bad practice? A friend of mine says that it is ok for Intranet environment but on internet it might not be find friendly by search...

To what point is making an HTML page valid worth it?

Since a long time ago, when I found out about the W3C Validator, I made sure every HTML document I made was valid HTML. However, I think sometimes it just isn't necessary to waste time making it valid. Of course, for actual Internet pages may be important, but is making pages on an Intranet, or even little front-ends that are used with ...