|
Tip #2 on Attributes
|
Always Quote Values
- HTML5 standards do not require quotes around attribute values.
- W3C recommends using quotes in HTML4, but stricter document types, like XHTML, demands them.
- Attributes can be written with or without quotes, as shown with the two href attribute examples here:
<a href="http://www.w3schools.com">
<a href=http://www.w3schools.com>