Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Charset attribute in html5 in HTML5 Basics of HTML5 & CSS3 Examples
3112 Views
Charset 
Charset defines, what type of characters can used in html document page.It should be declared in <meta> tag. Normally UTF-8 used.It consists all the characters from all languages.

In html5 defines the charset attribute is very easy and simple.
Charset in HTML5
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"/>
        <title>Title of document</title>
    </head>
    <body>
        <p>Content</p>
    </body>
</html>
Charset in HTML4
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <title>Title of document</title>
    </head>
    <body>
        <p>Content</p>
    </body>
</html>
Previous Topics
Previous lessons of current book.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details