Skip to main content

What is a tag or anchor tag in HTML ?

We all can create a HTML page , right ? But What If I want to connect two HTML pages ? Good question.. Don't Worry ,We will discuss about it now .So please take a seat . Let's start .

  So , when we want to connect two pages then <a> tag comes in picture.Through this tag we can connect between two HTML document (pages) ,we also can connect an external image and also we can put any website's link.Well ,but where to put the links and also what is <a> tag .
 Well , <a> tag is nothing but an element is called anchor element .And it has a attribute is "href (hyper reference)" where we can put the address or the link that where we want to go or we connect with that particular page .
But how ..... That I will show you too ..
Suppose , we have two pages in a website , is "HOME" and "CONTACT" . So I am gonna show the linking process below with an example :



  So , in the above example , we can see two pages are linked with each other through anchor (<a>) tag.Where href is containing the page's address or we can say as path .Let's see output below :





  So now connections build-ed between two page . That's little nice.Although we can attach or connect an external image in anchor (<a>) tag , just we have to give path off that image and also image name in href attribute . Let's see an example below :




In the above example, href attribute is containing the path where the image staying and the image name .And when we click on hyperlink Coffee , it will drag us to same page and then image will be show .. So in this case image will be open in same page.  But if we want to open image in the different tab , the we have to use a attribute called target , which value will be "_blank". So target = "_blank" .. Output of the above example shown below :






  So as we can see a cup of coffee ,wow , Mammaamiaa and nice trick .. Well we know now how to add or connect an external image through <a> tag and also connection between two HTML pages .So , practice hard .
  
Please visit my YouTube Channel link given below :
Please follow my Facebook page link given below :

Keep Learning :)
Thank You .

Comments

Popular posts from this blog

Difference between High level language and Low level language ?

Today I am gonna talking about the difference between High - level Language & and Low - level Language .But first we have to know what does they contain , right ? Cause we don't know  what they are ?So take a  seat and let's start .. Let's go through first low - level Language . Well, if we want to learn Programming languages like C , C++ , Java , Assembly Language etc then we should know about them too .Let's understand with an example below ,     In our daily life , we are used to talking with many people with our own comfortable language . But can we talk to a computer with language English or Hindi or any other ? Ans is No .Because Computer is a machine after all . And computer only understands Machine Language,I mean binary (0 1) .Earlier if we want to do any addition like 9 + 2 ,in tha case we had to write the binary form of 9 ,binary form of + (addition) and 2 also . That is too difficult to remember binary form.Then "Assembly Language" ar

What is Class and Object in Oops || definition of Classes & Objects

We can make a program in Procedure oriented like C . But when C++ comes and says about Object Oriented Programming Language ( Oops ) , then Class & Object comes into picture . If we want to make a program in object oriented,then we must have to know about Class & Object which is main attributes of Oops . If you don't know much about it, don't worry . Take a seat , and let's start .   Class is a blueprint of Object where Object is a real world entity . Now whoever reading this blog , consider that I am a Object , that's great .. Now let's see with an example below then will discuss rest   ..       So if I consider Human as a Class & myself as an Object , then its definite I must be some properties and behavior .. So here we can say skin color , age , eye color , height etc as properties of myself . I am 22 year's old so 22 year's is an property and I can talk so here talk() is an function ( behavior ) of myself . So there are s

Text Formatting || Fonts in HTML

We all know that we can write Paragraphs in HTML with many tags , like  <p> , <span> etc. But what the point is if we think about its formatting , for example how to change a text color,how to resize a text .Don't know ? well take a sit ,we will discuss about it briefly , Lets Start ...  First talk about how to resize a font and change it's color also set it's alignment . Please note a point before that in HTML only 3 types of alignments are there : a- left , b- right , c- center  We will go through this line with ' p ' tag: "Hello World! Wake up and do your work hard" .    First set it's alignment ,I am showing a example below :      So,we can see the above example where I have put all three alignments with same line .First one will show at the left hand side ,second one will show at the center ,and last one will show at the right side .Now see the output of this example below :   Wow , it shows the cor