Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

No white spaces in html

Options
  • 15-12-2004 11:39am
    #1
    Registered Users Posts: 6,240 ✭✭✭


    Hi is there a tag in html to get rid of white spaces etc?

    e.g.
    <some tag>
    H
    E
    L
    L
    O
    </some tag> would get rendered like
    HELLO

    thanks?


Comments

  • Closed Accounts Posts: 6,911 ✭✭✭Zombienosh


    i dont understand exactly what ur saying....
    there shouldnt be any whitespace unless u put it in....


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    HTML doesn't regard whitespaces or linebreaks unless specified, like using the <pre> tag.


  • Registered Users Posts: 6,240 ✭✭✭hussey


    sorry my mistake - ignore
    something strange was happening inside a table - but it was something silly


  • Registered Users Posts: 453 ✭✭dead air


    you should use white space simply to make your HTML code clearer to read. if you wanted to print white space, you should use the <pre> tag (preformatted) or use a linebreak after each line. for example:

    <pre>
    H
    E
    L
    L
    O
    </pre>

    or

    <P>
    H<br>
    E<br>
    L<br>
    L<br>
    O<br>
    </P>

    both would print:

    H
    E
    L
    L
    O


Advertisement