Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Why does <br /> return error on W3 Validation, yet W3 says to use it?


Why does <br /> return error on W3 Validation, yet W3 says to use it?

Reply
  #1 (permalink)  
Old 02-16-10, 01:22 PM
timbaker1991's Avatar
timbaker1991 timbaker1991 is offline
Newbie Coder
 
Join Date: Dec 2009
Location: London, UK
Posts: 38
Thanks: 2
Thanked 3 Times in 3 Posts
Why does <br /> return error on W3 Validation, yet W3 says to use it?

All in the title!

Just confusing me!
Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-16-10, 01:43 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Please post your code, or preferably a link to the site.

Obviously the title doesn't make sense, so there must be something with your code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-16-10, 05:11 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Check your DOCTYPE

HTML doctype declaration
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 02-18-10, 04:06 AM
CodeRobber's Avatar
CodeRobber CodeRobber is offline
Newbie Coder
 
Join Date: Feb 2010
Location: Leicestershire UK
Posts: 19
Thanks: 0
Thanked 2 Times in 2 Posts
Make sure your Doc type is XHTML - HTML 4.0 will bring back invalid w3c if you use tags like <br/> as HTML 4.0 is an older version of the HTML standard and uses <br> etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion of a keypad code to the responding characters davids5a C/C++ 0 08-03-07 03:08 AM
TreeView Control - Background Image? tim8w Windows .NET Programming 1 04-11-07 01:43 PM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 05:28 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 10:50 AM


All times are GMT -5. The time now is 11:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.