HTML Tags

HTML is a collection of tags that have specific meanings. Generally, the tags enclose the text that they are describing, in this way:

<tag>Some piece of text.</tag>

What is happening in this previous example?

First, we have the opening tag: <tag>. The tag starts with a < (less than) symbol and ends with a > (greater than) symbol. Then we have the piece of text we are describing: Some piece of text. Finally, we have the closing tag: </tag>. The closing tag is exactly the same as the opening tag, except that it contains a / (forward-slash) symbol. The whole example above – the opening tag, the text contents and the closing tag is collectively called an element. This is essentially the way we mark up text in HTML and other, related languages. Once we learn a few basic tags, we can start creating HTML documents that can be recognized by web browsers all around the world. In this way, we can publish pages to the World Wide Web.