|
|
Q2022 When should I use Quotes in my tags?
irt.org | Knowledge Base | HTML | Q2022 [ previous next ] Q2022 When should I use Quotes in my tags?Quotes should be used in values of attributes (anything after an = within a tag), unless the value is a number combination(0-9), a letter (a-z, A-Z) or one of a few symbols (-, .). All URLs should be encased in quotes, example:
As should any color references, example:
ALT attributes should be quoted, especially if they have any spaces, example:
Anytime a non-allowed character is used, quotes are needed. Not using quotes can come up with unreliable rendering. BUT (there always is a but), you may use quotes on any and all values without any adverse effects. So, when in doubt, quote :) Feedback on 'Q2022 When should I use Quotes in my tags?' |
-- div -->
|