Different languages use different character sets, or charsets. This tag declares which character set is to be used. The most common charset used by most languages is UTF-8.
In this solution, you will learn how to format the charset in HTML5 properly.
In most HTML documents, you see the following tag at the beginning:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
HTML5 has now simplified this tag to:
<meta charset="UTF-8" />
Under the <!DOCTYPE html> tag shown in Solution 1-1, type the following:
<meta charset = "UTF-8" />
While UTF-8 will work in most instances, a lot of developers have found that using ISO-8859-1 as the charset gives even more flexibility. Another charset, UTF-16, sometimes results in wrong characters and, in some cases, applications operating improperly.
0 comments:
Post a Comment