however, the desired result is not coming. Can you point | Shaalaa.com" /> however, the desired result is not coming. Can you point " /> however, the desired result is not coming. Can you point" />
English

The following code intends to centralize the image mypic.gif in browser window: <IMG src = "mypic.gif" align = center> however, the desired result is not coming. Can you point

Advertisements
Advertisements

Question

The following code intends to centralize the image mypic.gif in browser window:

<IMG src = "mypic.gif" align = center>

however, the desired result is not coming. Can you point out the reason for it and a solution for it?

Code Writing
Short Answer
Advertisements

Solution

The image is getting loaded with the above given code but is not centralized because, center is not a valid alignment for images. To centralize an image, we may give:

<CENTER>
    <IMG src = "mypic.gif">
</CENTER>
shaalaa.com
  Is there an error in this question or solution?
Chapter 4: HTML- II: Images, Links and Tables - Assisted Practice [Page 176]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×