In HTML, you can do this: <meta charset="UTF-8"> and <meta charset="UTF-8" /> In XHTML you have to do this: <meta charset="UTF-8" /> You can also do this in XHTML: <custom-tag /> but you can't in HTML.