Jump to content

non-breaking space entity


Guest theo65

Recommended Posts

To elaborate a little on F-Man's response, the non-breaking space element ( ) also serves (and is sometimes abused) as a way to insert extra spaces into your content.If you type "Hello World" and put 7 spaced between "Hello" and "World the web browser will still only display "Hello World". However, if (for what ever reason) you need those seven space, you would type:"Hello       World"or"Hello       World"or obviously any combination that bproduces seven spaces without two "real" spaces next to each other. Please note that " " are NOT to be used as design elements - if you are using more than 3 side-by-side, then you might need to reconsider how you are coding the page.If you research the topic, you might find a reference to <nobr> which is not an official tag for HTML - although it does appear in the DTD for IE 3.0 - another attempt by Microsoft to abuse their monopoly (at the time) to push tags that they "wanted". Thankfully they did not win with this one - they did win with <iframe> though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...