Learning HTML | HTML Link

Sabtu, 24 Desember 2011

Easily. A link is an address that refers to a document or other addresses on the Internet. I think that actually is what eventually link the concept of actually making the web a very useful and eventually become very large as it is today.
People are very easy to refer to other references that are all available online. Was really a genius:).
So, learn well yes .

do not use this example ok, it loads already on the Internet. Yes link click clack where you play it is.

Hyperlinks, Anchors, and Links

In web terms, a hyperlink is a reference (an address) to other information sources in Internet.Hyperlink usually refers to an HTML page, an image, sound file, movie, dll.an anchor  is a term used to define the purpose of a hyperlink within a document.

So like this, the page address indicated by the hyperlink, whereas if the document exists in chapter 2, we can directly refer to chapter 2 above with the aid of an anchor.

To create hyperlinks and anchor us to use the HTML anchor element <a>.

In this tutorial, we will use the term HTML link element <a> when referring to a page and the term HTML anchor element <a> when it refers to an address in the document.

Create HTML Link

Syntax Link:
<a href="/ makingwebsite/url"> Text Link </ a>

Opening tag contains the attributes of the link. The element content (text link) to define what you want to show to visitors.

Note: The contents of a text element should not know. You could also link from an image or any other HTML element.

href attribute

Href attribute is the address that will be opened when someone clicks a link that we created.

<a href="http://learndesignweb.blogspot.com/"> Want to learning make web while Practices Click here ONLY! </ a>

The code will be displayed like this. I'll try clicking feel. :)

Want to learning make web while Practices Click here ONLY! 


target attribute

Target attribute is very useful for us to set the page we want to go where it will be opened.

We can open it on the main page is a direct or open it in a new page when a visitor clicks on a link that we provide.

Unlike the previous code that opens a learndesignweb.blogspot.com website in the same window, this code will open a learndesignweb.blogspot.com website in a new window:


<a href = "http://learndesignweb.blogspot.com/" target = "_blank"> Want to learning make web while Practices Click here ONLY! </ a>


click on the link below let me know the difference:

Want to learning make web while Practices Click here ONLY!



attribute name

When we use the name attribute, then that means we define a named anchor inside an HTML page. Anchor name will not appear in the eyes of visitors. That's just a definition in a web page wrote.

How to create an anchor:
<a name="label"> Whatever </ a>
Well, the link to the page it cute this:

<a href="#label"> Whatever </ a>


Note that a # define named anchor

example:

An anchor in HTML document:


<a name="top"> This is the top </ a>


A link that refers to the very top in the same document:


<a href="#top"> Return to top </ a>


A link that led to an anchor on another web page:


<a href="http://learndesignweb.blogspot.com/mambo/exemple.htm#top">
Return to main page top </ a>



ah, if you want to see how an anchor link works, click here to go to the top of this page.


Important notes and tips that will certainly be useful for you

Remember to always add a slash at the end of our sub-folder links.

If we link looks like this:

href = "http://learndesignweb.blogspot.com/",


then you will make 2 pieces of http requests to the server, because the server will add slashes and made ​​the address that we asked was to be like this:
Untuk menebalkan huruf seperti kata tebal ini, kamu memerlukan tag <b> dan </b> Nah, coba pikirkan, bagaimana menuliskan bari sederhana ini tanpa entitas karakter. Ndak bisa kan? Misalnya kamu menulis seperti ini:
href = "http://learndesignweb.blogspot.com/mambo/"

Well, by adding a slash at the end of sub-folders, we have to save resources on the server.

You can use the anchor to create a table of contents at the beginning of a long document.If your browser can not find an anchor that we specify, it will automatically go to the top of the document. Without error.
Well, it is a matter of learning HTML link.

1 komentar:

Jyotidairatek mengatakan...

Nice article!!! If you are still looking for the services of web design near you? Then we are here to help you. We are one of the leading web design and development company in your area that offers you the best and most reliable services.

Posting Komentar

 
© Copyright 2010-2011 web design Web Design.
learning HTML Learning PHP | Published by create PHP | Sport News Blogger.com.