Skip to content
Related Articles

Related Articles

HTML | <pre> width Attribute

Improve Article
Save Article
  • Last Updated : 05 Jan, 2022
Improve Article
Save Article

The HTML <pre> width Attribute is used to specify the maximum number of characters per line.

Note: The

 width Attribute is not supported by HTML5 

<pre width="number"> 

Attribute Values:

  • number: It is used to set the maximum number of characters.


<!DOCTYPE html>
        HTML pre width Attribute
        h4 {
    <h1 style="color:green;">GeeksforGeeks</h1>
    <h2>HTML <pre> width Attribute</h2>
    <pre width="10">GeeksforGeeks 
        A Computer Science Portal For Geeks 


Supported Browsers: The HTML <pre> width attribute is not supported by any browsers. CSS property are used instead.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!