Print Page | Close Window

Uppercase HTML tags with RTE

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=12410
Printed Date: 29 March 2026 at 2:53pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Uppercase HTML tags with RTE
Posted By: rx7tt
Subject: Uppercase HTML tags with RTE
Date Posted: 02 November 2004 at 3:27am

Can anyone tell me why the HTML tags are formatted in uppercase when using the rich text editor function of the forum but not when it is disabled.

ie. <P align="center">
vs. <p align="center">

or. <FONT
vs. <font

is this something that can be changed in the RTE?




Replies:
Posted By: Mart
Date Posted: 02 November 2004 at 3:33am
Why does it matter? It works doesn't it...


Posted By: rx7tt
Date Posted: 02 November 2004 at 3:41am

Actually it doesn't for many of my users who's browsers require strict conformance with XHTML guidelines. Which by W3C standards for XHTML lowercase is the standard.



Posted By: rx7tt
Date Posted: 02 November 2004 at 3:47am

One other thing I just found is that it does not happen when you manually enter the forum codes ie ([FONT=Arial]Arial[/FONT]) only when using the RTE buttons/menus above the message window.



Posted By: WebWiz-Bruce
Date Posted: 02 November 2004 at 5:25am
The RTE fetaures of the forum, use the built in RTE fetaures of the web browser.

For some reason Internet Explorer, when RTE features are enabled converts allot of HTML tags to uppercase.

The RTE fetaures of Mozilla (which I think are better and more w3c complient) don't do this.

This has nothing to do with the code in the forum as this dose not change the tags, it's Internet Explorer itself that changes it to uppper case before the message (post) is submitted.

If you have a look at the standalone version in the ASP section of this site it has a button to switch to HTML view. You can use this with verious different browsers to see how they change and format the HTML in the editor.

Even if you copy and paste lower case HTML tags into IE when in RTE mode, it will often convert them to uppercase.

This is a browser problem, and the only fix is to get onto Microsoft and get them to change their RTE implementation in IE.


-------------
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: rx7tt
Date Posted: 02 November 2004 at 10:52am

Thanks -borg-

So I guess what your saying is I would have to catch any bad tags before the insert and replace them with the correct ones.



Posted By: dpyers
Date Posted: 02 November 2004 at 1:15pm
You may also want to check out default.asp and add a transitional doctype to it before the <html> tag. Should be understood by strict XHTML browsers and ignore the case issues.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: rx7tt
Date Posted: 02 November 2004 at 3:22pm

I always use a docytpe in my pages, either transitional or mobile for phone browsers. With either the tags must be in lower case to be valid XHTML by W3C standards

Quote From http://www.w3schools.com/xhtml/xhtml_html.asp - w3schools.com
The Most Important Differences:
XHTML elements must be properly nested
XHTML documents must be well-formed
Tag names must be in lowercase
All XHTML elements must be closed



Posted By: dpyers
Date Posted: 02 November 2004 at 3:52pm
I agree if you use an xhtml doctype, but if you use a transitional html 4.01 doctype on the page, it should ignore case even in browsers that default to stirct xhtml.

-------------

Lead me not into temptation... I know the short cut, follow me.



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