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

  • Home
  • SEARCH
  • 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 8568463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:07:07+00:00 2026-06-11T18:07:07+00:00

Well, I know that is unsemantic. The problem is that when there are paragraphs

  • 0

Well, I know that
is unsemantic. The problem is that when there are paragraphs such as:

Hello friend.
Today I learnt a new trick but I m not gonna tell you
yet.

Ok, I’m just kidding. Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Rhoncus at magna. Nulla aliquam turpis ac magna
scelerisque vel eleifend libero malesuada.
Quisque facilisis
leo et elit ultricies id suscipit leo ornare. Vestibulum mi odio,
facilisis non fringilla vitae, imperdiet egestas mauris. Nunc enim
erat, vehicula vel malesuada nec.

As you can see there are two paragraphs. Both they have a line break in the middle done by a <br> tag. How can i do it without the use of this tag for semantic’s sake?

Note: The bold “malesuada” was inserted to help you identify the second linebreak easily.

  • 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-11T18:07:08+00:00Added an answer on June 11, 2026 at 6:07 pm

    First, line breaks are intended to be used in situations where the break must occur within the flow of text, such as in a poem.

    The generally accepted way to markup text like this is as paragraphs, which are block level and therefore always create a new line, and to set the margins between them. Here you have two paragraph styles, one that requires space and one that does not. You could have two different styles of paragraph like this (and I just illustrate the vertical margins here – the horizontal ones are set to 0).

    p {margin:.1em 0;}
    
    p.special {margin:0;}
    

    Then just add the class “special” to the paragraphs without space. Note the vertical margins will collapse so you will only get 1em of space between each paragraph.

    My bigger question though is a design one: why do you want to organize your paragraphs like this? Why not just have a standard paragraph spacing throughout and perhaps using headings to group the sets of paragraphs? What you are doing is rather unconventional, which is why you are running into problems finding the right HTML elements to use. hth, charles

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

Sidebar

Related Questions

Well, I know that correct escaping will help to prevent SQL injection. But I
well I'm new to JavaScript so I know that my work will look nasty
Well I know that this question may be asked many times but certainly I've
I know well that there are ways of customizing elements like GridView and ListView
I know that Clojure works well on a multicore machine, but I was wondering
Well, first I know that this question was already asked several times. But I
I'm using Java 6. I want to parse XHTML that I know is well-formed.
Well I know some kinds of UML's diagrams, but I haven't heard about this
I know SQL well but I must be missing something really dumb here. This
I know C# well, but it is something strange for me. In some old

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.