Irish SEO,  Marketing & Webmaster Discussion

 

coding errors

This is a discussion on coding errors within the Coding Help forums, part of the Webmaster Help category; Hi, I am unsure how to overcome two errors while validating... I am validating with XHTML 1.0 Strict using w3c ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-10-2007, 07:07 PM
Frontpage User
 
Join Date: Jun 2007
Posts: 8
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
bennyhill will become famous soon enough
Default coding errors

Hi,

I am unsure how to overcome two errors while validating...

I am validating with XHTML 1.0 Strict using w3c validator and have just two errors, both of which i do not posess the knowledge to fix (yet) I am researching on google but want to ask those with the knowledge!

First error is:
document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag.

<p><div id="special">

So, i guess i cannot place a div inside <p></p> tags? What is the best workaround for this?

Second error is:
there is no attribute "border".

…shing1.gif" alt="Fly Fishing" border="0" /></a></div>

This one confuses me, i understand that border is not used with the strict doctype but if i remove border i am left with purple lines around my image. The exact use in my script is

<div id="leftprom"><a href="activities.htm"><img src="img/fishing1.gif" alt="Fly Fishing" border="0" /></a></div>

What options do i have to fix this?

An unrelated question, when viewing my site with firefox i get strange characters in the top left hand corner of my page  any ideas? Methinks there must be an element somewhere on my page that firefox doesnt like possibly
HTML Code:
&ccedil; 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 25-10-2007, 07:40 PM
babyboy808's Avatar
Wannabe Geek
Recent Blog: teh-C peng
 
Join Date: Jan 2007
Location: everywhere
Posts: 298
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
babyboy808 will become famous soon enough
Default

you can't insert a div in a paragraph, add the id to the p instead of the div and change accordingly in the css if needed. add this to your css.

img { border: none; }

Last edited by babyboy808; 26-10-2007 at 12:57 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 27-10-2007, 03:37 PM
Frontpage User
 
Join Date: Jun 2007
Posts: 8
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
bennyhill will become famous soon enough
Default

thank you for your guidance babyboy808,

My page now validates!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 27-10-2007, 04:59 PM
Coder
 
Join Date: Feb 2007
Location: Dubin
Posts: 46
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
rooneydavid is an unknown quantity at this point
Send a message via MSN to rooneydavid Send a message via Skype™ to rooneydavid
Default

Change it to <p id="special"> that should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
coding, errors

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Irishpets.ie - what do you think? irishpets Site Reviews / Announcements 19 19-02-2008 07:21 PM
webmaster tools verification errors blacknight Google 4 24-10-2007 09:27 PM
Spamhaus errors blocking my email? ButtermilkJack Server / Technical Administration Tips and Queries 3 07-03-2007 04:42 PM
SEO and Coding blacknight Search Engine Optimisation 0 06-11-2006 12:22 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:46 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0