Ascii characters more reliable in html? -


im making webpage. in html better use ascii characters? following same me when test in different browsers first 1 better practice?

opening -  opening - 

it's ok use literals - on escaped &#45 entities, , encouraged readability. characters have escape called "unsafe entities" (like < , > are, can mark new tag , therefore ambigous browser.

if declare document encoding utf-8, can insert character (also non ascii, letters foreign alphabets or accented letters) not violate markup syntax.

only reason keep &... characters compatibility ancient browser not recognizing utf-8.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -