Coding Practice: Write a Program to display image and link in HTML.

in hive-185836 •  4 years ago  (edited)

Coding Practice: Write a Program to display image and link in HTML.

img tag is used to display image on a htmlpage
a tag is used to create link a means anchor tag


<html>
      <head>     
             <title> This text will appear on the Top of the Browser tab</title>
       </head>
        <body  bgcolor=yellow> (html comment removed:  the text writen in body section will be displayed on browser. )
               <h1><center> BIODATA</center><h1>      (html comment removed:  <center> tag is used  is we want to display somthing in center of the browser)
               <br>   (html comment removed:  br is used for new line )
               <b> Name : CJ Singh </b>   (html comment removed:  <B> for bold, <i >for italic  , <u> for Underline, hr to draw a line )
<br>
**see the below image for img tag, img tag is not working in steemit, use the line that is in the image here**
<br>
<a href=https://www.google.com> Click for Google </a>

<br>
<h1> heading tag</h1> (html comment removed:  h1,h2,h3 h4 h5 h6 are th heading tags h1 has maximum size and h6 is the smaller )
<center><h3> End Of Program </h3> </center>
        </body>
</html>

img tag pic

error1.jpg

Output of the above Program is

html2.jpg

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!