Attribute values should contain only those quotation marks.
If the attribute uses double quotes, replace the double quotes with ".
If your attribute is enclosed in single quotes, highlight single quotes in a string with '. Note: do not use '!
All of them are valid HTML:
<input value=foo>
<input value="foo">
<input value='foo'>
Note. Quotation marks do not have to be valid HTML. However, XHTML requires quotation marks. Without quotes, you cannot have spaces in the attribute value.
source
share