Reply
Confused: Must </b> come before </font>
Old 09-15-2007, 07:18 PM Confused: Must </b> come before </font>
King Spam Talker

Posts: 1,124
Trying to validate a page where I know I have closings tags. Do they have to be in a certain order?

Here is the report:

Line 43, Column 241: end tag for "B" omitted, but its declaration does not permit this.
…25d"><b> bold and colored green</font></b>. They will change to<font color= "


Clearly the </b> is there.

What am I not understanding?
colbyt is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-15-2007, 07:31 PM Re: Confused: Must </b> come before </font>
whym's Avatar
Putting food on my family

Posts: 3,429
Name: Daniel
Location: A sleepy town in Mid Wales
You have 2 options:

1) Use <font><b> blah blah blah </b></font>
OR
2) Use <b><font> blah blah blah </font></b>

I.e. you must close the innermost tag first, then the ones outside of it after.
This way will pass validation.

Hope I've helped.

Talkupation appreciated
__________________
Whym Web Design - article blog| Personal blog

I need your help - sponsor me!
whym is offline
Reply With Quote
View Public Profile Visit whym's homepage!
 
Old 09-15-2007, 11:27 PM Re: Confused: Must </b> come before </font>
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
The <font> tag has been deprecated for quite a while. I would suggest formatting with style sheets.

http://htmlhelp.com/reference/html40/special/font.html

What's wrong with the FONT element?
http://www.mcsr.olemiss.edu/~mudws/font.html
joder is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 08:58 AM Re: Confused: Must </b> come before </font>
King Spam Talker

Posts: 1,124
Thanks Whym! That is what I needed to know. I suspected it had something to do with order.


Quote:
Originally Posted by joder View Post
The <font> tag has been deprecated for quite a while. I would suggest formatting with style sheets.
What's wrong with the FONT element?
http://www.mcsr.olemiss.edu/~mudws/font.html

I am using a style sheet. For one occurence on an entire site, I just don't think it worth the time to add it to the style sheet.

Last edited by colbyt : 09-16-2007 at 09:00 AM.
colbyt is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 09:12 AM Re: Confused: Must </b> come before </font>
Novice Talker

Posts: 14
Name: Dmitri
I always use the styles, instead of tags, for text formating:

<span style="font-weight:bold;">bla bla bla</span>
Dknight is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 01:12 PM Re: Confused: Must </b> come before </font>
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
Quote:
Originally Posted by colbyt View Post
I am using a style sheet. For one occurence on an entire site, I just don't think it worth the time to add it to the style sheet.
That's why you can do styles inline and don't have to put them in a separate file.

For example: <span style="font-size:12px;">Text</span>

Last edited by joder : 09-16-2007 at 01:16 PM.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 08:32 PM Re: Confused: Must </b> come before </font>
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
Quote:
I just don't think it worth the time to add it to the style sheet.
You couldn't be more wrong.
When you have a site with a zillion font tags on every page, when it comes to CHANGE that font site-wide you have to edit EVERY PAGE, it's very time consuming. If you forget the moldy old <font> tag and use stylesheets to control your font declarations, you can change the ENTIRE site by changing ONE line in your CSS file.

Your problem isn't that you're missing a tag, the problem is that your tags are improperly nested.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Confused: Must </b> come before </font>
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14266 seconds with 12 queries