Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

how do you set character set

what do they mean by character set

index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset ="utf-8">
  <title>Juliana|Designer> </title>
</head>
  <body>
    <h1>Juliana</h1>
  </body>
</html>

2 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points
<meta charset ="utf-8">

is for the Unicode encoding.

In the old days of the web prior to HTML5, sometimes people use different charsets -- ANSI, ISO-8859-8, among others.

Nowadays, utf-8 is the default encoding for HTML5, and generally speaking, you should always use utf-8 because it's a better encoding than the other older charsets, has good support for multi-languages, and will make your life as web developer easier.

I'm pretty sure it tells the browser what characters it can use. (such as A-Z, or 1-9, or @, &, and $). There are several different types of character sets. ANSI has Letters a-z, numbers 1-9, and a few special characters such as $%^&*. IOS-8859-1 Has 256 characters. It was the default character set for HTML 4. UTF-8 covers almost all the symbols in the world. You should add a charset to the top of every web page like this:

<meta charset = "UTF-8">

or this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">