How to use an image in a webpage?
Answers
Answered by
0
Adding an image is relatively easy; just follow these steps:
- Identify the image you want to use.
Be sure you have permission to use the image on your site.
- Modify the image if necessary.
It’s best to resize your images before you use them on the web. You can use commercial image-manipulation software or free programs such as IrfanView and Gimp.
- Choose your image type.
If your image is in a format other than web-friendly .jpg, .gif, or .png, use a tool like IrfanView or Gimp to change it to one of these formats.
- Put your image in the right place.
Put your image file in the same directory as the HTML file. That way, when you post your page to the server, you can move the image as well.
- Build your page as normal.
The image will be placed with a tag embedded into the body.
Use the <img> tag to indicate the image.
Embed this tag inside a <p></p> (paragraph) or <div></div> (division) pair so that the page validates correctly.
thanks
Similar questions
Biology,
6 months ago
Computer Science,
6 months ago
Biology,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Math,
1 year ago