Link and image in html

technical talkiess
0

 <!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 in html </title>

</head>

<body>

    <!-- anchor tag in html link the pages  -->

    <a href="www.google.com">Google</a>

    <a href="www.google.com">Facebook</a>

    <a href="www.google.com">Twitter</a>

    <!-- taget blank attribute open the site in the new tab -->

    <a href="www.google.com" target="_blank">Google</a>

    <!-- image tag in html ..... alt attribute is showing the text when image is not loaded -->

    <img src="https://images.unsplash.com/photo-1691512936431-fc55c6b52fa1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw0fHx8ZW58MHx8fHx8&auto=format&fit=crop&w=600&q=60" alt="This is the nature image ">

</body>

</html>

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)