meta charset='' - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:meta

Introduction

Declaring a Character Encoding

Using the meta Element to Declare a Character Encoding

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
      <base href="http://java2s.com"> 
      <meta name="author" content="java2s.com"> 
      <meta name="description" content="A simple example"> 
      <meta charset="utf-8"> 
   </head> 
   <body> 
      <p>
          I like 
         <code id="myId">HTML</code>
          and CSS. <!--from   w  w w  .  j  a v a  2s. c  o  m-->
      </p> 
      <a href="http://java2s.com">Visit java2s.com</a> 
      <a href="page2.html">Page 2</a>  
   </body>
</html>

Related Tutorials