ComputersProgramming

How to create html links

The format of html is widely used in the creation of unpretentious websites and blogs. Particularly successfully use it for markup. The reason for its popularity is its ease and versatility. Make layout of the page in this format is very simple. You do not need to be a genius to master this format quickly and successfully.

In most cases, this format is used to design text - set the size of letters, font and its color, select lists and subheadings, and also create a system of hyperlinks.

It's no secret that links are an integral part of any website. That's why you should learn how to properly create html links. Links, or as they are called, anchors, are created using a pair tag.

Like most tags, the anchor has its own parameters, with which you can set the color of the html link, as well as a tooltip, a footnote. Well, let's take a closer look.

So, as we have already said, the reference is specified using a pair tag. In this case, the text between the opening and closing tag becomes clickable. Clicking on the text, you will go to a predefined address.

The address of the html link is specified using the href parameter, while   The address of the page is quoted, and after the parameter Href is put an equal sign.

If you forget to put quotation marks or the equal sign, the link will not work.

Another useful parameter is target. Using it, you can specify where the link will open - in the current window or in the new one. This parameter is set at the head of the document - with the help of a tag. If you do not specify it, the link will be opened by default - depending on the browser settings.

There are two options that you can ask. The command "_self" opens a link in the current window, and the command "_blank" - in the new one. There should also be teams in quotation marks and be sure to equate them.

As for the color of the html link, it is registered in the tag with the help of several commands.

The link command prescribes the color of the link itself, alink - the link color during the click or the active link, and using the vlink command, you can select the link color after the visit. The colors of links are specified using special codes, which can be found in any color table. The color code is quoted, and the "#" sign is always preceded.

Of course, you can do without these tags, then the colors of the links will be defined by default (blue and purple). But if the background on the site or the text color matches the one specified by default, then the page will look not very nice and presentable.

When creating links to html, carefully read the instructions, double-check the correctness of the tags and addresses. Quite often, links may not work or may not be displayed correctly if they are incorrectly designed. For example, you can forget to put quotes in the address, and here's the link does not lead anywhere. Or forget to close the anchor, and the page will display not only the text, but the tasks and parameters of the anchor.

Using the html code of the link, you can create and design beautiful and vivid transitions on the site. You can use not only banal phrases and texts for linking, but also pictures, logos, photos. It all depends on your imagination and skills.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.atomiyme.com. Theme powered by WordPress.