(Transfer) Convert HTML to XHTML Open Source Tool HTML TIDY

xiaoxiao2021-03-06  31

Author:

Abie

May 21, 2004

Basic Information

Software Name: HTML TIDY Developer Home: Tidy.SourceForge.Net Software Size: 112K Installation Environment: There are multi-platform versions, this site provides Microsoft Windows 95/98 / ME / 2000 / XP Platform Version: July 1, 2003 Published Windows platform version

Software description

Most of our website is HTML, if you want to standardize them, a manually a page is very troublesome. If one tool can automatically convert HTML into a standard XHTML. In fact, there are many commercial and free tools software that can be used in this regard. HTML TIDY will be introduced is a very basic but very useful tool, which can run on a variety of platforms and is open source.

Installation use tutorial

Step 1: Download the software;

Step 2: Unpack the compressed package to any directory, you can see only 1 file in the folder Tidy.exe;

Step 3: If you double-click this file without any reactions, halo, it is needed to run in the command window, you want to review the previous DOS command;

Step 4: Run the "Command Prompt" in "Start -> Program -> Accessories" and open the command window. Enter your installation directory, for example, you are installed in the D: / Tidy directory, enter C: /

Step 5: Enter the conversion command. For example to convert index.html

Tidy -asxhtml index.html -big5 index.html

Where -ASXHTML parameters means converting HTML into compliant XHTML. -big5 refers to the BIG encoding input and output text (why no -gb2312 parameters? Hey, the Chinese does not pay attention to the standard, the developers don't pay attention to you). There are more parameters to use, you can enter tidy -help (or -h) view, as shown below:

Step 6: Such index.html has been converted to a text changing in accordance with the XHTML standard.

supplement

Abie has tried several texts, and there were not many successful conversions. It was not a TIDY tool, but our code is too irregular. Tidy requires that the label in your HTML text is at least in step-by-step. Tidy seems to be just the following two things (possibly more):

1. Add a pair of labels to end the end value "/", for example
converted to
, converted to 2. Give all attribute values. For example

Tidy also has Windows, visual running versions, and other Aje research, introduce it to everyone. Tools just improve our work efficiency, the key is what we should understand what should be done.


New Post(0)