
Originally Posted by
chris.upjohn
Your currently using inline styles which is bad practice, any styles you use should be contained within a CSS file to keep things tidy and easy to update
Agreed.

Originally Posted by
chris.upjohn
Instead of wrapping your <input> elements within a <span> use a <p> element as they are more semantic and common in forms
NO!!! -- they are not paragraphs!. What should be done there is the use of LABELS for the inputs and simple line breaks. Then they'll have the CORRECT semantic meanings. See my signature.

Originally Posted by
chris.upjohn
Your <a> elements have been opened but haven't been closed, make sure to close all elements in your markup
been seeing that in a lot of code lately...
There is little if any reason for the markup for said layout to be much more than:
Code:
<fieldset>
<img src="images/whatever.png" alt="image here" />
<label for="loginUsername">Username:</label>
<input type="text" id="loginUsername" name="username" /><br />
<label for="loginPassword">Password:</label>
<input type="text" id="loginPassword" name="password" /><br />
<input type="submit" value="Log In" class="submit" />
<div>
<a href='ForgotPassword.aspx'>Forgot Password?</a><br />
<a href='Register.aspx'>Register</a>
</div>
</fieldset>
assuming that's inside a form with the ID "loginForm" the CSS would go something like this:
Code:
/* assumes reset nulling fieldset margins and border are in place */
#loginForm img {
float:right;
margin:0 0 1em 1em;
}
#loginForm label {
display:block;
}
#loginForm input {
display:block;
}
#loginForm div {
clear:both;
padding:1em 0;
}
There's no reason for all those extra pointless tags in there -- semantic markup can generally do the grunt work for you. ESPECIALLY if you have your source order in display order and keep the floats to a minimum as you really only have one thing that NEEDS to float.
FIELDSET and LABEL -- two tags I'm shocked how many developers have never even HEARD of them much less figured out where/how/why to use them; but the same could be said for TH, THEAD, TBODY, LEGEND, CAPTION, etc...
Bookmarks