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

Jump to content

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 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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.....
  • PipPipPipPip
  • View blog
  • Group: Members
  • Posts: 987
  • Joined: 11-May 09
  • 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 offline   darrenbale 

  • God of Javology
  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Members
  • Posts: 875
  • Joined: 01-April 09
  • Gender:Male
  • Location:Redditch, UK
  • Interests:Armed Forces, Keep fit, Web designing, Computing, XBOX360, My daughters.
  • 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.
E-commerce - Web design - CMS systems and more
01527 863748 / 0845 4742318
enquiries@dpbcreations.co.uk
0

#4 User is offline   mrchristoph 

  • Expert
  • PipPipPipPip
  • View blog
  • Group: Members
  • Posts: 828
  • Joined: 18-August 09

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 offline   BlueDreamer 

  • Web Guru
  • View blog
  • Group: Moderators
  • Posts: 4,697
  • Joined: 23-October 07
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Designer

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 :)
/Add HTML or code editors to our big list of editors
/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!
0

#6 User is offline   mrsminkie 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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 offline   darrenbale 

  • God of Javology
  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Members
  • Posts: 875
  • Joined: 01-April 09
  • Gender:Male
  • Location:Redditch, UK
  • Interests:Armed Forces, Keep fit, Web designing, Computing, XBOX360, My daughters.
  • 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>

E-commerce - Web design - CMS systems and more
01527 863748 / 0845 4742318
enquiries@dpbcreations.co.uk
0

#10 User is offline   mrsminkie 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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 offline   BlueDreamer 

  • Web Guru
  • View blog
  • Group: Moderators
  • Posts: 4,697
  • Joined: 23-October 07
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Designer

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

/Add HTML or code editors to our big list of editors
/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!
1

#12 User is offline   mrsminkie 

  • Advanced Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 425
  • Joined: 23-December 09
  • Gender:Female
  • Location:South Yorkshire
  • Interests:Web design & development, working for myself, Formula 1, emigrating, my family
  • 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