How to Create a Website Using Russian Cyrillic Text in Doctype XML
In order to create a web page using a different language such as Russian Cyrillic, the designer must declare the language in the meta tags in the header of the web page under the Doctype. The doctype tells a browser what kind of coding language you are using not the actual language you are writing in on the web page. The meta tag for the language goes between the head tags in your HTML document.
Instructions
-
-
1
Open your text editor and create a new file by clicking on “File,” then “New”.
-
2
Choose a doctype for the type of code you will be using. A list of doctypes can be found in the references section below. There are only a small number of set doctypes. Normally a website will use just a basic doctype. For example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Copy and paste the above code into the top of your file.
-
-
3
Insert the HTML and head tags. These tags start the web page. For example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
</head>
</html> -
4
Insert the correct ISO number for Russian Cyrillic in a content-type meta tag between the head tags. A list of ISO numbers are in the references below. The ISO number for Russian Cyrillic is ISO-8859-5. Going back to the example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset= ISO-8859-5"></head>
</html>This tells the browser that the content type is text and HTML in a Cyrillic language such as Russian.
-
5
Save your file.
-
1
References
- Photo Credit Jupiterimages/Pixland/Getty Images