469,913 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

HTML CHARSET code

I have been working on my web pages for about a year, doing most of the code simply by typing in what I want. about 9 months ago, I learned about CSS, and using other browsers to check my web site. This week, I found this place. One of the messages said I should validate my page. The validation passed conditionally because I had not specified a charset.

How, where, and why do I specify the charset?

Is one better than another?

Is this related to fonts and font families?

The more I learn, the more I realize I don't know!!

Bill
May 7 '07 #1
4 1550
drhowarddrfine
7,435 Expert 4TB
This should be placed in the <head> of your page.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

The charset is utf-8, though there are others you'll see. This page will tell you everything you would ever want to know.

A little under the weather today so not much for details from me. Sorry.
May 7 '07 #2
Thanks.

I wil;l visit the page you listed.

Bill
May 8 '07 #3
This should be placed in the <head> of your page.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

The charset is utf-8, though there are others you'll see. This page will tell you everything you would ever want to know.

A little under the weather today so not much for details from me. Sorry.
I checked the page in your link, and learned a lot. One question I have from my learning adventure:

The W3C page discussed a byte order mark that I have seen randomly on my site. I am trying a new HTML editor, and noticed the BOM at the very begining of a file I opened. I opened a second file and noticed the BOM again. I then used MS Expression Web but didn't see the BOM. Then I used Eversoft First Page and there was the BOM. Is the BOM a problem in my web page code (it shows in front of the doctype statement)?

Bill
May 9 '07 #4
drhowarddrfine
7,435 Expert 4TB
Yes. The BOM may display and, in IEs case, will throw it into quirks mode. Check your preferences/options in the editors to see if there's a checkbox to turn the BOM off.
May 9 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

15 posts views Thread by Cem Louis | last post: by
3 posts views Thread by zorro | last post: by
82 posts views Thread by Eric Lindsay | last post: by
3 posts views Thread by Dale Strickland-Clark | last post: by
8 posts views Thread by lorenzo.viscanti | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.