Although it is one of the more basics inside the HTML, the link structure still gives some doubts in some developers, even in the experts. Thinking on it, today we’ll dismember the mainly elements that compose it and then take out possible doubts that you may have.

estrutura-link

As you can see in the image above, a link is made by thousands of attributes written inside and between the <a> tag.

The HREF attribute will indicate which page the user will be redirected when click in the link. The TARGET attribute indicates if that page will be open in the same browser window or in a new one. For this to happen all you have to do is indicate the “_blank” value on the attribute.

When you pass the mouse in the link, a  little description can be performed. This description is the TITLE attribute and you can insert the information that you wish on this attribute.

Has you can see in the image, most of the attributes are inserted on the first part of the <a> tag, but realize that exist another information that lays between the opening tag and the ending tag. This information is called ANCHOR-TEXT. This information will be renderized in a link form, giving this way a aspect known as a HTML link. Is important to point out that this attribute is used in services like SEO to optimize the sites on research mechanisms.

 

You might also like…

PROCESAMIENTO AJAX EN SCRIPTCASE

Ajax en los formularios de Scriptcase puede usarse para recargar un campo de tipo de select basado e...

IMPORTAR IMAGENES DE LA BASE DE DATOS Y UTILIZAR CLASES DE BOOSTRAP

Como muchas personas ya saben, Bootstrap es una biblioteca de front-end libre y de código abierto p...

TENDENCIAS DE DESARROLLO WEB PARA 2017

Usted verá en este post tendencias para 2017 en Diseño Web, en el medio digital y en el desarrollo...

Comment this post

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at sales@scriptcase.net. Learn more about our Privacy Police.