Print Page | Close Window

Font Size and XHTML

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=23431
Printed Date: 29 March 2026 at 12:34am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Font Size and XHTML
Posted By: Rik_
Subject: Font Size and XHTML
Date Posted: 30 May 2007 at 9:10pm
Couldn't be change the tag font into style attribute? This could be great for using the output on XHTML sites.

It is strange because if I use change font, the editor generate code with Style instead of tag Font Face="x". If I change size the editor generate tag Font Size="x".

Can this be solved?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 31 May 2007 at 8:35am
The RTE uses the RTE API of the web browser you are using. It is the web browser that creates the HTML code.

If you use Firefox it will use style tags, but if you use IE it will produce sloppy code which uses things like FONT tags.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Rik_
Date Posted: 31 May 2007 at 8:56am
Oh my GOD! Wacko That's unmanageable!

PS: Anyway the above beheaviour was referred to Firefox last version 2.0.0.3.

I was looking for a very simple text area editor with this only feature:
bold,  color, size. Optionally, italic, underline, the alignement and links. Stop.
BUT, the output code must be XHTML 1.0 strict or 1.1, avoiding the user to destroy the validation of the page.
Instead I find lots of online editor that use stuff like <font size="x">

RTE is one of the few that have only the problem of <font size="x"> while is using Style for any other thing. Anyway... after you answer I tried with IE and that change everything... I got <font face> instead of Style="font-family" i got with FF.... so I must abandon.

Thanks a lot.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net