Export to GitHub

doctype-mirror - PWidthAttribute.wiki


You are here: Home > HTML Reference > Elements > <p> element > width attribute

Usage

See for usage information and examples.

Elements

You can use the width attribute on the following elements:

  • <address>
  • <applet>
  • <blockquote>
  • <caption>
  • <canvas>
  • <center>
  • <col>
  • <colgroup>
  • <dd>
  • <dir>
  • <div>
  • <dl>
  • <dt>
  • <embed>
  • <fieldset>
  • <form>
  • <frame>
  • <frameset>
  • <hr>
  • <iframe>
  • <ilayer>
  • <img>
  • <isindex>
  • <layer>
  • <li>
  • <listing>
  • <marquee>
  • <menu>
  • <multicol>
  • <object>
  • <ol>
  • <p>
  • <pre>
  • <select>
  • <spacer>
  • <table>
  • <td>
  • <th>
  • <textarea>
  • <ul>

Browser compatibility

Compatibility table legend

| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | p.width reflects <p width="7"> | N | N | N | N | N | N | Y | N |

Further reading