Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Use HTML Elements

how do you set character set

what do they mean by character set

<!DOCTYPE html>
  <meta charset ="utf-8">
  <title>Juliana|Designer> </title>

2 Answers

William Li
William Li
Courses Plus Student 26,867 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">