How do you choose the right HTML tags for your web page content? (2024)

Last updated on Apr 15, 2024

  1. All
  2. HTML

Powered by AI and the LinkedIn community

1

Know the purpose of your tags

2

Use the most appropriate tags

3

Avoid using deprecated or obsolete tags

4

Use HTML5 tags for new features and functionality

5

Validate your HTML code

6

Learn from other sources and examples

7

Here’s what else to consider

Be the first to add your personal experience

HTML, or HyperText Markup Language, is the foundation of any web page. It defines the structure and content of your document using tags, which are keywords enclosed in angle brackets. But how do you choose the right HTML tags for your web page content? In this article, we will explore some HTML best practices and tips to help you make the most of your markup.

Top experts in this article

Selected by the community from 20 contributions. Learn more

How do you choose the right HTML tags for your web page content? (1)

Earn a Community Top Voice badge

Add to collaborative articles to get recognized for your expertise on your profile. Learn more

  • Jainish Shah LinkedIn Top Voice 2024 | Product Manager | CSP-PO | A-CSPO | CSPO | CSM | MBA E-Business

    How do you choose the right HTML tags for your web page content? (3) How do you choose the right HTML tags for your web page content? (4) How do you choose the right HTML tags for your web page content? (5) 204

    4 Replies

  • How do you choose the right HTML tags for your web page content? (7) 8

How do you choose the right HTML tags for your web page content? (8) How do you choose the right HTML tags for your web page content? (9) How do you choose the right HTML tags for your web page content? (10)

1 Know the purpose of your tags

HTML tags are not just random words that you can use interchangeably. Each tag has a specific meaning and function, and you should use them accordingly. For example, the <h1> tag is used for the main heading of your page, the <p> tag is used for paragraphs, and the <img> tag is used for images. Using the right tags helps you create a clear and semantic web page, which improves accessibility, readability, and SEO.

Add your perspective

Help others by sharing more (125 characters min.)

  • Jainish Shah LinkedIn Top Voice 2024 | Product Manager | CSP-PO | A-CSPO | CSPO | CSM | MBA E-Business
    • Report contribution

    I have seen many developers using the heading tags like <h1>, <h2>, <h3>, etc. for making the size of the font big or small. This is a very big mistake. The purpose of heading tags is to add headings to your content & not to resize your font. Making such mistakes not only hampers the user experience, accessibility & readability but also the SEO of the website.Using the right tags at the right place can optimize the overall user experience on the website & the SEO too.

    Like

    How do you choose the right HTML tags for your web page content? (19) How do you choose the right HTML tags for your web page content? (20) How do you choose the right HTML tags for your web page content? (21) 204

    • Report contribution

    - Semantics: Choose tags that accurately represent the purpose of the content like <h1> for headings,<p> for paragraphs,<ul> or <ol> for lists.- Accessibility: Use appropriate tags to ensure your content is accessible to all users, including screen readers & assistive technologies.- SEO: Some tags, like <title>,<meta>,<header> can improve your website's SEO by providing context & keywords.- HTML5 structure: Utilize HTML5 elements <article>,<section>,<nav>,<footer> for better organization.- Compatibility: Ensure compatibility across different browsers & devices by checking HTML specifications and browser support for specific tags.- HTML validation: Validate your HTML code using online validators to ensure it conforms to standards.

    Like

    How do you choose the right HTML tags for your web page content? (30) 8

  • Of course, knowing when to use <h1>, <h2>, <h3> etc., or <p> vs. <div> vs. <span> isn't always clear. The same text can be used in all of these tags, but the tag you chose effects how it's seen on the page, and can create a headache when writing CSS.

    Like

    How do you choose the right HTML tags for your web page content? (39) 5

  • Upasana Bhagat
    • Report contribution

    One thing I have found helpful is using HTML5 tags that gives more meaningful structure to the HTML document and also gives better understanding of the content to assistive technologies and search engine optimization strategy.

    Like

    How do you choose the right HTML tags for your web page content? (48) 4

  • Justin James Software Engineering Manager @ Google
    • Report contribution

    If the layout isn't working out for you using tags properly, you need to consider changing the design because semantic meanings won't change for you.

    Like

    How do you choose the right HTML tags for your web page content? (57) How do you choose the right HTML tags for your web page content? (58) 3

Load more contributions

2 Use the most appropriate tags

Sometimes, you may have more than one option to choose from when it comes to HTML tags. For example, you can use the <strong> or the <b> tag to make text bold, or the <em> or the <i> tag to make text italic. However, these tags have different meanings and implications. The <strong> and the <em> tags indicate emphasis and importance, while the <b> and the <i> tags are purely for presentation. You should use the former tags when you want to convey meaning, and the latter tags when you want to change the appearance.

Add your perspective

Help others by sharing more (125 characters min.)

  • Oleg Tyshchenko 📈 Search Engine Optimization Expert
    • Report contribution

    Choosing the right tag can also improve your site's ranking in Google or Bing.For example, instead of using the <span> element, you can use the following elements:* The abbr element represents an abbreviation or acronym.* The code element represents a fragment of computer code.* The cite element represents the title of a work (e.g. a book, a paper, an essay, a song, a script, a game, etc.). This can be a work that is being quoted.* The q element represents some phrasing content quoted from another source.* The dfn element represents the defining instance of a term.* The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context.

    Like

    How do you choose the right HTML tags for your web page content? (67) How do you choose the right HTML tags for your web page content? (68) 3

    • Report contribution

    At the same time, we have to be careful here. HTML isn't the only part of the webpage. It's important to consider all of the tools being used. For example, if your page has a <b>single</b> word in a block of text that needs meaning or an appearance change, vs. a block of text that you want to change.

Load more contributions

3 Avoid using deprecated or obsolete tags

HTML is constantly evolving, and some tags that were once popular are now outdated or no longer supported by browsers. For example, the <font> tag, which was used to change the font size, color, and style, is now deprecated and replaced by CSS. Similarly, the <center> tag, which was used to center text or elements, is now obsolete and replaced by CSS. You should avoid using these tags and instead use modern and standard HTML tags that are compatible with current browsers and best practices.

Add your perspective

Help others by sharing more (125 characters min.)

  • Oleg Tyshchenko 📈 Search Engine Optimization Expert
    • Report contribution

    In addition to deprecated or obsolete tags, it is also not recommended to use elements that were not part of the HTML standard and were supported only by some browsers.For example, these are elements such as <blink>, <bgsound>, <marquee>, <nobr>, <noembed>, <plaintext>, <spacer>.

    Like

    How do you choose the right HTML tags for your web page content? (86) 2

  • Agila Senthil Kumar Seeking SWE full time roles | Software @ SAP Labs | MS Computer Engineering @ ASU | B.Tech @ NIT Trichy
    • Report contribution

    Replacing them with CSS makes it a more flexible and efficient design approach. CSS allows for consistent styling across multiple elements, promoting code reusability. For example, instead of using <center>, utilize the 'margin' or 'text-align' property in CSS for centering, ensuring compatibility with current web standards and simplifying maintenance.

    Like

    How do you choose the right HTML tags for your web page content? (95) 1

  • Jainish Shah LinkedIn Top Voice 2024 | Product Manager | CSP-PO | A-CSPO | CSPO | CSM | MBA E-Business
    • Report contribution

    Obsolete tags might not be compatible with the latest versions of the browsers. When a visitor uses the latest browser to visit the website, he or she might not have a great experience if the website is built using deprecated or obsolete tags.

    Like

4 Use HTML5 tags for new features and functionality

HTML5 is the latest version of HTML, and it introduces many new tags that offer new features and functionality for web pages. For example, the <video> and the <audio> tags allow you to embed video and audio files without using plugins, the <canvas> and the <svg> tags allow you to create graphics and animations, and the <section>, <article>, <nav>, and <header> tags allow you to create semantic and logical sections of your page. You should use these tags when you want to enhance your web page with modern and interactive elements.

Add your perspective

Help others by sharing more (125 characters min.)

  • FALADE Ben A. Basty Frontend Developer | HTML • CSS • JAVASCRIPT • REACT.JS
    • Report contribution

    New tags added to HTML5 make it easier to use and create dynamic websites. <audio> and <video> tags allow you to embed a video or audio on your website. Vector graphics tags <svg> and <canvas> are used to draw graphics with various shapes and colors. <header> and the <footer> tags allow the browser to know in which order and what element to load first. And also <section>, <article>, <nav> which allow you to create semantic and logical sections of your page. <figure> tag is used element to mark up a photo in a document and <figcaption> tag defines a caption for the photo. <progress> tag is used to check the progress of a task during the execution. Input attributes placeholder and email were added as well. And many more ...

    Like

    How do you choose the right HTML tags for your web page content? (112) 2

5 Validate your HTML code

One of the best ways to ensure that you are using the right HTML tags for your web page content is to validate your HTML code. Validation is the process of checking your code for errors, typos, and compatibility issues. You can use online tools, such as the W3C Markup Validator, to validate your HTML code and get feedback and suggestions on how to fix any problems. Validating your HTML code helps you create a clean and error-free web page that follows the standards and guidelines of HTML.

Add your perspective

Help others by sharing more (125 characters min.)

6 Learn from other sources and examples

Finally, one of the best ways to learn how to choose the right HTML tags for your web page content is to learn from other sources and examples. You can read online tutorials, articles, and blogs that explain and demonstrate how to use different HTML tags and why they are important. You can also look at the source code of other web pages that you like or admire and see how they use HTML tags to create their content. Learning from other sources and examples helps you expand your knowledge and skills in HTML and improve your own web page content.

Add your perspective

Help others by sharing more (125 characters min.)

  • Oleg Tyshchenko 📈 Search Engine Optimization Expert
    • Report contribution

    Right-click and then select "View page source" to view the HTML code of the web page.Right-click and then select "Inspect" to access additional viewing options, including Styles, Console, Network, Memory, and more.

    Like

    How do you choose the right HTML tags for your web page content? (121) 4

7 Here’s what else to consider

This is a space to share examples, stories, or insights that don’t fit into any of the previous sections. What else would you like to add?

Add your perspective

Help others by sharing more (125 characters min.)

HTML How do you choose the right HTML tags for your web page content? (122)

HTML

+ Follow

Rate this article

We created this article with the help of AI. What do you think of it?

It’s great It’s not so great

Thanks for your feedback

Your feedback is private. Like or react to bring the conversation to your network.

Tell us more

Report this article

More articles on HTML

No more previous content

  • How do you make your HTML code semantic? 75 contributions
  • How can you manage HTML projects within scope, budget, and timeline? 54 contributions
  • How do you link to external stylesheets and scripts? 64 contributions
  • How do you add CSS and JavaScript to HTML challenges? 50 contributions
  • How do you manage your styles with CSS variables? 39 contributions
  • How can you create web-based reports with HTML? 76 contributions
  • How do you create reusable and maintainable CSS style rules? 53 contributions
  • How do you test HTML portfolio accessibility and usability? 38 contributions
  • How do you define the main sections of a web page using HTML? 70 contributions
  • How do you apply CSS styles to different devices? 31 contributions
  • How can HTML comments and meta tags improve your portfolio? 67 contributions
  • How can you quickly learn or update your HTML knowledge? 89 contributions
  • What are the hottest HTML roles and skills for you to learn? 48 contributions
  • How can you master advanced HTML features and topics? 11 contributions
  • How can you scale fonts on your website? 9 contributions

No more next content

See all

More relevant reading

  • Web Development What are the steps to creating a main content area with HTML?
  • HTML5 How do you add context to HTML5 for accessibility?
  • Programming What are the best practices for writing HTML code that is easy to maintain across departments?
  • Business Operations How can you transition to semantic HTML from a non-semantic structure?

Are you sure you want to delete your contribution?

Are you sure you want to delete your reply?

How do you choose the right HTML tags for your web page content? (2024)
Top Articles
On-Balance Volume Indicator (OBV)
Sleep On It
Somboun Asian Market
Cold Air Intake - High-flow, Roto-mold Tube - TOYOTA TACOMA V6-4.0
Ffxiv Shelfeye Reaver
Craftsman M230 Lawn Mower Oil Change
Wisconsin Women's Volleyball Team Leaked Pictures
Cad Calls Meriden Ct
Wmu Course Offerings
Top Financial Advisors in the U.S.
Corpse Bride Soap2Day
Optum Medicare Support
Pbr Wisconsin Baseball
Espn Expert Picks Week 2
454 Cu In Liters
4156303136
Painting Jobs Craigslist
Kamzz Llc
EASYfelt Plafondeiland
At&T Outage Today 2022 Map
Jordan Poyer Wiki
kvoa.com | News 4 Tucson
Cornedbeefapproved
Aes Salt Lake City Showdown
Stockton (California) – Travel guide at Wikivoyage
Primerica Shareholder Account
Kelley Fliehler Wikipedia
Willys Pickup For Sale Craigslist
County Cricket Championship, day one - scores, radio commentary & live text
Otis Offender Michigan
Stolen Touches Neva Altaj Read Online Free
Www Craigslist Com Shreveport Louisiana
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Seymour Johnson AFB | MilitaryINSTALLATIONS
Junee Warehouse | Imamother
Tds Wifi Outage
Elgin Il Building Department
Hindilinks4U Bollywood Action Movies
Ticket To Paradise Showtimes Near Marshall 6 Theatre
Pokemon Reborn Locations
Craigslist Tulsa Ok Farm And Garden
Cranston Sewer Tax
412Doctors
Timothy Warren Cobb Obituary
Professors Helpers Abbreviation
Dontrell Nelson - 2016 - Football - University of Memphis Athletics
Copd Active Learning Template
Bonecrusher Upgrade Rs3
The 13 best home gym equipment and machines of 2023
Kidcheck Login
Guidance | GreenStar™ 3 2630 Display
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 5549

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.