before is used to add some styles to front of the HTML elements.
Code:-
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
q:lang(no) {
quotes: "~" "~";
}
q:lang(yes) {
quotes: "#" "#";
}
q:lang(test) {
quotes: "%%%" "%%%";
}
q:lang(cap) {
quotes: "^" "^";
}
</style>
</head>
<body>
<q lang="no">This is good</q>
<br>
<q lang="yes">This is good</q>
<br>
<q lang="no">This is good</q>
<br>
<q lang="test">This is good</q>
<br>
<q lang="cap">This is good</q>
<br>
<q lang="cap">This is good</q>
<br>
<q lang="test">This is good</q>
</body>
</html>
Output:-
Code:-
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
q:lang(no) {
quotes: "~" "~";
}
q:lang(yes) {
quotes: "#" "#";
}
q:lang(test) {
quotes: "%%%" "%%%";
}
q:lang(cap) {
quotes: "^" "^";
}
</style>
</head>
<body>
<q lang="no">This is good</q>
<br>
<q lang="yes">This is good</q>
<br>
<q lang="no">This is good</q>
<br>
<q lang="test">This is good</q>
<br>
<q lang="cap">This is good</q>
<br>
<q lang="cap">This is good</q>
<br>
<q lang="test">This is good</q>
</body>
</html>
Output:-
This is good
This is good
This is good
This is good
This is good
This is good
This is good
Css:-Lang selector
Reviewed by Network security
on
May 12, 2019
Rating:
No comments: