English

The correct HTML code to display (P + Q)2 is ______.

Advertisements
Advertisements

Question

The correct HTML code to display (P + Q)2 is ______.

Options

  • <SUB> (P+) 2</SUB>

  • P+Q <SUP> 2 </SUP>

  • (P + Q)<SUP> 2 </SUP>

  • <SUP> (P+Q) 2</SUP>

MCQ
Fill in the Blanks
Advertisements

Solution

The correct HTML code to display (P + Q)2 is (P + Q)<SUP>2</SUP>.

Explanation:

The <SUP> tag displays text as superscript. Therefore, placing 2 inside <SUP> displays it above the normal text as (P + Q)2.

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: HTML- II: Images, Links and Tables - Assisted Practice [Page 174]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 4 HTML- II: Images, Links and Tables
Assisted Practice | Q 17. | Page 174
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×