 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
ajrock2000
Joined: 13 Jun 2007 Posts: 1
|
Posted: Wed Jun 13, 2007 11:11 am Converting HTML tags to lowercase... |
|
|
|
My company is in the process of converting all the HTML pages that it has (thousands of them) to XHTML. Is there a tool out there that I can make all the tags lowercase in many HTML files at once? They use homesite now, and it has a lowercase tool, but it can only be run on 1 file, and there is no way that this could be done one by one. Any help is appreciated...
Thanks..
AJ |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
|
beginner.html

Joined: 02 Aug 2007 Posts: 365
|
Posted: Thu Aug 02, 2007 5:25 pm |
|
|
|
| If I remember correctly, HTML coding isn't case sensitive. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8268 Location: Castle Rock CO USA
|
Posted: Fri Aug 03, 2007 3:18 am |
|
|
|
Well yes and now. You should use lower case HTML if you plan on using XHTML as your DOCTYPE.
Also, on *NIX, file names are case sensitive. So if you save a file About.html, you need to point to
| Code: |
| <a href="About.html">About Us</a> |
If you use
| Code: |
| <a href="about.html">About Us</a> |
you will get file not found. Windows is not case sensitive on file names.
_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts | LoudCISP |
|
NaniX
Joined: 04 Mar 2006 Posts: 31
|
Posted: Fri Aug 03, 2007 4:45 am |
|
|
|
you can also use regular expression + a free text editor that support regular expression.
Will do the job in less then what you think and for free.
Also they want to convert HTML to XHTML and lower case are a must specially for tag names. in HTML you can use <P></P> but in XHTML things are pretty different.
Also you need to know that <br> needs to be converted in <br />, <input></input> to <input />, <img></img> to <img />, those are called self closing tags and there are also few more still.
Yes I did that for an intere web application package using regular expressions and I had lot of fun  |
|
beginner.html

Joined: 02 Aug 2007 Posts: 365
|
Posted: Fri Aug 03, 2007 5:02 am |
|
|
|
| Cool. Good to know that. Thanks. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|