WD 6. AddingImages&Link
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Links and images</title>
</head>
<body>
<!--body and a is tag and href is attribute -->
<!-- target="_blank" is use to open in new tab -->
<a href="https://google.com" target="_blank">Go to google</a><br>
<a href="https://facebook.com" target="_blank">Go to facebook</a><br>
<a href="https://twitter.com" target="_blank">Go to twitter</a><br>
<a href="https://linkedin.com" target="_blank">Go to linkedin</a><br>
<a href="/4. tutorial.html" target="_blank">4. tutorial.com</a><br>
<a href="/5. tutorial.html" target="_blank">5. tutorial.com</a><br>
<!-- Image is not present hence alt text is shown -->
<img src="harry.jpg" alt="Error loading image">
<img src="https://source.unsplash.com/600*900/?nature,water" alt="Remote image" width="200" height="300">
</body>
</html>
#Output:
Comments
Post a Comment