Horje
How to create Always Quote Attribute Values

HTML allows attribute values without quotes.

However, we recommend quoting attribute values, because:

  • Developers normally quote attribute values
  • Quoted values are easier to read
  • You MUST use quotes if the value contains spaces

Good:

<table class="striped">

Bad:

<table class=striped>

Very bad:

This will not work, because the value contains spaces:
<table class=table striped>





Category:
Web Tutorial
Sub Category:
HTML Style Guide
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference