Home / the Internet / Web programming / What are tags and how to use them?

What tags are and how to use them


What are tags and how to use them</a>

The Internet is based on the html-language hypertext markup. By "hypertext" is meant a text including references.

It is a simple possibility of moving from one page to another, from one site to the second, transformed computer technology.

The simplicity of html is achieved by a convenient developer tool - tags.

Tags in html

Tags in html - a means of semantic (semantic) formatting, presentation and communication of information. Any tag must be located between the characters: <And>. All html tags are understood by the majorityExisting browsers. Standardization and creation of new tags is carried out by the international organization W3C - there you can learn about all existing html tags. Tags can only work inside the "main" tag of the html document - HTML. With the HEAD and BODY tags, the web page is divided into two logical parts. In HEAD, you can affect the title of the page (displayed on the browser tab), BODY also "responsible" for all the semantic content of the page.

Single and pair tags

All html tags can be divided into paired andSingle. Single tags are used only when paired use is meaningless. For example, a single BR tag is an empty string. If you write this tag in the html-code, you can see the line-separator in the browser. It is usually used to separate one group of information from another.
Paired tags are used to organize content. Text information, file addresses, links are placed between the tags P (paragraph of the text), IMG (image), A (hyperlink).

Tag Attributes

Some tags have special attributes,Affecting the "behavior" of the element. Some tags of the modern specification html5 allow you to do without the necessary programming before to solve common problems.
For example, the FORM tag (input field) has an attributePLACEHOLDER, which replaces the text field with "test information", prompts. If the web developer wants the name field not to be empty, but to display the name example, he can assign the value "Ivanov Ivan" to the PLACEHOLDER attribute. Then in the text box for entering the name, "Ivanov Ivan" will be displayed - until the user translates the cursor into this field. The inscription disappears, and he can enter his name.

Relationship with CSS

Relatively new technology (in comparison withHtml) submission of sites on the Internet is CSS. For CSS abbreviation, "cascading style sheets" are hidden. Prior to their appearance, webmasters used to divide the site into a logically clear table structure (TABLE tag). Now the site creators have the opportunity to place everything related to the site presentation (including the location of the blocks) in a special style css-file. To connect a style sheet to an html document, you must specify the css file address on the server in the LINK pair tag.

What tags are and how to use them Was last modified: June 20th, 2017 By Bagqeowd
It is main inner container footer text