Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-30-2009, 01:09 AM   PM User | #1
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
validator says not unique :( It is!!

lol.

The validator throws an error saying that my id tag must be a single token. presumably I need an underscore to be added.

but will it cause any presentational errors or is the validator being simply pedantic

Code:
    <div id="Airport Pick-up" style="display:none">
bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 03-30-2009, 01:15 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by bazz View Post
lol.


but will it cause any presentational errors or is the validator being simply pedantic

bazz
Hey bazz,
Did you test it?

I would think a valid id would avoid presentational errors, as well as cure any caused by the space you have now.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 03-30-2009, 01:15 AM   PM User | #3
PitbullMean
Regular Coder

 
Join Date: Oct 2007
Location: Glencoe, Ontario, Canada
Posts: 340
Thanks: 19
Thanked 27 Times in 27 Posts
PitbullMean is an unknown quantity at this point
Well the validator works on strict guidelines, it wont cause any visual problems but to have it valid you need to follow the guidelines.
__________________
Eric "PitbullMean" Melo
Always Start your layout with*{border:0; margin:0; padding:0;}
Be sure to Thank ALL Users who give assistance.
PitbullMean is offline   Reply With Quote
Old 03-30-2009, 01:21 AM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
From the XHTML 1.0 Spec

In XML, fragment identifiers are of type ID, and there can only be a single attribute of type ID per element. Therefore, in XHTML 1.0 the id attribute is defined to be of type ID. In order to ensure that XHTML 1.0 documents are well-structured XML documents, XHTML 1.0 documents MUST use the id attribute when defining fragment identifiers on the elements listed above. See the HTML Compatibility Guidelines for information on ensuring such anchors are backward compatible when serving XHTML documents as media type text/html.
For multiples, it needs to be classes. You can have two classes like this
Code:
<div class="Airport Pick-up">
and that would be styled in the CSS like this
Code:
.Airport {
}
.Pick-up {
}
And even that might not be valid since they start with caps.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 03-30-2009, 01:28 AM   PM User | #5
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by bazz View Post
lol.

The validator throws an error saying that my id tag must be a single token. presumably I need an underscore to be added.

but will it cause any presentational errors or is the validator being simply pedantic

Code:
    <div id="Airport Pick-up" style="display:none">
bazz
I think there is another ptoblem

space is not allowed in id:

http://www.w3.org/TR/REC-html40/types.html#type-name

the link is for html 4.0 but I think this apply to other recomandations.

best regards
oesxyl is offline   Reply With Quote
Old 03-30-2009, 02:29 AM   PM User | #6
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
Thanks guys,

The issue was with the space.

@Excavator: it wasn't multiples but I see the confusion and likely it confused the validator as well.

I forced the replacement of 'space' with underscore and it's all tickety boo now.

thanks

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:29 AM.


Advertisement
Log in to turn off these ads.