dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Carriage returns in website

  1. #1
    Join Date
    Mar 2017
    Posts
    2

    Carriage returns in website

    Can anyone tell me please whether you would expect the feature of carriage returns to be a standard functionality within a website build.

    Our developers have advised us that we need to pay extra to have the page formatted so that it is not one block of text that is difficult to read.

  2. #2
    Join Date
    Sep 2016
    Posts
    11
    The solution is fairly obvious once the newcomer realises that a web page is only the browser's interpretation of html markup, and that a new line in html is represented by the <br /> tag. So what is needed is a way to swap carriage returns or line feeds with the <br /> tag. Well, a way to Replace() them, actually.

  3. #3
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,812
    You could also begin your block with <p> and end it with </p>, and then have your carriage returns replaced with </p><p> or the like.

    Personally, I think you should upgrade--at least to Horseless Buggy returns.

  4. #4
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,220
    Quote Originally Posted by Gilly View Post
    Can anyone tell me please whether you would expect the feature of carriage returns to be a standard functionality within a website build.

    Our developers have advised us that we need to pay extra to have the page formatted so that it is not one block of text that is difficult to read.
    Any properly written web page using the current HTML 5 markup will not be using carriage returns. Nor have I ever seen them needed for HTML 4.0+, XHTML 1.0+, etc. Use of the proper CSS for page presentation will allow browsers to parse the pages as you would like to see them. Sounds like someone is trying to make some extra money

    The simplest "carriage return" for HTML is just the break tag: <br>. For semantic writing I recommend to use the "p" tags: <p>Blah, blah.</p>. Most any tag can be "fancied up" using CSS3. There are other tags that can be used for special indentation for content. Example: <blockquote>Long blahs.</blockquote> (Used for quotes from another source. Browsers will indent content as needed. Can be CSS controlled)
    .

    Many coding languages, if being used, may use carriage returns and line feeds in the code. Some will have to have have special attention. See example: How does the carriage return work in C?
    Last edited by Major Payne; 06-11-2017 at 05:27 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles