Tag: HTML attribute

Quoting HTML attribute values

The values of attributes can contain text, hexadecimal color codes or numbers. In case of JavaScript event handlers, the values consist of small JavaScript code. A sincere advice for good and clean HTML coding is to always put quotes around attribute values. It is a good habit, will save you many headaches and avoid errors …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/quoting-html-attribute-values/