The ______ attribute is used to specify the character set used in the HTML document.
- charset
- lang
- meta
- type
The charset attribute is used to specify the character encoding for the HTML document. It's important to set the correct character encoding for a document, especially if it contains characters outside the ASCII range. The correct encoding ensures that all characters in the document are displayed properly. Commonly, UTF-8 is used as a universal character set to cover a broad range of characters from different languages.
Loading...
Related Quiz
- You're developing a webpage where clicking on a product image should navigate to the product's detailed view in a new tab, ensuring the original page remains open. How would you implement this using anchor tags and target attributes?
- The ____ attribute defines the alternative text for an image.
- The ____ attribute in the img tag can be utilized to display text while the image is loading.
- To create a jump link, the href attribute is set to the _____ of the target element.
- How can you optimize an image for better web performance without losing its quality significantly?