472,145 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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

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,



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
2 1418
14,534 Expert Mod 8TB
Moving to HTML / CSS forum
Jul 19 '07 #2
3,406 Expert 2GB

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.

Jul 19 '07 #3

Post your reply

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

Similar topics

27 posts views Thread by Fuli Chang | last post: by
7 posts views Thread by Neil Varshneya | last post: by
5 posts views Thread by laredotornado | last post: by
7 posts views Thread by alnoir | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.