The :lang pseudo-class is used to specify a language for a element. now create a Web page named langpc.html which shown the use of the :lang pseudo class.
<!doctype html>
<head>
<style type="text/css">
q:lang(number)
{
quates:"~"."~";
}
</style>
</head>
<body>
<p>lang text<Q lang="number">quotation mark</Q>lang text.</p>
<p>In this example, lang defines the quotation marks for q elements
with lang="number":</p>
</body>
</html>
The :lang pseudo-class sets the quotation marks for the text enclosed in the P element .
The Output of the above Web page is:
<!doctype html>
<head>
<style type="text/css">
q:lang(number)
{
quates:"~"."~";
}
</style>
</head>
<body>
<p>lang text<Q lang="number">quotation mark</Q>lang text.</p>
<p>In this example, lang defines the quotation marks for q elements
with lang="number":</p>
</body>
</html>
The :lang pseudo-class sets the quotation marks for the text enclosed in the P element .
The Output of the above Web page is:
No comments:
Post a Comment