Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

HTML | <pre> width Attribute

  • Last Updated : 07 Aug, 2019

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


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<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
Recommended Articles
Page :