30 HTML Tags to know (2024)

30 HTML Tags to know (2)

In my last article, I broke down how to get started with HTML 5. If you are just getting beginning you can read here. In this article, I will show 30 tags that we will use in my future articles.

  1. Doctype
    The doctype declaration is the first line of code in an HTML file, and it communicates to our website which version of HTML we are working in. This simple line below is sufficient to start our HTML file.
<!DOCTYPE> 

2. HTML
The HTML elements are written after our Doctype Declaration, and wrap all of our HTML code. It is sometimes known as the root element.

<html>

3. Head
The Head Element is used to wrap around everything you want to include on the HTML page, that isn’t the content the page will show to viewers. This includes keywords and a page description that would appear in search results, CSS to style content, character set declarations, and more.

<head></head>

4. Title
This sets the title of the page, which is the title that appears in the browser tab the page is loaded in. The page title is also used to describe the page when it is bookmarked. You can write this sentence below inside our Head element.

<title>

5. Body
The body tags contain all of the content that will appear on our webpage. This includes text, images, videos, games, playable audio tracks, or whatever else.
We can write the body tags below all of the content that is wrapped in the Head tags.

<body>

6. H1 to H6
There are 6 levels of hierarchy HTML gives us to label our headers with. Labeling with H1 will let the web browser know that this piece of information is the most important part of our page. An H2 will be the second most important piece of information, and so forth down to H6. It is best to use CSS to determine the size of our typography and only use the HTML tags to clarify the importance of our information hierarchy to the browser.

<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>

7. P
The P tag stands for paragraph. Between this tag is where we store the paragraphs of information.

<p></p>

8. Line Break
The line break tag is used to create a line break in a paragraph or header text.

<br>

9. Commenting our HTML code
Commenting on our HTML code is an important step to communicate to potential other developers how our file is broken down. This code will not show up on our browser. Using commenting is an important step throughout programming to keep the code legible. You write in between the two dashes on each side to comment.

<!--This is how you comment your code--> 

10. Bold
Defines that the text should be bold.

<b>bold text</b>

11. Div
The division tag is probably one of the most used tags in HTML. It is used to wrap a section of content. A div element is used for block-level organization and styling of page elements.

<div></div>

12. Header
The header element represents a container for introductory content or a set of navigational links.

<header></header>

13. Footer
The footer element represents a container for information such as authorship information, copyright information, contact information, sitemap, back-to-top links, and related documents.

<footer></footer>

14. Main
Specifies the main content of a document.

<main></main>

15. Details
Defines additional details that the user can view or hide. It creates a dropdown box that shares more information when clicked.

<details></details>

16. Summary
Defines a visible heading for a <details> element.

 <summary></summary>

17. Article
Defines an article.

<article></article>

18. Abbreviations or acronyms
HTML has provided us with a tag <abbr> that will communicate with our browser what our acronym stands for. This is useful for accessible websites. Website visitors do not see the text in the title attribute, but browsers, search engines, and assistive technologies do use this information. The code below will output a line of text that reads like, “This website is all about HTML”.

This website is all about <abbr title=”HyperText Markup Language”>HTML</abbr>.

19. Address
The <address> tag is useful to wrap around the section on our website that indicates the contact information of a person or an organization. If <address> tag is used inside the <body> tag then it represents the contact information of the document and if the <address> tag is used inside the <article> tag, then it represents the contact information of the article.

<address>Organization Name: MacTavish Designs <br>Web Site:<a href="https://zackmactavish.github.io/MacTavish/">Zack MacTavish</a><br>Portland, Oregon</address>

20. Span
A span is similar to a div, but a span element is used for inline organization and styling.

<span></span>

21. Script
The script tag is how we add Javascript or any other client-side script to our project.

<script></script>

22. No Script
The no script tag is used to display alternative content if the user does not have Javascript enabled on their browser.

<noscript>Your browser does not support JavaScript!</noscript>

23. Image
The img tag is used to display an image on our browser. It allows us to add in the attributes of src, alt, height, and width. The src attribute points to where our image is stored, and pulls it to place it on the browser. The alt attribute allows us to place a meta description text for our image that will not show up on our browser.

<img src = "new.svg" alt = "craft" height = "100px" width = "100px" />

24. Unordered List
Defines an unordered list in which we can place list items.

<ul></ul>

25. Ordered List
Defines an ordered list in which we can place list items.

<ol></ol>

26. List Item
Defines a list item that can be placed in an unordered or ordered list. I will show an example of pets in an unordered list below.

<ul>
<li>Dog</li>
<li>Cats</li>
<li>Turtles</li>
</ul>

27. Hyperlink
A hyperlink can be added to an HTML page by wrapping it in a <a> tag. This gives us the attribute of href, which allows us to point to a link. We can also add the attribute target=”_blank” if we want our hyperlink to open in a new tab.

<a href=”https://www.w3schools.comhttps://zackmactavish.github.io/MacTavish/" target="_blank">Visit my website!
</a>

28. Nav
The <nav> tag defines a set of navigation links. Notice that NOT all links of a document should be inside a <nav> element. The <nav> element is intended only for major block of navigation links. Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.

<nav></nav>

29. Button
This tag will place a clickable button on our web page.

<button type="button">Click Me!</button>

30. Form
The <form> tag is used to create an HTML form for user input. This can be used for things such as a survey, login page, or sign-up.

<form></form>

The <form> element can contain one or more of the following form elements:

Thanks for reading along so far! I will have additional content creating HTML pages, and will further explore creating a form and implementing other tags. Subscribe to see my future posts!

30 HTML Tags to know (2024)
Top Articles
Why Not UBI?
Blogger - Hiring People
Mcgeorge Academic Calendar
Katmoie
My Boyfriend Has No Money And I Pay For Everything
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
RuneScape guide: Capsarius soul farming made easy
Optum Medicare Support
Whiskeytown Camera
Craigslist Estate Sales Tucson
Caroline Cps.powerschool.com
Sarpian Cat
Elbasha Ganash Corporation · 2521 31st Ave, Apt B21, Astoria, NY 11106
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Kitty Piggy Ssbbw
E22 Ultipro Desktop Version
Kp Nurse Scholars
Sussur Bloom locations and uses in Baldur's Gate 3
Ford F-350 Models Trim Levels and Packages
8005607994
Marilyn Seipt Obituary
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Myaci Benefits Albertsons
2487872771
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Elanco Rebates.com 2022
Shiftwizard Login Johnston
Flaky Fish Meat Rdr2
Fox And Friends Mega Morning Deals July 2022
Japanese Pokémon Cards vs English Pokémon Cards
Tgh Imaging Powered By Tower Wesley Chapel Photos
Hair Love Salon Bradley Beach
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
School Tool / School Tool Parent Portal
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
Alpha Asher Chapter 130
Google Chrome-webbrowser
Gpa Calculator Georgia Tech
Review: T-Mobile's Unlimited 4G voor Thuis | Consumentenbond
Bekkenpijn: oorzaken en symptomen van pijn in het bekken
Marcal Paper Products - Nassau Paper Company Ltd. -
Gas Buddy Il
Booknet.com Contract Marriage 2
How to Connect Jabra Earbuds to an iPhone | Decortweaks
Cult Collectibles - True Crime, Cults, and Murderabilia
A Man Called Otto Showtimes Near Cinemark Greeley Mall
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
Online TikTok Voice Generator | Accurate & Realistic
Diario Las Americas Rentas Hialeah
Tyrone Dave Chappelle Show Gif
Gainswave Review Forum
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 5632

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.