Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-14-2010, 01:04 PM Quotes or "
fog
fog's Avatar
Experienced Talker

Posts: 47
Location: Florida
Trades: 0
Is it required to use " in html or a best practice, or not necessary? I have not been able to find a reference that answers the question.
__________________
Every artist was first an amateur.
Ralph Waldo Emerson
fog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2010, 02:45 PM Re: Quotes or "
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
its a best practice.. Not always necessary
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
Old 10-14-2010, 03:54 PM Re: Quotes or "
fog
fog's Avatar
Experienced Talker

Posts: 47
Location: Florida
Trades: 0
Any idea when it would be necessary?
__________________
Every artist was first an amateur.
Ralph Waldo Emerson
fog is offline
Reply With Quote
View Public Profile
 
Old 10-14-2010, 06:28 PM Re: Quotes or "
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If it is to be visible text use the HTML entity ", if it is in the source code use "
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-14-2010, 07:33 PM Re: Quotes or &quot;
Skilled Talker

Posts: 52
Name: Alex
Trades: 0
I use &quot; only in javascript when do smth with innerHTML
Only because it doesn't work with real quotes.
elf2002 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2010, 03:52 AM Re: Quotes or &quot;
Banned

Posts: 408
Name: mushget
Trades: 0
it's not necessary.
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
Old 10-15-2010, 03:59 AM Re: Quotes or &quot;
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
It's always best to escape certain characters: á should be &aacute; and ö should be &ouml; & should be &amp; etc, for maximum compatibility. Smart quotes, like you get in Word, for example, often cause problems when appearing on a Mac. Always best to make sure you're not using them, but using the standard "" instead, or using the escaped version.

There's a complete list of them here:

http://www.theukwebdesigncompany.com...characters.php
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 10-15-2010, 07:19 AM Re: Quotes or &quot;
captkrackerjack's Avatar
Experienced Talker

Latest Blog Post:
Moved Blog to NGINX!
Posts: 31
Name: Greg
Location: California
Trades: 0
Quote:
Originally Posted by edgray View Post
It's always best to escape certain characters: á should be &aacute; and ö should be &ouml; & should be &amp; etc, for maximum compatibility. Smart quotes, like you get in Word, for example, often cause problems when appearing on a Mac. Always best to make sure you're not using them, but using the standard "" instead, or using the escaped version.

There's a complete list of them here:

http://www.theukwebdesigncompany.com...characters.php
This is a great resource thanks for providing this. Also I have seen a lot of CMS's offer editors that will do all of the escaping and codes for you so check the documentation if you use CMS's to see if you can just continue to type normally while the editor handles the cruft.
__________________

Please login or register to view this content. Registration is FREE

Fav sites; last.fm, mashable.com, speckyboy.com
captkrackerjack is offline
Reply With Quote
View Public Profile Visit captkrackerjack's homepage!
 
Old 10-15-2010, 07:45 AM Re: Quotes or &quot;
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
Quote:
Originally Posted by captkrackerjack View Post
This is a great resource thanks for providing this. Also I have seen a lot of CMS's offer editors that will do all of the escaping and codes for you so check the documentation if you use CMS's to see if you can just continue to type normally while the editor handles the cruft.
yes it's very handy. It's a shame Wordpress doesn't seem to automatically escape characters for you...
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 10-15-2010, 11:03 AM Re: Quotes or &quot;
captkrackerjack's Avatar
Experienced Talker

Latest Blog Post:
Moved Blog to NGINX!
Posts: 31
Name: Greg
Location: California
Trades: 0
Quote:
Originally Posted by edgray View Post
yes it's very handy. It's a shame Wordpress doesn't seem to automatically escape characters for you...
Any of the Markdown or Textile editor plugins should offer some degree of encoding, at least for quotes, but as far as advanced encoding with characters they do not. That would be something to think about for a plugin. I will look deeper into this.
__________________

Please login or register to view this content. Registration is FREE

Fav sites; last.fm, mashable.com, speckyboy.com

Last edited by captkrackerjack; 10-15-2010 at 11:05 AM.. Reason: Added quote to reference post.
captkrackerjack is offline
Reply With Quote
View Public Profile Visit captkrackerjack's homepage!
 
Old 10-22-2010, 01:50 AM Re: Quotes or &quot;
Crimson's Avatar
Skilled Talker

Posts: 56
Name: Connor
Location: United States
Trades: 0
I'll go against the grain and say that it's not a best practice to use entities (that is, the funky &quot; things).

For starters, there's no browser-specific reason to use them--a browser doesn't need an entity to know that a " is a ". Perhaps some crazy text only browser made in 1988 might get confused by an uncommon character, but it's just as likely to get confused by an entity.

The only other reason to use them is if your text editor doesn't allow you to type a character directly. If this is the case, you'd probably be best off trying to get a better editor. (And if for some reason you're stuck with your editor, then I guess the decision is made for you.)

Also, see: http://stackoverflow.com/questions/4...-html-entities
__________________

Please login or register to view this content. Registration is FREE

I solve code problems, browser compatibility (including IE 6), Wordpress trouble, the works.

Last edited by Crimson; 10-22-2010 at 01:54 AM..
Crimson is offline
Reply With Quote
View Public Profile Visit Crimson's homepage!
 
Old 10-22-2010, 11:02 AM Re: Quotes or &quot;
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
Quote:
Originally Posted by Crimson View Post
I'll go against the grain and say that it's not a best practice to use entities (that is, the funky &quot; things).

For starters, there's no browser-specific reason to use them--a browser doesn't need an entity to know that a " is a ". Perhaps some crazy text only browser made in 1988 might get confused by an uncommon character, but it's just as likely to get confused by an entity.

The only other reason to use them is if your text editor doesn't allow you to type a character directly. If this is the case, you'd probably be best off trying to get a better editor. (And if for some reason you're stuck with your editor, then I guess the decision is made for you.)

Also, see: http://stackoverflow.com/questions/4...-html-entities
try living in a country filled with "á é ñ ¡ & ¡". If you don't escape them there's no guarantee your page will look right. I find this comes up especially when being sent copy that's been typed in word and you've got to put it into HTML.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Reply     « Reply to Quotes or &quot;
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63982 seconds with 12 queries