What does 'charset' refer to in HTML?
B
The font family used on a page
C
The character encoding used to display text
Analysis & Theory
`charset` specifies the character encoding, which tells the browser how to interpret characters on the page.
Which meta tag is used to define character encoding in HTML?
A
<meta name='charset' value='UTF-8'>
D
<meta encoding='UTF-8'>
Analysis & Theory
The correct syntax to define character encoding in HTML is `<meta charset='UTF-8'>`.
What does UTF-8 stand for?
A
Unicode Text Format (8-bit)
B
Universal Text Framework
C
Unicode Transformation Format (8-bit)
Analysis & Theory
UTF-8 stands for Unicode Transformation Format 8-bit, a common encoding that supports all characters.
Why is UTF-8 the recommended character set for HTML pages?
C
It supports all languages and symbols
D
It has better CSS support
Analysis & Theory
UTF-8 can represent any character in the Unicode standard, making it ideal for international content.
Where should you place the `<meta charset='UTF-8'>` tag in your HTML document?
C
Inside the `<head>` section
D
After the `<title>` tag only
Analysis & Theory
Character encoding should be declared in the `<head>` to ensure proper rendering of all content.
Which character set was commonly used before UTF-8 became standard?
Analysis & Theory
`ISO-8859-1` (Latin-1) was commonly used for Western European languages before UTF-8 became the standard.
What happens if you don't specify a character set in your HTML file?
C
Some characters may display incorrectly
D
Fonts will be unavailable
Analysis & Theory
Without a charset declaration, special characters may be misinterpreted and display incorrectly.
How do you declare UTF-8 in an HTML5 document?
D
<meta encoding='utf-8'>
Analysis & Theory
`<meta charset='UTF-8'>` is the standard declaration in HTML5.
Which characters are **not** included in the ASCII character set?
Analysis & Theory
ASCII includes only basic English letters, digits, and symbols — not emojis or global characters.
Which encoding allows emojis to be displayed correctly?
Analysis & Theory
UTF-8 supports emojis and all Unicode characters used worldwide.