Jump to content

saila.com

Online media matters

Should I quote attributes?

Generally, it is a good idea to quote attributes (e.g., <table width="350"> as opposed to <table width=350>) because the future version of HTML, XHTML, requires it. Also, some attributes most be quoted, for example, anything preceded by a + or -, or followed by a %

Whether you use double (") or single (') quotes doesn’t matter.