Inserting Links and Images in Webpage is used to attract the users.In Links we are using href tag,It is a HyperLink its used to represent the url of the webpage or any link.In Images We are Using Imgsrc tag,in this tag is represent the target location of the images and used to insert the images .
Creating and Inserting Links
Syntax
<a href=”Location of url”>
Example
<!DocType>
<html>
<Body>
<a href=”Home.html”>Home</a>
</body>
</html>
Ouput:
Creating and Inserting Images
Syntax
<img src=”url of image”>
Optional
alt-alternative text given,if image is not loaded from browser the alternative text shown
align-lignment of the images
height,width-It is used to define the height and width of the image
Example
<!Doctype>
<html>
<body>
<img src=flowers.jpg” align=”left” height=”150″ width=”120″>
</body>
</html>