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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:50:09+00:00 2026-05-25T02:50:09+00:00

How can I make the browser insert <p> tags instead of <br> tags when

  • 0

How can I make the browser insert <p> tags instead of <br> tags when I press enter in a designMode IFrame? I get inconsistent behavior across Firefox, Chrome and IE and was wondering if there was some way to normalize this.

  • 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-25T02:50:10+00:00Added an answer on May 25, 2026 at 2:50 am

    It seems you can’t. Behaviour is not standardized and control for this is rudimentary at best

    This is an interesting thread from May thie year on the matter: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-May/031577.html . It’s discussing contenteditable rather than designMode but they’re effectively very similar.

    An email on the thread ( http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-May/031604.html ) from Simon Pieters (zcorpan) of Opera says:

    Opera 11.10 has introduced
    document.execCommand(‘opera-defaultblock’,”,’div’) to switch to using
    <div>s instead of <p>s. (‘p’ is also allowed to switch back.) Apparently
    WebKit considers implementing this as well.
    https://bugs.webkit.org/show_bug.cgi?id=59961

    Further in the thread there’s also this email http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-May/031685.html by Markus Ernst including this comment:

    I assume there are use cases for both generating <p>s and <br>s. The
    IE/Opera approach has the advantage of allowing both, which is perfect
    for text and basic HTML editing. From a WYSIWYG POV it might be best
    to offer both options, so authors are not encouraged to add
    server-side processing to change the output, which would break
    WYSIWYG.

    If the behavior is settable, it might even be a good idea to leave the
    choice of the standard behavior to the UAs. Authors who have a reason
    to care can set their preferred behavior, while other authors might
    prefer to leave it as it was, so there is no change for their
    existing users.

    There’s lots more on the thread about what people at the various browser makers think ought to happen, comments on some very strange existing behaviours, and general discussion about the problem involved in implementing it at all.

    The currently very alpha spec for all this is at http://aryeh.name/spec/editing/editing.html

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

Sidebar

Related Questions

Can we make cross browser css layouts with CSS positioning, without using float? What
How can i make my flash applications in a browser in full screen mode?
How can I make a visitor's browser go fullscreen using JavaScript, in a way
I can make Firefox not display the ugly dotted focus outlines on links with
Is there a decent browser-based javascript self-editor? It is obvious one can make a
I'm trying to get my head around how I can make json request to
I've searched for some information on smartphone browser sizes so I can make a
How can I keep the browser from scrolling, or how can I make the
According to this http://msdn.microsoft.com/en-us/library/cc849094(v=vs.85).aspx#OptInHighDPI you can make your web browser control use IE8-style zooming,
Can anyone tell me how can we make our browser as default in Android?

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.