Shortcut Key for insert <br> tag? RRS feed

  • Question

  • do you know if there is any shortcut key to insert a br tag in coding view?

    such as shift+enter?

    I mean the coding view!

    Monday, November 28, 2011 8:20 AM

All replies

  • Not that I know of in code view. OTOH, it's only five keystrokes, not exactly "War and Peace." And under ordinary circumstances, <br /> shouldn't really be used that often. In fact, unless you're using them for vertical spacing (Very Bad Idea), they should be pretty rare in ordinary body copy. If you want modified spacing between paragraphs, set a class (or descendant selector) and adjust top/bottom margins and padding in your CSS. For vertical spacing between other elements, use margins and padding, not non-semantic spacers such as <br />, which change their physical representation depending upon the local text size in force, and vary from browser to browser, resulting in inconsistent display.


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
    Monday, November 28, 2011 5:18 PM