हिंदी

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

Advertisements
Advertisements

प्रश्न

Explain the following tag with an example:

<PRE>

Explain the following HTML tag with an example:

<PRE>

स्पष्ट कीजिए
Advertisements

उत्तर

  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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×