English

Explain following tag with example: <PRE> - Computer Science 1

Advertisements
Advertisements

Question

Explain following tag with example:

<PRE>

Explain

Solution

  1. <PRE> preformates the text. The text between start tag <PRE> and end tag </PRE> is shown in menopause format.
  2. This tag is used to arrange the characters.
  3. This tag displays text in the same format as the character and line spacing specified in the source HTML document.
  4. For example: 
    <PRE> 
             1
           1  1
         1  2  1
       1  3  3  1
    </PRE>

    The display will be as: 
               1
           1      1
        1      2      1
    1      3      3      1

shaalaa.com
  Is there an error in this question or solution?
2023-2024 (March) Official

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×