Closed Thread
plz helpme how to Convert HTML to XHTML?
Old 03-09-2010, 04:44 PM plz helpme how to Convert HTML to XHTML?
Banned

Posts: 3
Name: moahmed elgharib
Location: egypt
Trades: 0
I'm hoping you can recommend a tool that will allow me to convert HTML pages to XHTML. I have a pretty large magazine-type site (250 pages or so) so am hoping not to have to do it manually.

If you know of a good program to do this, I'd love to know about it. Thanks so much.

mohamed elgharib
egypt

Last edited by chrishirst; 03-09-2010 at 04:48 PM..
mohamed elgahri is offline
View Public Profile Visit mohamed elgahri's homepage!
 
 
When You Register, These Ads Go Away!
Old 03-09-2010, 04:50 PM Re: plz helpme how to Convert HTML to XHTML?
chrishirst's Avatar
Super Moderator

Posts: 31,016
Location: Blackpool. UK
Trades: 0
Why do you even need to?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-11-2010, 01:16 AM Re: plz helpme how to Convert HTML to XHTML?
Novice Talker

Posts: 4
Trades: 0
Just try this source.
Quote:
c:\temp>tidy -help
tidy [option...] [file...] [option...] [file...]
Utility to clean up and pretty print HTML/XHTML/XML

Options for HTML Tidy for Windows released on 14 February 2006:

File manipulation
-----------------
-output <file>, -o write output to the specified <file>
<file>
-config <file> set configuration options from the specified <file>
-file <file>, -f write errors to the specified <file>
<file>
-modify, -m modify the original input files

Processing directives
---------------------
-indent, -i indent element content
-wrap <column>, -w wrap text at the specified <column>. 0 is assumed if
<column> <column> is missing. When this option is omitted, the
default of the configuration option "wrap" applies.
-upper, -u force tags to upper case
-clean, -c replace FONT, NOBR and CENTER tags by CSS
-bare, -b strip out smart quotes and em dashes, etc.
-numeric, -n output numeric rather than named entities
-errors, -e only show errors
-quiet, -q suppress nonessential output
-omit omit optional end tags
-xml specify the input is well formed XML
-asxml, -asxhtml convert HTML to well formed XHTML
-ashtml force XHTML to well formed HTML
-access <level> do additional accessibility checks (<level> = 0, 1, 2, 3).
0 is assumed if <level> is missing.

Character encodings
-------------------
-raw output values above 127 without conversion to entities
-ascii use ISO-8859-1 for input, US-ASCII for output
-latin0 use ISO-8859-15 for input, US-ASCII for output
-latin1 use ISO-8859-1 for both input and output
-iso2022 use ISO-2022 for both input and output
-utf8 use UTF-8 for both input and output
-mac use MacRoman for input, US-ASCII for output
-win1252 use Windows-1252 for input, US-ASCII for output
-ibm858 use IBM-858 (CP850+Euro) for input, US-ASCII for output
-utf16le use UTF-16LE for both input and output
-utf16be use UTF-16BE for both input and output
-utf16 use UTF-16 for both input and output
-big5 use Big5 for both input and output
-shiftjis use Shift_JIS for both input and output
-language <lang> set the two-letter language code <lang> (for future use)

Miscellaneous
-------------
-version, -v show the version of Tidy
-help, -h, -? list the command line options
-xml-help list the command line options in XML format
-help-config list all configuration options
-xml-config list all configuration options in XML format
-show-config list the current configuration settings

Use --blah blarg for any configuration option "blah" with argument "blarg"

Input/Output default to stdin/stdout respectively
Single letter options apart from -f may be combined
as in: tidy -f errs.txt -imu foo.html
__________________
m3 ds real
vrchards is offline
View Public Profile
 
Old 03-11-2010, 02:18 AM Re: plz helpme how to Convert HTML to XHTML?
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
Well here are the things you need to fix to convert to xhtml
  • have a <!DOCTYPE> element at the very first of the document
  • make all tags lowercase. ex: <TD> is not XHTML valid tag instead use <td>
  • make sure to close properly all tags for example <br> is valid HTML tag but not valid in XHTML. instead use <br /> or <br></br>
  • Attribute values must be quoted ex. don't use <input checked> instead use <input checked="checked" />
  • after finished try checking your document using http://validator.w3.org/ to see if it is valid xhtml document or not
__________________
Free Images Hosting | Free Online Galleries | .Co.cc Domain For Free
if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
View Public Profile
 
Old 03-11-2010, 07:59 AM Re: plz helpme how to Convert HTML to XHTML?
Knight13's Avatar
Evil Talker

Posts: 7,334
Name: Knight13
Location: Cleveland, Ohio
Trades: 0
Go to w3schools.com and learn from their.
Knight13 is online now
View Public Profile
 
Closed Thread     « Reply to plz helpme how to Convert HTML to XHTML?
 

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.11118 seconds with 13 queries