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 8055441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:23:09+00:00 2026-06-05T08:23:09+00:00

Why is it acceptable for bootstrap to put content directly into a <div> tag?

  • 0

Why is it acceptable for bootstrap to put content directly into a <div> tag? eg.

<div class="alert alert-block">
    <a class="close" data-dismiss="alert" href="#">×</a>
    <h4 class="alert-heading">Warning!</h4>
    Best check yo self, you're not...
</div>

What about semantics? Shouldn’t the text be enclosed in a paragraph in such a situation?

  • 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-06-05T08:23:11+00:00Added an answer on June 5, 2026 at 8:23 am

    Your question is closely related to this other question. In short, div is a generic way to structure documents, while p denotes a paragraph. Since you’re speaking about semantics, I’m not really sure that all text must be divided in paragraphs. In that particular case (a simple alert) the entirety of the text contained in the div is a single sentence, so the concept of “dividing a single sentence in paragraphs” doesn’t even make sense to me.

    Otherwise, for longer texts, it totally makes sense to group related sentences in paragraphs, even search engines can “understand” your contents better if you use them correctly. Some newer HTML5 tags (such as header, footer etc) serve the same purpose: explicitate the semantics of your document for better treatment by automated agents, even though “generic” divs would be enough for human readers to understand (since for us the visual placement of elements on screen is what matters, regardless of the internal code used to represent it).

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

Sidebar

Related Questions

I was just wondering whether it is acceptable to close a common tag, eg.
Is passing ORM entities directly into templates acceptable? In a hypothetical python framework is
Which one is more acceptable (best-practice)?: namespace NP public static class IO public static
Is this an acceptable coding practice? public class MessageFormat { private static final Color
is it generally acceptable to store relational data in an rdbms like mysql, and
Is this an acceptable design ?? Abstract class public abstract class SomethingBase { public
Is it acceptable to make more than 1 facade class (not instance) in a
Is this anywhere near something acceptable? I need a function for each HTML tag,
Is it acceptable to add special, but unnecessary, content based on a user's web
Is that acceptable to pass directly domain model entity to UI layer instead of

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.