Re: Site source code
Posted: May 4th, 2011, 11:44 am
It's definately leaner, but it still has a lot of non-semantic and nonsensical markup... and it's still an accessibility train wreck with the fixed metric fonts.
Headings for example:
H2, H3 and possibly H4 respectively... each indicating the start of a subsection. That's heading tag's job -- EVEN if you were doing bold on those you aren't emphasizing them, so even <b> would be more appropriate than strong.
You also appear to be using paragraphs in the typographical/HTML 3.2 style, instead of the HTML 4/newer style. Pretty much every P inside the updates box is wrong/pointless/shouldn't be there. "There are no paragraphs there!"
I'd HIGHLY suggest getting in the habit of using <p> with </p> -- it's not just the XHTML style, it's the preferred method for making it clear you are dealing with a BLOCK LEVEL container. <p> are block level containers meant to wrap... paragraphs -- and while the HTML spec lets you sleazy by omitting the closing tag, it's NOT good practice.
But then, I'm a pascal guy -- I like to see where something is closed.
I'm still seeing some absolutely disastrously bad code on that menu... Those are NOT fieldsets since they aren't in a form nor do they contain INPUT, SELECT, LABEL, BUTTON or TEXTAREA, and those most certainly are not LEGENDS describing the purpose of the inputs inside a form. No FORM? No FIELDSET! Likewise those are LISTS of choices, so they should ALL be lists... Semantic markup, say what things are; a flat run of anchors (inline-level container) means that "Interviews Tutorials Webshrines Licenses" is treated as a single coherent thought like a sentence -- they are separate links going to different places. "Submit a game Make a donation Store" doesn't make much sense as a sentence, does it?
You've also STILL got stuff that has no business in the markup in the markup... Pretty much EVERY style="" attribute in the markup is stuff that has no business... in the markup... ESPECIALLY if said element has a perfectly good ID on it.
Like this:
Interesting use of BIG, but a number by itself isn't sufficient to recieve that type of emphasis, I'd probably use a span for that... the style attrribute on the img should be done in the external CSS via "#logo img", as should the background-image.... and I'm not sure I would be treating those as DIV since that's a heading on the page, and as such just might be the h1... in which case it doesn't even need an ID... or the image inlined in the markup.
Again:
Makes more sense with the images added via CSS. the dual nested span is done so that you can put an extra copy of the background in for graceful degradation when images are disabled without killing the animation.
Though given the size, I'd seriously look at killing the animation -- it's cute, but frankly it gets in the way of doing better markup. (and that menu method you're using HATES it!)
But I will say, at least when I have to dive for the zoom from the absurdly undersized/useless fonts, the layout doesn't seem to break anymore when I hit the legible 150%.
Headings for example:
Code: Select all
<STRONG>Latest news:</STRONG><P><BR><STRONG>30 April 2011</STRONG>
<UL>
<LI><STRONG>Major Update IV: Phase VI</STRONG>
You also appear to be using paragraphs in the typographical/HTML 3.2 style, instead of the HTML 4/newer style. Pretty much every P inside the updates box is wrong/pointless/shouldn't be there. "There are no paragraphs there!"
I'd HIGHLY suggest getting in the habit of using <p> with </p> -- it's not just the XHTML style, it's the preferred method for making it clear you are dealing with a BLOCK LEVEL container. <p> are block level containers meant to wrap... paragraphs -- and while the HTML spec lets you sleazy by omitting the closing tag, it's NOT good practice.
But then, I'm a pascal guy -- I like to see where something is closed.
I'm still seeing some absolutely disastrously bad code on that menu... Those are NOT fieldsets since they aren't in a form nor do they contain INPUT, SELECT, LABEL, BUTTON or TEXTAREA, and those most certainly are not LEGENDS describing the purpose of the inputs inside a form. No FORM? No FIELDSET! Likewise those are LISTS of choices, so they should ALL be lists... Semantic markup, say what things are; a flat run of anchors (inline-level container) means that "Interviews Tutorials Webshrines Licenses" is treated as a single coherent thought like a sentence -- they are separate links going to different places. "Submit a game Make a donation Store" doesn't make much sense as a sentence, does it?
You've also STILL got stuff that has no business in the markup in the markup... Pretty much EVERY style="" attribute in the markup is stuff that has no business... in the markup... ESPECIALLY if said element has a perfectly good ID on it.
Like this:
Code: Select all
<DIV id="logo" style="background-image: url('images/video2.gif');">
<A href="index.html"><IMG src="title.png" style="margin-top: 23px;" alt="RGB Classic Games"></A>
<DIV id="slogan">Keeping the classics alive</DIV>
<DIV>Currently hosting <BIG>447</BIG> great games!</DIV>
</DIV>
Again:
Code: Select all
<h1>
<a href="index.html">
RGB Classic Games
<span><span><!-- image replacement --></span></span>
</a>
<small>
Keeping the classics alive
</small>
</h1>
<div class="hosting">Currently hosting <span>447</span> great games!</div>
Though given the size, I'd seriously look at killing the animation -- it's cute, but frankly it gets in the way of doing better markup. (and that menu method you're using HATES it!)
But I will say, at least when I have to dive for the zoom from the absurdly undersized/useless fonts, the layout doesn't seem to break anymore when I hit the legible 150%.