Valid HTML & CSS declarations
#1
Posted 09 February 2010 - 11:57 AM
I've noticed that hardly anyone uses the icons that declare the code is validated. I also read a few websites that pretty much poo-poo'd doing such a thing.
Where do people on WDF stand on this?
#2
Posted 09 February 2010 - 12:03 PM
I never show the badges as they mean nothing to 90% or more of the website viewers. The code that the w3c give to the images is invalid on the xhtml strict doctype so you do need to edit the code slightly to validate.
I am a Freelancer / CSS Tutorials /@Gareth_Gillman
#3
Posted 09 February 2010 - 12:17 PM
#4
Posted 09 February 2010 - 02:58 PM
#5
Posted 09 February 2010 - 04:29 PM
mrchristoph, on 09 February 2010 - 02:58 PM, said:
If you want to
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
#7
Posted 09 February 2010 - 06:36 PM
<script src="http://code.jquery.com/jquery-latest.js"></script>✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
#9
Posted 09 February 2010 - 06:45 PM
<script src="http://code.jquery.com/jquery-latest.js"></script>
to
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
#10
Posted 09 February 2010 - 06:55 PM
#11
Posted 09 February 2010 - 07:01 PM
Closing shortags like <br /> isn't technically valid for the DOCTYPE you're using. Your could change all instances of <br /> to <br> using your existing Doctype, or chnage the Doctype to an XHTML one, but that would mean you'd have to add extra closing slashes to other elements.
<a href="Policy Benefits - Questions and Answers.pdf" target="_blank">download policy benefits</a>...gives an error because the link target is "malformed". You shouldn't really have spaces in the link target. The link will still work, just in a permenant error state
This post has been edited by BlueDreamer: 09 February 2010 - 07:03 PM
/Know of a shopping cart? Add it to our Complete list of shopping carts
/Help keep WDF a nice place - please use the Report button to tell us about spam or scam!
/Expressioneengine Pro Network member
/Links are advertising not optimising!
#12
Posted 09 February 2010 - 09:07 PM
mrsminkie, on 09 February 2010 - 06:55 PM, said:
I'm an idiot. I had done what you suggested by integrating both lines i.e. I added 'type="text/javascript"' but removed the line underneath that was <script type="text/javascript">
I have kept that in and added it into the line above and it's all good and it's passed validation.
Thanks all

Sign In
Register
Help





MultiQuote


