HTML Tags
HTML tags are fundamental components used to structure and format content in web documents. They define specific elements as paragraphs, headings of a specific hierarchy, images and so on, enabling you to add styles using CSS to a specific html tag to change its visual appearance in the web browser.
HTML tags commonly consist of opening and closing pairs enclosed in angle brackets, such as the paragraph <p> tag that denotes certain content as a paragraph. Using CSS you can then add style to that tag, determining its font -family, font-size, paragraph background color, and many more properties to change how it looks.
You open a paragraph with the opening pair <p> and you close it with a </p> paragraph closing tag. Using a range of HTML tags, we can effect a variety of content throughout the site, from paragraphs <p>, to headings <h1> to <h6>), links <a>, and text-decoration like <i></i> for italic or <strong> tags for bold.
A tag may have attributes that provide additional information or functionality, such as the ‘href’ attribute in links used to connect text to a website located inside the site itself, or an external link to the greater internet. Some tags, like <img> for images, are self-closing and do not require a closing tag.
HTML5 introduced the ability to create custom elements, allowing developers to extend HTML’s capabilities for specific needs. A deep understanding of HTML tags enables you to craft visually appealing designs with the content on your site.
Notes
Resources
Cite This Article
MLA
West, Brandon. "HTML Tags". Projeda, April 20, 2024, https://www.projeda.com/html-tags/. Accessed May 2, 2025.