Listed below are the most common attributes you can use for this element:
- lang - provides the language in which the enclosed content is coded.
- xml:lang - the XML format of providing the language in which the enclosed content is coded. Mainly used XML documents.
- xmlns - sets a value to "http://www.w3.org/1999/xhtml"
Here's an example that we have already seen on our previous example and take note on how I used the <html> element:
<!DOCTYPE html PUBLIC "-//W3C //DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meata http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Document Root Example</title>
</head>
<body>
<h1>
Document Root Example
</h1>
</body>
</html>
0 comments:
Post a Comment