Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have been switching to coding everything by hand this year. Ihave an image cal

ID: 3609005 • Letter: I

Question

I have been switching to coding everything by hand this year. Ihave an image called google.jpg on my desktop and i want to add itas an image to a webpage that im building on my local machine andthen view it. I only want to use the relative path, not theabsoutle path. The code i have is
<imgsrc="https://s3.amazonaws.com/answer-board-image/google.jpg"width="1000" height="450" />.

The image displays as an broken image. Im notsure how to link to files on my local machine using their relativepath names.
<imgsrc="https://s3.amazonaws.com/answer-board-image/google.jpg"width="1000" height="450" />.

The image displays as an broken image. Im notsure how to link to files on my local machine using their relativepath names.

Explanation / Answer

Dear..,

You gave correct code.
you just decrease width and height , then image wontbreak.

Here i am giving the code again

<html>
<title> google </title> <body><img src="https://s3.amazonaws.com/answer-board-image/google.jpg"height="200" width="200";alt="google">
</body>
</html>
In the above code i used alt attribute.., why because ifbrowser can't load images then display the alternate text insteadof the image. <html>
<title> google </title> <body> <imgsrc="https://s3.amazonaws.com/answer-board-image/google.jpg";alt="google">
</body>
</html>
In above we didnt specified any widthand height so which image on your desktop that one add towebpage. I hope this will helpsu.
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote