Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6657143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:43:53+00:00 2026-05-26T01:43:53+00:00

The <b> tag make texts bold, but if assigned with CSS font-weight:normal; then it’s

  • 0

The <b> tag make texts bold, but if assigned with CSS “font-weight:normal;” then it’s absolutely like a normal tag. On the other hand, the <i> tag can be styled to display the text inside like a <b> tag:

<i style="font-style:normal; font-weight:bold;">

Yeah, I’m talking about the interchangeability of HTML tags, so we can have fewer tags.

And 2 of the most famous tags turn out to be “div” and “span” which are discussed in this SO Question : What is the difference between HTML tags DIV and SPAN?

I want to know what is the essence of the <div> tag that makes a span tag like this:

<span style="display:block;"></span>

cannot be a replacement for div? By another respect, what’s the deep reason behind make these code become “invalid” (X)HTML:

<span style="display: block"><p>Still wrong</p></span>

Thanks!


For the scenario, I’m building a so-called “HTML-CSS-Generator”, which requires deep knowledge of HTML tags. I want to filter the sets of all valid HTML tags to make a set of “major tags”. Then I’m asking for the interchangeability of the tags.


Update (the ultimate goal of this question)

I wonder if the difference was that the tag is natively “block-level” (like div,p) or “inline-level” (like span) ?

Is there any other kind of “native property” (that CSS or JS cannot change) like “block/inline-level” for the HTML Tags ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:43:53+00:00Added an answer on May 26, 2026 at 1:43 am

    Don’t go checking on how things render or how they look (even though this is part of the HTML specification). HTML is all about meaning.

    What do the tags <u>, <i>, <b> mean? Right, they mean nothing! They only define how things look. That’s exactly the reason why they were removed from the specification in HTML5 (or actually deprecated).

    Of course, you can style a <div> as a <span>, hell you could style an <div> as an <input type="text">. But that’s not what it’s about, it’s all about meaning.

    According to the HTML spec, a <div> is a divider. It divides certain parts of a website, certain sections as an Header or a Content Box go inside a <div>.

    A <span> is used to specify something that’s inline. Like the following

    <div class="Location">    
       Currently I'm living in <span class="Country">The Netherlands</span>
    </div>
    

    Don’t compare HTML tags based on how they render. Also always choose the HTML tag that most closely resembles the data that’s displayed, even if it renders completely different than what you want.


    The difference is not about whether they are block or inline (even though that’s an effect of it). The difference is the data they represent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to make a text box like stackoverflow have for the tag at
I'd like to make a click event fire on an <input type=file> tag programmatically.
I have seen css that can make text look like an image in the
I want to make text in <a> tag fit in a fixed div, but
I'm trying to make a meta tag in my view based on data in
How can I make the anchor tag expand to the bottom of the list
Whenever we make a release of a project we'll create a tag to capture
I have a site that uses the FCKEditor. I'd like to make an incredibly
Sorry, I feel like making someone else to do my job but I feel
I know how to set the Text Style bold. But is there any Shortcut

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.