By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,916 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,916 IT Pros & Developers. It's quick & easy.

What HTML code is MOST GENERAL (i.e. independant of platform and browser)

P: 4
1. I am looking which HTML CODE is AS GENERAL AS POSSIBLE (i.e. independant of platform and browser).

2. To be more explicit :

2.a) I am writing HTML code which I would like to run on ALL possible platforms (PC, Mac, UNIX, ) and browsers (Safari, IE, Netscape, ) or at least as many as possible.

2.b) I use as well hyphens (in names with hyphens for hyphenation, etc.) as en-dashes - for a comment within a text like this one - and also em-dashes for dialogues like the next one :

- Am i more clear this time?
- Yes, thank you for this exhaustive exlanations.

2.c) So I am wondering which of the 3 codes (see #3) is most suited to run on AS MANY platforms and browsers. I.e. to have a maximum chance my code will display correctly whatever the machine or browser used.

3. in case of a en-dash I found 3 possibilities on the internet :
3.a) & # 8 2 1 1 ;
3.b) & # 1 5 0 ;
3.c) & n d a s h ;
Which one sould I use?

Hoping to be udnerstood,

sincerely,

Sono

PS : of course the en-dash is only an example; My future website is in french so there are many, many codes to replace all accents, diphtongs etc.
Jul 19 '07 #1
Share this Question
Share on Google+
2 Replies


MMcCarthy
Expert Mod 10K+
P: 14,534
Moving to HTML / CSS forum
Jul 19 '07 #2

jhardman
Expert 2.5K+
P: 3,405
Sono,

As long as the special character code is written correctly they should all be universal (3a, 3b, and 3c). The big problem in the past which still haunts some out-dated browsers is that incorrectly spelled character codes MIGHT be interpreted (for example "&quot" without the closing semicolon is still interpreted in some browsers). I don't know of another case where there is a problem.

Jared
Jul 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.