Anchor tag and IMG tag
Questions 1. Define <img> tag and src attribute. Answer :- The <img> tag is used to embed an image in an HTML page. Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image. The <img> tag has two required attributes: • src - Specifies the path to the image • alt - Specifies an alternate text for the image, if the image for some reason cannot be displayed Example:- <img src=”img_girl.jpg” alt=”Girl in a jacket” width=”500” height=”600”> Questions 2:- Differences between gif and jpeg . Answer:- The difference between GIF and JPEG is that GIF is a better choice for computer graphics with limited color palettes (like logos, simple cartoons, or line art), while JPEG is a better format for photographs and colorful images, and it also looks good when printed. The extension of gif is .gif The extension of jpeg is .jpeg Questions3:- what is hyperlink? Answer:- A h...
Comments