HTML allows unquoted values for simple cases (width=100); XHTML never does. Every value needs quotes: width="100". This avoids ambiguity when values contain spaces or special characters and is a universally good habit even in HTML5.
HTML allows unquoted values for simple cases (width=100); XHTML never does. Every value needs quotes: width="100". This avoids ambiguity when values contain spaces or special characters and is a universally good habit even in HTML5.
<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>invalid: <td colspan=2 width=100>
valid: <td colspan="2" width="100"></pre></body></html>▶ Open the interactive comic issue