Thursday 29 December 2022

HTML - Image and Font Tag

 HTML - Image and Font Tag

HTML Images Syntax

The HTML <img> tag is used to embed an image in a web 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 is empty, it contains attributes only, and does not have a closing tag.

The <img> tag has two required attributes:

  • src - Specifies the path to the image
  • alt - Specifies an alternate text for the image


==============================================

<html>
<head>
<title> Image Tag</title>
</head>
<body>
<h1><font face="Harrington" font color="blue" font size="35"> Annual Day Photos </font></h1>

<img src="annual day.jpg" alt="PRIASCHOOL" width="1000" height="700">
<br>

<h2><font face="Harrington" font color="red" font size="35"> Annual Day Photos </font></h2>

<img src="priaschool1.jpg" alt="PRIASCHOOL" width="1000" height="700">

</body>
</html>


===================================================

Output



No comments:

Post a Comment