Markup nastiness Jan05 '05

One of the web sites I am currently converting to XHTML/CSS has some major markup issues, that are too nasty not to share.

For instance, I don’t know how many times I’ve come across markup such as this:

<font color="#000011"><span class="class"><span class="copyright">

Yuck. That makes my stomach turn. Span class CLASS!? It’s funny, but at the same time NOT funny. It makes me shiver.

Here is some more (I’m warning you not to look!):

<p><span class="bodytextgo"><font color="#000011"><b>Toll Free:</b></font></span><b><span class="bodytextgo"><font color="#000011"> </font></span></b><font color="#000011"><span class="bodytextgo"><span class="class"><span class="bodytextgo"><b>[Phone number here]

Good lord! What were they thinking!?

Here’s another way to say the same thing as above:

<p class="bodytext">Toll Free: [Phone number here]</p>

Was that so hard?

Categories: Markup

Add Feedback (view all)

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Yikes! Looks like someone was using FrontPage, huh? Dirty code makes me feel dirty (and not in a good way), and I can't stand it either. L ... Read more.

Chad, I agree. I love using new lines (\n) and tabs (\t), as well. I like viewing the source and seeing nice, clean, structured code. ... Read more.

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Stats

2 unique visits since August 2008

Syndicate

Advertisements