Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Confused: Must </b> come before </font>
Old 09-15-2007, 06:18 PM Confused: Must </b> come before </font>
Defies a Status

Posts: 1,606
Trades: 0
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

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-15-2007, 06:31 PM Re: Confused: Must </b> come before </font>
Defies a Status

Posts: 3,420
Trades: 0
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
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 09-15-2007, 10:27 PM Re: Confused: Must </b> come before </font>
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
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, 07:58 AM Re: Confused: Must </b> come before </font>
Defies a Status

Posts: 1,606
Trades: 0
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.
__________________
Colbyt

Please login or register to view this content. Registration is FREE

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

Posts: 14
Name: Dmitri
Trades: 0
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, 12:12 PM Re: Confused: Must </b> come before </font>
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
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 12:16 PM..
joder is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 07:32 PM Re: Confused: Must </b> come before </font>
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Confused: Must </b> come before </font>
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





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



Page generated in 0.32701 seconds with 12 queries