Computer Science, asked by dinesh2028, 1 year ago

plese write all steps

Attachments:

Answers

Answered by Anonymous
2

a) To insert an image in html document use img tag

example: <img src="path/to/image/file.jpg" alt="enter alt text here">

b) To add a border you have to use css

exmaple: <img src="path/to/image/file.jpg" alt="enter alt text here" style="border: 3px solid purple">

c) To add space around image you have to use css

exmaple: <img src="path/to/image/file.jpg" alt="enter alt text here" style="margin: 20px;">

d)You can resize an image using html attribute or css.. i will show you both ways

using html attributes

exmaple: <img src="path/to/image/file.jpg" alt="enter alt text here" width="100" height="100">

using html attributes

exmaple: <img src="path/to/image/file.jpg" alt="enter alt text here" style="width: 100px; height:100px;">

Similar questions