We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

In HTML, what is Tagging?

By Dorothy Distefano
Updated: May 16, 2024
Views: 12,524
Share

Hyper Text Markup Language (HTML) is the code used by a web page that determines how that page is viewed. Formatting text is accomplished by tagging, a process which informs the browser what special characteristics to apply to the text on a specific part of the page. HTML tags are written in English, and are generally not difficult to learn.

To get an idea of what HTML really looks like, you can right-click on the web page you are currently viewing, and then click on either View Source, View page source, or Inspect element. A new window or tab will open and display the HTML source code for the page. These tags will look like this: <tags>.

Tagging indicates how text should look. For example, if the selected text is to be bold, placing the <bold> tag before the text and the </bold> tag after it will ensure that the enclosed content appears in bold. Similarly, tagging, or enclosing, words with <italic> and </italic> will create italicized content on the web page.

When using tagging, every HTML function requires both an opening and closing tag. Tags are enclosed in angle brackets. The first bracket set contains the command and the second uses a backslash before the closing command. If the tag is not closed, the desired text attribute will not be applied.

Every bit of text that is to be displayed on a web page must be placed between HTML tags. In other words, <html> should be the first text on your page and </html> should be at the end. These commands may be in either lower case or caps, but not a combination.

Your web page may include a wide variety of tags, but it will likely contain these commonly used ones, in this order:

  • <html> Indicates the beginning of your HTML document.
  • <head> The header will contain the title and other style tags.
  • <title> This is the title of the page.
  • </title> This tag closes the title tag.
  • </head> This tag closes the header tag.
  • <body> This is where the remaining information for your document will be placed, including HTML tags for the content.
  • </body> At the end of your page, you will close the body tag.
  • </html> If the HTML tag is not closed, a web browser will not properly display the content.

Tagging can identify text attributes such as titles, line breaks, color, font, links, and more. Header tags are used to determine text size. Many websites are available with full listings of HTML tags for reference. Simply perform an Internet search for HTML tags to find some resources.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
Share
https://www.easytechjunkie.com/in-html-what-is-tagging.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.