HTML image exercises
Display five different images. Skip two lines between each image. Each image should have a title.
Display an image that has a border of size 2, a width of 200, and a height of 200.
Display an image that when clicked will link to a search engine of your choice (should be opened in a new window).
Display an image that when clicked will link to itself and will display the image in the browser by itself
Answers
Answer:
HTML image exercises
Display five different images. Skip two lines between each image. Each image should have a title.
Display an image that has a border of size 2, a width of 200, and a height of 200.
Display an image that when clicked will link to a search engine of your choice (should be opened in a new window).
Display an image that when clicked will link to itself and will display the image in the browser by itself
Answer:
To display an image with a border of size 2, a width of 200, and a height of 200, you can use the following HTML code:
<img src="image.jpg" style="border: 2px solid black; width: 200px; height: 200px;">
Explanation:
To make an image that when clicked will link to a search engine of your choice, you can use the following HTML code:
<a href="https://www.google.com" target="_blank"><img src="image.jpg"></a>
To make an image that when clicked will link to itself and will display the image in the browser by itself, you can use the following HTML code:
<a href="image.jpg" target="_blank"><img src="image.jpg"></a>
Note: Make sure to replace "image.jpg" with the actual image file name and path.
Please keep in mind that the above code will not display the title of the image, If you want to include the title of the image you can use the "alt" attribute of the image tag as following
<img src="image.jpg" alt="Title of the image" style="border: 2px solid black; width: 200px; height: 200px;">
Also, keep in mind that the above code will only work if the images are hosted on a web server and are accessible by the browser. If the images are not hosted on a web server, you won't be able to display them.
More question and answers:
https://brainly.in/question/21793582
https://brainly.in/question/5672747
#SPJ3