Anchor element <a> is used to link web pages, images or any other content in html document. a stands for anchor annd used as hyperlink to create chain of links it has href attribute for linkage.
<a href=URL/Address
>link text or image</a>
or
<tag><a href=URL/Address
>link text or image</a></tag>
You can use anchor element any where within an HTML document.
Href attribute is used for linkge of web pages or documents with other documents for more detail visit href attribute
<img src=image location
alt=about image
/>
Target attribute is used for location of opening of document following are the five locations where your anchor images or any anchor document will be opened.
_Blank opens any anchor document in new window or tab.
_Self opens any anchor document in same window or frame by default.
_Parent opens any anchor document in parent window or frame.
_Top opens any anchor document in full sized window.
Anchor is a pair tag and output of anchor is link text or image like you can see in above examples.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget anchor is non empty element which means it always comes in pair.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Welcome To Home
We are happy to see you here thanks for visit.
My name is XYZ
I am Software Engineer.
This all about website
teachMeCoding is the best learning site ever.
Here you can contact us
Don't forget anchor is non empty element which means it always comes in pair.