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" />
हिंदी

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

प्रश्न

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?

कोड लेखन
लघु उत्तरीय
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: HTML- II: Images, Links and Tables - Assisted Practice [पृष्ठ १७६]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
अध्याय 4 HTML- II: Images, Links and Tables
Assisted Practice | Q 1. | पृष्ठ १७६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×