Page 1 of 1
Valid HTML & CSS declarations
#1
Posted 09 February 2010 - 11:57 AM
My first site passed the validation. Being truthful, I'm not 100% sure why I need to do this, but I'm sure I'll work it out eventually.
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?
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 always validate my code, as it's easier to keep the code clean, Google won't have any trouble indexing the site, it should display fine on ALL browsers and I always want my work to be as good as I can get it.
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 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.
#3
Posted 09 February 2010 - 12:17 PM
i always validate my sites but as for the logos, I only display them on my own site not clients.
#7
Posted 09 February 2010 - 06:36 PM
New problem...now validating another site and don't understand why it has an issue with this:
<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
change
to
<script src="http://code.jquery.com/jquery-latest.js"></script>
to
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
#11
Posted 09 February 2010 - 07:01 PM
In your TEXTAREA tags you don't need input type="textarea" - take all those out.
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.
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
#12
Posted 09 February 2010 - 09:07 PM
mrsminkie, on 09 February 2010 - 06:55 PM, said:
Hi, I tried that and it stops the script working.
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
Share this topic:
Page 1 of 1
Help



















