Web Design Forum: Valid HTML & CSS declarations - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Valid HTML & CSS declarations

#1 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

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?
0

#2 User is offline   Faevilangel 

  • Wordpress Ninja.....
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,166
  • Joined: 11-May 09
  • Reputation: 57
  • Gender:Male
  • Experience:Advanced
  • Area of Expertise:Web Developer

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.
0

#3 User is online   darrenbale 

  • God of Javology
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 926
  • Joined: 01-April 09
  • Reputation: 41
  • Gender:Male
  • Location:Auckland, NZ
  • Experience:Intermediate
  • Area of Expertise:Web Designer

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.
0

#4 User is online   mrchristoph 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,228
  • Joined: 18-August 09
  • Reputation: 74

Posted 09 February 2010 - 02:58 PM

I always think it looks a bit gay (am I allowed to say that?) :)
0

#5 User is online   BlueDreamer 

  • Web Guru
  • Group: Moderators
  • Posts: 5,672
  • Joined: 23-October 07
  • Reputation: 192
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 09 February 2010 - 04:29 PM

View Postmrchristoph, on 09 February 2010 - 02:58 PM, said:

I always think it looks a bit gay (am I allowed to say that?) :)

If you want to :)
0

#6 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 09 February 2010 - 06:24 PM

View PostBlueDreamer, on 09 February 2010 - 04:29 PM, said:

If you want to :)


Pretty much what I thought. Problem solved!
0

#7 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

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>. 

0

#8 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 09 February 2010 - 06:38 PM

I have other errors that I don't understand:

My link

Can anyone help?
0

#9 User is online   darrenbale 

  • God of Javology
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 926
  • Joined: 01-April 09
  • Reputation: 41
  • Gender:Male
  • Location:Auckland, NZ
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 09 February 2010 - 06:45 PM

change

<script src="http://code.jquery.com/jquery-latest.js"></script>

to
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>

0

#10 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 09 February 2010 - 06:55 PM

View Postdarrenbale, on 09 February 2010 - 06:45 PM, said:

change

<script src="http://code.jquery.com/jquery-latest.js"></script>

to
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>



Hi, I tried that and it stops the script working.
0

#11 User is online   BlueDreamer 

  • Web Guru
  • Group: Moderators
  • Posts: 5,672
  • Joined: 23-October 07
  • Reputation: 192
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Developer

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.

<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

1

#12 User is offline   mrsminkie 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 588
  • Joined: 23-December 09
  • Reputation: 21
  • Gender:Female
  • Location:South Yorkshire
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 09 February 2010 - 09:07 PM

View Postmrsminkie, 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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users