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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

No white spaces in html

  • 15-12-2004 10:39am
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 6,240 ✭✭✭hussey


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


  • Registered Users, Registered Users 2 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