Name
WIDTH — NN n/a IE n/a HTML 4
Synopsis
WIDTH=”columnCount"
Optional
The HTML 4.0 specification introduces the WIDTH
attribute to allow setting a maximum number of characters to be
rendered on a preformatted line of text. Presumably, browsers that
support this attribute in the future will wrap lines so that words do
not break in the middle. Without this attribute, the source code
formatting governs the line width. Navigator provides this
functionality with the COLS
attribute.
Example
<PRE WIDTH=80>...</PRE>
Value
Any positive integer.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.