Write the HTML command that will do the
following using <img>tag
(1) To INSERT an image
(D) TO ALIGN the image in the middle
(ii) To set the BORDER of 4 pixels around
the image.
(iv) To set the HEIGHT of the image as
percentage value from 1 to 100.
Answers
Answered by
0
Answer:
bfjfijt
Explanation:
hehdhhduchebebixkskos
Answered by
4
First write the basic html format
<html>
<head>
</head>
<body>
</body>
</html>
* Note: Write the following codes between <body> and </body> tags
(1) <body>
<img src = " image.jpg">
</body>
- Here, 'image' is just the name of the file and ' .jpg' is the format of the file.
- It may be “ .png ”, “ .JPEG ”etc
- The original size of the image will be displayed in the document
(2) <body>
<center> <img src = " image.jpg"> </center>
</body>
*Note: The default alignment of any object in the document is left
(3) <body>
<img src = " image.jpg" border="4px">
</body>
*Note: The default color of border is black
(4) To set height value as a percentage, you need to apply some special attribute (style) inside the (img) tag
<body>
<img src = " image.jpg" style = " height : 10%; ">
</body>
Steps to extract image in the document
- Make sure that your html document and image is within the same file
- Right click on the image and then click on properties tab
- A dialogue box opens showing the image name and the type of file
- Copy the image name and the type of file (for example: .jpg, .JPEG, .png etc)
- Then paste it within the img tag. Refer to (1)
Similar questions