homepage Welcome to WebmasterWorld Guest from 54.234.225.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
strict validation and css
billybonds




msg:585293
 11:04 pm on Oct 30, 2003 (gmt 0)

hi

sorry another question (and i really can't find the answer to this one!)

i have one thing left for it to validate but i can't for the life of me see why it is insisting on this...

the code is

<div id="leftColumn">
<h3>introduction</h3>
<p align="justify"><b>At present over 125 million children around the world of primary school age are not in school.</b> This means that a staggering one in five children are not receiving even the most basic of primary educations. </p>
<p align="justify">Many families live in poverty and cannot afford to send their children to school. This lack of education locks families into a cycle where each generation grows into adulthood without qualification and unable to provide the education for their own children that would break the cycle for them.</p>
<p align="justify">In today's highly integrated world where economic activity is increasingly knowledge based, it is becoming ever more vital for a nation to provide a decent education for all its children if it is to ever lift its people out of poverty.</p>
<p></p>
</div>

and it is what i have highlighted in bold that it won't let through. i really can't figure out why. it allows it everywhere else?!

any ideas?

thanks,

jim

 

billybonds




msg:585294
 11:05 pm on Oct 30, 2003 (gmt 0)

sorry i should add that the error message is

Line 53, column 13: there is no attribute "ALIGN" (explain...).
<p align="justify"><b>At present over 125 million children around the world

cheers,

jim

Reflection




msg:585295
 11:06 pm on Oct 30, 2003 (gmt 0)

The Align atttribute is not valid, neither is <b> use <strong> instead.

billybonds




msg:585296
 11:10 pm on Oct 30, 2003 (gmt 0)

oh i see... that is the first instance of it and when i remove it...........

gotcha (so why does DW2004 use these tags?)

thanks a lot.

do you know what i can put instead?

cheers

jim

DrDoc




msg:585297
 11:11 pm on Oct 30, 2003 (gmt 0)

it allows it everywhere else?!

Actually, it doesn't... It just saves you the trouble of reading mutiple lines with the exact same error ;)

Which DTD are you validating against?
Have you considered using CSS?
p {
text-align: justify;
}

Also, you shouldn't use empty paragraphs <p></p>. User agents are supposed to ignore them.

DrDoc




msg:585298
 11:11 pm on Oct 30, 2003 (gmt 0)

so why does DW2004 use these tags?

Because nothing beats handcoding ;)

Reflection




msg:585299
 11:13 pm on Oct 30, 2003 (gmt 0)

gotcha (so why does DW2004 use these tags?)

Cause dreamweaver sucks ;)

Try using <p style="text-align:justify;> instead.

<edit>looks like doc beat me to it</edit>

billybonds




msg:585300
 11:15 pm on Oct 30, 2003 (gmt 0)

Because nothing beats handcoding ;)

that may well be true and i hope to join you one day but i'm still very new to this :( (and it still doesn't excuse DW!

anyways thanks for the advice :)

jim

billybonds




msg:585301
 11:19 pm on Oct 30, 2003 (gmt 0)

hooray! i am validated (do i get a badge or something?)

only another squillion pages to go.....

DrDoc




msg:585302
 11:25 pm on Oct 30, 2003 (gmt 0)

Well done ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved