Skip to main content

Anchor & Image Tags along with their attributes

Anchor TAG

Anchor and Image Tag :

Anchor or A Tag :

HTML anchor tag defines a hyperlink that links one page to another page. It can create hyperlink to other web page as well as files, location, or any URL.For example : in our Regular innovations Website we can find so many links to the other pages which will be useful for going from one web page to another webpage.

Sarting Tag : <a> Ending tag : </a>

Attributes :

    It has different attributes like
  1. href
    • mailto:
    • tel:
  2. Target
  3. download
  4. Image or img Tag :

    HTML Image tag is used to embed an image in an HTML page. Images are not technically inserted into a web page; images are linked to web pages.For example : In our Regular innovations Website we are using this tag for creating attractive look for the website.

    Sarting Tag : <img> Ending tag : </img>

    Attributes :

      It has different attributes like
    1. src
    2. alt
    3. title
    4. height
    5. width
    6. For this first take a notepad and copy code then save it with .html extension.Thats it your Program will be exected.if You want to check its effect within this website plese click on EXECUTE button.

      1. href attribute : This is used to give the link of particualr web page . The values for this Attribute will be actual link of web page, mailto:to send mail to the provided mail address , tel: it is used to make call to particular mobile Number

      CODE <html> <head> <title> A TAG </title> <style type="text/css"> </style> </head> <body > <a href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg"> Go to MSR WebTech Youtube channel </a><br/> <a href="mailto:msrwebtech@gmail.com"> Send a mail to Msr WebTech </a><br/> <a href="tel:9848******"> Make a call to Msr WebTech </a><br/> </body> </html>
      OutPut (Click on above execute Button)

      2. Target attribute : This is used to specify where your web page has to be opened . The values for this Attribute will be Blank,new,top,self,in frames we can fix the target by using frame name

      CODE <html> <head> <title> A TAG </title> <style type="text/css"> </style> </head> <body > <a href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg"> Go to MSR WebTech Youtube channel on same page </a><br/> <a href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg" target="blank"> Go to MSR WebTech Youtube channel in new tab </a><br/> <a href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg" target="self"> Go to MSR WebTech Youtube channel (Self - Effect will be appear on only Frames) </a><br/> <a href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg" target="top"> Go to MSR WebTech Youtube channel ( top- Effect will be appear on only Frames) </a><br/> </body> </html>
      OutPut (Click on above execute Button)

      3.Download attribute : This is used to Download file when you click the link

      CODE <html> <head> <title> A TAG </title> <style type="text/css"> </style> </head> <body > <a download="" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg"> Download MSR WebTech Youtube channel Image </a><br/> </body> </html>
      OutPut (Click on above execute Button)

      Img or Image Tag :

      1.Src : This is used to Display image on web page

      CODE <html> <head> <title> Img TAG </title> <style type="text/css"> </style> </head> <body > <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg"> </img><br/> </body> </html>
      OutPut (Click on above execute Button)

      2.Alt : This is used to Display Name of the image when website is failed to load image.

      CODE <html> <head> <title> Img TAG </title> <style type="text/css"> </style> </head> <body > <img alt="Sorry Failed to load Msr WebTech Youtube channel Image" src="1.jpg"> </img><br/> </body> </html>
      OutPut (Click on above execute Button)

      3.Title : This is used to Display Name of the image when take the mouse Over to the image

      CODE <html> <head> <title> Img TAG </title> <style type="text/css"> </style> </head> <body > <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg" title="Msr WebTech Youtube channel Image"> </img><br/> </body> </html>
      OutPut (Click on above execute Button)

      4.Height & Width Attributes : These are used to set the Hight and width of the image interms of Pixels like 10,20....etc

      CODE <html> <head> <title> Img TAG </title> <style type="text/css"> </style> </head> <body > <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg"> This is Normal Msr WebTech Image </img><br/> <img height="50px" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg" width="100px"> This is Msr WebTech Image after setting height 50 and width 100 pixels </img><br/> </body> </html>
      OutPut (Click on above execute Button)

      Combination of Anchor tag ,Image and Marquee tag :

      CODE <html> <head> <title> Combination of Anchor tag ,Image and Marquee tag </title> <style type="text/css"> </style> </head> <body > <marquee id="test" bgcolor="orange" onmouseover="document.all.test.stop()" onmouseout="document.all.test.start()" > <a download="" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg"> <img height="100px" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgShqznfbydYS5_ftfsZPA0TUM7WzAMle82eQ09y8TnZXsqy2_DCncZuhVe0yeoK9n2YLpIA9mrFL7a3wL9JBxJKyQZ59MyNvpZ-Ik57TtKvVqdryzxuJGt1JJiLVuwkq4PBcOfY-K_0A/s0/anchor_tag.jpg" title="Msr WebTech Image" width="150px"> </img> <a> </marquee> <br/> </body> </html>
      OutPut (Click on above execute Button)

Comments

Popular posts from this blog

Computer awareness questions asked in RRB PO Part II

Computer awareness questions asked in RRB PO Part II Part -I Part - II Learn them from below Q 1) which of the following is not a is not an email service ? A. Bing B. yandex C. gmail D.Yahoo View Answer & Explanation Q 2) Which of the following is incorrect declaration of file name in Windows 7 ? A.mydoc:file.doc B.Mydoc hai.doc C.Mydoc_hai.doc D. Mydoc.doc View Answer & Explanation Q 3)Which of the following is correct mail id ? A. @mymail.com B. msrgmail.com C. msr@.com D. msr@gmail.com View Answer & Explanation Q 4) Which of the following is a software that that is available free of cost but do not provide any freedom of modifying, sharing and studying the program ? A.Free ware B.share ware C. Open source D.Adware View Answer & Explanation ...

Fieldset and Pre Tags in HTML with Live execution

Fieldset Tag in HTML Fieldset & Pre Tags in HTML : 1. Fieldset Tag : is used for grouping related form elements in a box.It is used to give user a clear view about Content. Starting tag : Ending tag : 2. Legend Tag : Legend tag is used to give title for Fieldset. Starting tag : Ending tag : 3. Pre Tag : Pre tag is used to set alignment of your web page as coded line wise . Starting tag : Ending tag : For this first take a notepad and copy code then save it with .html extension.Thats it your Program will be exected.if You want to check its effect within this website plese click on EXECUTE button. CODE Fieldset ,Pre TAGs Login Page User Name : Password : OutPut (...

Part 4 : Top 500 Computer Awareness Previously Asked Questions

Top 500 Computer Awareness questions Take Quiz from below Q 1) In Network layer , data transferred interns of _______________ ? frames packets bits segments Q 2) What is the shortcut for creating new slide from already existing slide ? contrl + N contrl + M contrl + V contrl + R Q 3) What is the extension for MS-ACCESS ? ACCDB XLS DOCX ACCESS Q 4) Which of the following is volatile memory ? HARD DISK ROM RAM COMPACT DISK Q 5) What is used to identify Particular page on web ? ? HYPERLINK URI URL SERVER ADDRESS Q 6) Which one of the fo...