Are single quotes valid in HTML? And more specifically: XHTML strict.
<table width="100%"> <table width='100%'>
You could use HTML entities: ' for ' " for "
Yes, that's acceptable. It works in browsers, and it's allowed by the specifications.
Single quotes need to be escaped by backslash in single-quoted strings, and double quotes in double-quoted strings.
Yes, single quotes are valid.
From the XML spec:
[10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With