tags:

views:

177

answers:

1

Hi,

I use Tidy to clean and make HTML files compliant to HTML/XHTML. However, output contains non-standard attributes values like :

<table id='abc'>...

or

<input type='button' />

(look at the single quotes). How can I configure Tidy to give strict XHTML output? Thank you in advance!

+7  A: 

This is indeed a valid XHTML. You can put either double quotes or single quotes for attribute values.

rahul
Double quotes are prettier though.
Matthew Scharley
Its because we are familiar with that.
rahul
Well, double quotes are much better.
Viet
@Viet visually or? Since there is little difference practically.
Ólafur Waage
Double quotes are not at all better.
David Dorward
Viet
You can use single quotes in any XML, not just XHTML. As for visually ... that depends on your font and personal preferences.
David Dorward