HTML CSS examples for HTML Tag:meta
The charset attribute specifies the character encoding for the HTML document which can be overridden using the lang attribute on any element.
Value | Description |
---|---|
character_set | Specifies the character encoding for the HTML document. |
Common values:
The following code shows how to Specify the character encoding for the HTML document:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head><!-- ww w .j ava 2 s . c o m--> <body> <h1>My Website</h1> <p>Some text...</p> </body> </html>