The Meaning Of "Tags" in HTML & Web pages

Subscribe to my newsletter and never miss my upcoming articles

On clothes, tags usually indicate the brand, size of the garment, fabrics used, and the washing instructions. In Web pages, tags are keywords/letters inside of angled brackets <> that indicate what should be displayed on the screen when the page loads. Tags are the basic formatting tool used in HTML (hypertext markup language) and other markup languages, such as XML. For example, to create a table on a Web page, the <table> tag is used. To add a link to a web page, the <a> tag is used. Most tags have opening and closing tags like the examples above. Opening tag: <table>, Closing tag: </table>. The opening and closing tags are usually the same, the only the difference is the forward slash ” / ” in the closing tag.

If you want something to show up in bold on a Web page, you would use the β€œb tag”. For example, the HTML code below:

My name is <b>Saliu Abdulrazaq</b>

would show up as:

My name is Saliu Abdulrazaq

Tags are a fundamental part of HTML and they are pretty simple to understand. If you want to build a web site of your own, you can either create it from scratch (using a text editor and typing your own tags) or you can use content management system (CMS) like WordPress or Drupal to create your site.

Comments (2)

Purvi Barot's photo
  • "Tags" provide web browsers with instructions about the web page, such as where to display images, and how the document is structured.

  • Tags are always enclosed in angle brackets: < >.

  • Tags are comprised of elements and attributes. An element is an object on a page (such as a heading, paragraph, or image), and attributes are qualities that describe that element (such as width and height).

  • Tags in HTML are not case sensitive.

  • Tags can be nested.For example:

    <div><p>This paragraph is nested inside a division</p></div>

Saliu Abdulrazaq's photo

Thanks Barot for this awesome comment πŸ™ŒπŸš€