Jump to content


Photo

generalistic question about blank spacers in html


  • Please log in to reply
6 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 25 July 2006 - 01:39 PM

 
This is something I have known for awhile, it helps me a lot, it does a lot for me.  When there is an element that continues to disappear when I leave nothing in it, for instance a colored block, this fills it with something making it visible, when I need to quickly indent text, this indents it for me, it has a lot of other nifty uses.  What I want to know is, what is it.  This whole time I saw it on some people's pages, I used it ever since, without really ever knowing what it is, what to call it, what it's true purpose is, if it was deprecated or not, or what.  I was wondering about this because it's been my friend for awhile, and it's time I found out who he was. S hould I stop using this or does everyone, is it deprecated, what is it exactly, can it be found on wikipedia somewhere if I figured out the name.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 25 July 2006 - 01:57 PM

n b s p = non-breaking space
Legend has it that reading the manual never killed anyone.
My site

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 July 2006 - 02:00 PM

  is the htmlentity (ASCII, i think) of a space. This is not depreciated. All characters has an ASCII equivilant. Most people use   to add in two or more spaces between words, as using a normal space will only work with 1 space, but not if there is 2 or more spaces directly after each other, as the browser ignores it.

This site shows all the ASCII values for most characters, look at the HTML coloumn for the last three columns.

#4 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 25 July 2006 - 02:02 PM

Ok, I have seen this before but it's a little new.  As far as generalistically speaking, what would happen, if I started replacing every letter of every sentence with these, like in my text, because there is one for each letter, and number as well, is this good practice, I have never seen it used before, I also see some people just replace
'.,;/] or whatever symbols with those, but some people don't I never have
what is the best route for me to take with this ascii characters?

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 25 July 2006 - 02:04 PM

generalistically speaking, what would happen, if I started replacing every letter of every sentence with these...


'Generalistically' (or generally as most people would say), anyone viewing your code would think you were nuts.

I'd use ASCII equivalents only for symbols/special characters such as copyright, ampersand, pound, octothorpe, em-dash, en-dash, etc. etc.
Legend has it that reading the manual never killed anyone.
My site

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 July 2006 - 02:23 PM

You should only need to use the htmlentity for certain characters, such as triangler brackets (<>) to stop the browser from intepreting them, &nbsp; for placing two or more spaces between words/letters. &copy; to display the copyright symbol etc. You shouldn't use the ASCII value for letters, as there will be no reason to.

#7 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 25 July 2006 - 02:38 PM

ah, thanks for the information/advice/grammer correction.  From now on I will say generally speaking.  Thanks for all the advice, and thanks for all the info on those different character types i am going to look up all those you mentioned andy, and see what they all mean, some of those i have never heard before.  Thanks.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users