Why Tags Are Needed

Why Tags Are Needed
Why Tags Are Needed

Video: Why Tags Are Needed

Video: Why Tags Are Needed
Video: HOW TO USE YOUTUBE TAGS 2021: What Are Tags, Do Tags Matter + Common Mistakes | YouTube 101 2024, March
Anonim

The term "tag" comes from the English tag - "tag, label". Most often it is used in the meaning of a hypertext markup language element. Also, a tag can mean an identifier tag for an individual file or package in a data stream.

Why tags are needed
Why tags are needed

Hypertext markup languages determine how a web page is displayed in a browser. The placement of text, images, and hyperlinks is defined by tags. Most often, web pages are created using HTML, the standard markup language on the Internet.

As a rule, paired tags are used - opening and closing, but there are also single tags. In HTML, tag names are enclosed in angle brackets.

There are a few required tags, without which the web page simply won't open. For example, a tag pairing must appear at the beginning and end of the web document code. The tag stores service information about the document, and between the tags and is all the useful content of the page.

For the page to be displayed correctly, you must follow the order of opening and closing tags, i.e. their nesting:

This is me, a new page

Useful information on the page

Single tag

wraps the text to another line, and

defines the indentation of a line (paragraph).

Tags can have attributes (properties) with additional text formatting capabilities. For example, the color attribute can change the color of the font or background:

html is cool

The background color is set in the tag:

The attribute value must be enclosed in quotation marks.

To understand what the hypertext markup looks like, right-click on the text you are currently reading. In the drop-down menu, select the command "Page Source", "View Page Code" or "View HTML Code", depending on your browser.

Recommended: