Friday, December 11, 2015

HTML5 Meta Tag charset UTF-8

The HTML meta tag is utilized for proclaiming metadata for the HTML record. <meta charset="UTF-8"> Metadata can in... thumbnail 1 summary

The HTML meta tag is utilized for proclaiming metadata for the HTML record.

<meta charset="UTF-8">

Metadata can incorporate report portrayal, decisive words, creator and so on. It can likewise be utilized to revive the page or set treats.
The meta tag is set inside the head tag.

META CHARSET

The Meta charset quality indicates the character encoding for the HTML report.
The Meta charset quality could be generally overridden utilizing the lang characteristic on any component.
The Meta charset quality is new in Html5, and replaces the requirement for:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Tagging the character-set utilizing the http-equiv property is still permitted, however the new way obliges less code.
In principle, any character encoding could be utilized, however no program sees every one of them. The all the more generally a character encoding is utilized, the better the risk that a program will comprehend it.
Here is the Syntax for META Tag
1
2
3
4
<meta charset="UTF-8">
<meta name="description" content="Put here your meta description." />
<meta name="keywords" content="Put here keyword sperated with comma." />
<meta name="author" content="html5andcss3" />
Below is complete syntax along with example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
     
    <head>
        <meta charset="UTF-8">
        <meta name="description" content="Put here meta description." />
        <meta name="keywords" content="Put here keywords" />
        <meta name="author" content="html5andcss3" />
        <title>Title Name will go here</title>
    </head>
     
    <body>
    This is test page
    </body>
     
</html>

No comments

Post a Comment