ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﺹﺎﺧ ﺖﻟﺎﺣ ﮏﯾ ﻒﯾﺮﻌﺗ ﯼﺍﺮﺑ ﺱﻼﮐ ﻪﺒﺷ ﮏﯾ
:ﺩﺮﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺮﯾﺯ ﺩﺭﺍﻮﻣ ﯼﺍﺮﺑ ﻥﺁ ﺯﺍ ﻥﺍﻮﺗ ﯽﻣ ،ﻝﺎﺜﻣ ﻥﺍﻮﻨﻋ ﻪﺑ
ﺪﯿﻫﺪﺑ ﻞﯾﺎﺘﺳﺍ ﻥﺁ ﻪﺑ ،ﺩﺮﯿﮔﯽﻣ ﺭﺍﺮﻗ ﯼﺮﺼﻨﻋ ﯼﻭﺭ ﺮﺑﺭﺎﮐ ﻪﮐ ﯽﻧﺎﻣﺯ
ﺖﺳﺍ ﺕﻭﺎﻔﺘﻣ ﻩﺪﺸﻧ ﺪﯾﺩﺯﺎﺑ ﻭ ﻩﺪﺷ ﺪﯾﺩﺯﺎﺑ ﯼﺎﻫﺪﻧﻮﯿﭘ ﮏﺒﺳ
ﺪﯿﻫﺪﺑ ﻞﯾﺎﺘﺳﺍ ﻥﺁ ﻪﺑ ،ﺪﻨﮐﯽﻣ ﺱﻮﮐﻮﻓ ﯼﺮﺼﻨﻋ ﻪﮐ ﯽﻧﺎﻣﺯ
Mouse Over Me
:ﺎﻫ ﺱﻼﮐ ﻪﺒﺷ ﺲﮑﺘﻨﯿﺳ
selector:pseudo-class {
property: value;
}
:ﺩﺍﺩ ﺶﯾﺎﻤﻧ ﯽﻔﻠﺘﺨﻣ ﯼﺎﻫ ﺵﻭﺭ ﻪﺑ ﻥﺍﻮﺗ ﯽﻣ ﺍﺭ ﺎﻫﺪﻧﻮﯿﭘ
/* unvisited link */
a:link {
color: #FF0000;
}
/* visited
link */
a:visited {
color: #00FF00;
}
/* mouse over link */
a:hover {
color: #FF00FF;
}
/* selected link */
a:active {
color: #0000FF;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
/* unvisited link */
a:link {
color: red;
}
/* visited link */
a:visited {
color: green;
}
/* mouse over link */
a:hover {
color: hotpink;
}
/* selected link */
a:active {
color: blue;
}
</style>
</head>
<body>
<h2>Styling a link depending on state</h2>
<p><b><a href="default.asp" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>
</body>
</html>
ﻪﺟﻮﺗ: a:hover
ﺯﺍ ﺪﻌﺑ ﺪﯾﺎﺑ
:ﺩﺮﮐ ﺐﯿﮐﺮﺗ HTML ﯼﺎﻫ ﺱﻼﮐ ﺎﺑ ﻥﺍﻮﺗ ﯽﻣ ﺍﺭ ﺎﻫ ﺱﻼﮐ ﻪﺒﺷ
:ﺪﻨﮐﯽﻣ ﺮﯿﯿﻐﺗ ﻥﺁ ﮓﻧﺭ ،ﺪﯾﺭﺍﺩﯽﻣ ﻪﮕﻧ ﻝﺎﺜﻣ ﺭﺩ ﺪﻧﻮﯿﭘ ﯼﻭﺭ ﺍﺭ ﺱﻭﺎﻣ ﯽﺘﻗﻭ
a.highlight:hover {
color: #ff0000;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
a.highlight:hover {
color: #ff0000;
font-size: 22px;
}
</style>
</head>
<body>
<h2>Pseudo-classes and HTML Classes</h2>
<p>When you hover over the first link below, it will change color and font size:</p>
<p><a class="highlight" href="css_syntax.asp">CSS Syntax</a></p>
<p><a href="default.asp">CSS Tutorial</a></p>
</body>
</html>
:<div> ﺮﺼﻨﻋ ﺭﺩ :hover
ﻪﺒﺷ ﺱﻼﮐ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺯﺍ ﯽ
div:hover {
background-color: blue;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
div {
background-color: green;
color: white;
padding: 25px;
text-align: center;
}
div:hover {
background-color: blue;
}
</style>
</head>
<body>
<p>Mouse over the div element below to change its background color:</p>
<div>Mouse Over Me</div>
</body>
</html>
:(ﺭﺍﺰﺑﺍ ﯼﺎﻤﻨﻫﺍﺭ ﮏﯾ ﺪﻨﻧﺎﻣ) ﺩﻮﺷ ﻩﺩﺍﺩ ﻥﺎﺸﻧ <p> ﺮﺼﻨﻋ ﺎﺗ ﺪﯾﺭﺍﺩ ﻪﮕﻧ <div> ﺮﺼﻨﻋ ﮏﯾ ﯼﻭ
!ﻡﺎﺠﻨﯾﺍ ﻦﻣ !ﺍﺩﺎﺗ
p {
display: none;
background-color: yellow;
padding: 20px;
}
div:hover p {
display: block;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
p {
display: none;
background-color: yellow;
padding: 20px;
}
div:hover p {
display: block;
}
</style>
</head>
<body>
<div>Hover over this div element to show the p element
<p>Tada! Here I am!</p>
</div>
</body>
</html>
.ﺖﺳﺍ ﺮﮕﯾﺩ ﺮﺼﻨﻋ ﻝﻭﺍ ﺪﻧﺯﺮﻓ ﻪﮐ ﺩﺭﺍﺩ ﺖﻘﺑﺎﻄﻣ ﯼﺍ ﻩﺪﺷ ﺺﺨﺸﻣ ﺮﺼﻨﻋ ﺎﺑ :ﺪﻫﺩ ﯽﻣ ﺖﻘﺑﺎﻄﻣ ﺖﺳﺍ ﺮﺼﻨﻋ ﺮﻫ ﻝﻭﺍ ﺪﻧﺯﺮﻓ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ ﺮﮕﺑﺎﺨﺘﻧﺍ ،ﺮﯾﺯ ﻝﺎﺜﻣ ﺭﺩ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﻫﺩ ﯽﻣ ﺖﻘﺑﺎﻄﻣ <p> ﺮﺻﺎﻨﻋ ﻪﻤﻫ ﺭﺩ ﺍﺭ <i> ﺮﺼﻨﻋ ﻦﯿﻟﻭﺍ ﺮﮕﺑﺎﺨﺘﻧﺍ ،ﺮﯾﺯ ﻝﺎﺜﻣ ﺭﺩ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﻫﺩ ﯽﻣ ﺖﻘﺑﺎﻄﻣ ﺪﻨﺘﺴﻫ ﺮﮕﯾﺩ ﺮﺼﻨﻋ ﻝﻭﺍ ﺪﻧﺯﺮﻓ ﻪﮐ <p> ﺮﺻﺎﻨﻋ ﺭﺩ ﺍﺭ <i> ﺮﺻﺎﻨﻋ ﻪﻤﻫ ﺮﮕﺑﺎ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ .ﺪﯿﻨﮐ ﻒﯾﺮﻌﺗ ﻒﻠﺘﺨﻣ ﯼﺎﻫ ﻥﺎﺑﺯ ﯼﺍﺮﺑ ﺍﺭ ﯽﺻﺎﺧ ﻦﯿﻧﺍﻮﻗ ﺪﻫﺩ ﯽﻣ ﻥﺎﮑﻣﺍ ﺎﻤﺷ ﻪﺑ :ﺪﻨﮐ ﯽﻣ ﻒﯾﺮﻌﺗ "lang="no ﺎﺑ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ ﺪﯿﻫﺩ ﺖﻘﺑﺎﻄﻣ ﺍﺭ <p> ﺮﺼﻨﻋ ﻦﯿﻟﻭﺍ
ﻝﺎﺜﻣ
p:first-child
{
color: blue;
}
<!DOCTYPE html>
<html>
<head>
<style>
p:first-child {
color: blue;
}
</style>
</head>
<body>
<p>This is some text.</p>
<p>This is some text.</p>
<div>
<p>This is some text.</p>
<p>This is some text.</p>
</div>
</body>
</html>
ﺪﯿﻫﺩ ﺖﻘﺑﺎﻄﻣ <p> ﺮﺻﺎﻨﻋ ﻪﻤﻫ ﺭﺩ ﺍﺭ <i> ﺮﺼﻨﻋ ﻦﯿﻟﻭﺍ
ﻝﺎﺜﻣ
p i:first-child
{
color: blue;
}
<!DOCTYPE html>
<html>
<head>
<style>
p i:first-child {
color: blue;
}
</style>
</head>
<body>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
</body>
</html>
ﺪﯿﻫﺩ ﺖﻘﺑﺎﻄﻣ <p> ﻝﻭﺍ ﺪﻧﺯﺮﻓ ﺮﺻﺎﻨﻋ ﻪﻤﻫ ﺭﺩ ﺍﺭ <i> ﺮﺻﺎﻨﻋ ﻪﻤﻫ
ﻝﺎﺜﻣ
p:first-child i
{
color: blue;
}
<!DOCTYPE html>
<html>
<head>
<style>
p:first-child i {
color: blue;
}
</style>
</head>
<body>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<div>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
<p>I am a <i>strong</i> person. I am a <i>strong</i> person.</p>
</div>
</body>
</html>
CSS - ﻪﺒﺷ ﺱﻼﮐ :lang
ﺮﺻﺎﻨﻋ ﯼﺍﺮﺑ ﺍﺭ ﻝﻮﻗ ﻞﻘﻧ ﺖﻣﻼﻋ
ﻝﺎﺜﻣ
<html>
<head>
<style>
q:lang(no) {
quotes: "~" "~";
}
</style>
</head>
<body>
<p>Some text <q lang="no">A quote in a paragraph</q>
Some text.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
q:lang(no) {
quotes: "~" "~";
}
</style>
</head>
<body>
<p>Some text <q lang="no">A quote in a paragraph</q> Some text.</p>
<p>In this example, :lang defines the quotation marks for q elements with lang="no":</p>
</body>
</html>
ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﺎﻫ ﮏﻨﯿﻟ ﻪﺑ ﺍﺭ ﻒﻠﺘﺨﻣ ﯼﺎﻫ ﮏﺒﺳ
<!DOCTYPE html>
<html>
<head>
<style>
a.one:link {color:#ff0000;}
a.one:visited {color:#0000ff;}
a.one:hover {color:#ffcc00;}
a.two:link {color:#ff0000;}
a.two:visited {color:#0000ff;}
a.two:hover {font-size:150%;}
a.three:link {color:#ff0000;}
a.three:visited {color:#0000ff;}
a.three:hover {background:#66ff66;}
a.four:link {color:#ff0000;}
a.four:visited {color:#0000ff;}
a.four:hover {font-family:monospace;}
a.five:link {color:#ff0000;text-decoration:none;}
a.five:visited {color:#0000ff;text-decoration:none;}
a.five:hover {text-decoration:underline;}
</style>
</head>
<body>
<h2>Styling Links</h2>
<p>Mouse over the links and watch them change layout:</p>
<p><b><a class="one" href="default.asp" target="_blank">This link changes color</a></b></p>
<p><b><a class="two" href="default.asp" target="_blank">This link changes font-size</a></b></p>
<p><b><a class="three" href="default.asp" target="_blank">This link changes background-color</a></b></p>
<p><b><a class="four" href="default.asp" target="_blank">This link changes font-family</a></b></p>
<p><b><a class="five" href="default.asp" target="_blank">This link changes text-decoration</a></b></p>
</body>
</html>
focus: ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ
<!DOCTYPE html>
<html>
<head>
<style>
input:focus {
background-color: yellow;
}
</style>
</head>
<body>
<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br><br>
Last name: <input type="text" name="lname"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
:ﻝﺎﺜﻣ
a:active
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻝﺎﻌﻓ ﮏﻨﯿﻟ
:ﻝﺎﺜﻣ
input:checked
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻩﺩﺯ ﺖﻣﻼﻋ <ﯼﺩﻭﺭﻭ> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
input:disabled
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻝﺎﻌﻓﺮﯿﻏ <ﯼﺩﻭﺭﻭ> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:empty
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺩﺭﺍﺪﻧ ﺪﻧﺯﺮﻓ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
input:enabled
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻝﺎﻌﻓ <ﯼﺩﻭﺭﻭ> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:first-child
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ ﻝﻭﺍ ﺪﻧﺯﺮﻓ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:first-of-type
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ <p> ﺮﺼﻨﻋ ﻦﯿﻟﻭﺍ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
input:focus
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺩﺭﺍﺩ ﺱﻮﮐﻮﻓ ﻪﮐ ﺍﺭ <input> ﺮﺼﻨﻋ
:ﻝﺎﺜﻣ
a:hover
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺱﻭﺎﻣ ﯼﻭﺭ ﺍﺭ ﺎﻫﺪﻧﻮﯿﭘ
:ﻝﺎﺜﻣ
input:in-range
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺺﺨﺸﻣ ﻩﺩﻭﺪﺤﻣ ﺭﺩ ﯼﺭﺍﺪﻘﻣ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
input:invalid
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺮﺒﺘﻌﻣﺎﻧ ﺭﺍﺪﻘﻣ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ ﻪﻤﻫ
:ﻝﺎﺜﻣ
p:lang(it)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
.ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ،ﺩﻮﺷ ﯽﻣ ﻉﻭﺮﺷ "it" ﺎﺑ ﻪﮐ lang ﻪﺼﺨﺸﻣ ﺭﺍﺪﻘﻣ ﺎﺑ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:last-child
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ ﺪﻧﺯﺮﻓ ﻦﯾﺮﺧﺁ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:last-of-type
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ <p> ﺮﺼﻨﻋ ﻦﯾﺮﺧﺁ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
a:link
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻩﺪﺸﻧ ﺪﯾﺩﺯﺎﺑ ﯼﺎﻫﺪﻧﻮﯿﭘ ﻪﻤﻫ
:ﻝﺎﺜﻣ
:not(p)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺖﺴﯿﻧ <p> ﺮﺼﻨﻋ ﻪﮐ ﺍﺭ ﯼﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:nth-child(2)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ ﻡﻭﺩ ﺪﻧﺯﺮﻓ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:nth-last-child(2)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐﯽﻣ ﺵﺭﺎﻤﺷ ﺪﻧﺯﺮﻓ ﻦﯾﺮﺧﺁ ﺯﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ ﻡﻭﺩ ﺪﻧﺯﺮﻓ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:nth-last-of-type(2)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐﯽﻣ ﺵﺭﺎﻤﺷ ﺪﻧﺯﺮﻓ ﻦﯾﺮﺧﺁ ﺯﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ <p> ﺮﺼﻨﻋ ﻦﯿﻣﻭﺩ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:nth-of-type(2)
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ <p> ﺮﺼﻨﻋ ﻦﯿﻣﻭﺩ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:only-of-type
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ،ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ <p> ﺮﺼﻨﻋ ﺎﻬﻨﺗ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
p:only-child
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺖﺳﺍ ﻥﺁ ﺪﻟﺍﻭ ﺪﻧﺯﺮﻓ ﺎﻬﻨﺗ ﻪﮐ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ
:ﻝﺎﺜﻣ
input:optional
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ "ﯽﻣﺍﺰﻟﺍ" ﯽﮔﮋﯾﻭ ﻥﻭﺪﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
input:out-of-range
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺺﺨﺸﻣ ﻩﺩﻭﺪﺤﻣ ﺯﺍ ﺝﺭﺎﺧ ﯼﺭﺍﺪﻘﻣ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
input:read-only
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﻩﺪﺷ ﺺﺨﺸﻣ "readonly" ﻪﺼﺨﺸﻣ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
input:read-write
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ "readonly" ﯽﮔﮋﯾﻭ ﻥﻭﺪﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
input:required
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﻩﺪﺷ ﺺﺨﺸﻣ "ﻡﺯﻻ" ﯽﮔﮋﯾﻭ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ
:ﻝﺎﺜﻣ
root
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﺪﻨﺳ ﻪﺸﯾﺭ ﺮﺼﻨﻋ
:ﻝﺎﺜﻣ
#news:target
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
(ﺪﯿﻨﮐ ﮏﯿﻠﮐ ﺮﮕﻨﻟ ﻡﺎﻧ ﻥﺁ ﯼﻭﺎﺣ URL ﯼﻭﺭ) ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﯽﻠﻌﻓ ﻝﺎﻌﻓ news# ﺮﺼﻨﻋ
:ﻝﺎﺜﻣ
input:valid
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺮﺒﺘﻌﻣ ﺭﺍﺪﻘﻣ ﺎﺑ ﺍﺭ <input> ﺮﺻﺎﻨﻋ ﻪﻤﻫ
:ﻝﺎﺜﻣ
a:visited
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﻩﺪﺷ ﺪﯾﺩﺯﺎﺑ ﯼﺎﻫﺪﻧﻮﯿﭘ ﻪﻤﻫ
:ﻝﺎﺜﻣ
p::after
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﯿﻨﮐ ﺩﺭﺍﻭ ﺍﺭ ﺍﻮﺘﺤﻣ <p> ﺮﺼﻨﻋ ﺮﻫ ﺯﺍ ﺪﻌﺑ
:ﻝﺎﺜﻣ
p::before
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﯿﻨﮐ ﺩﺭﺍﻭ ﺍﺭ ﺍﻮﺘﺤﻣ <p> ﺮﺼﻨﻋ ﺮﻫ ﺯﺍ ﻞﺒﻗ
:ﻝﺎﺜﻣ
p::first-letter
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ ﻝﻭﺍ ﻑﺮﺣ
:ﻝﺎﺜﻣ
p::first-line
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ <p> ﺮﺼﻨﻋ ﺮﻫ ﻝﻭﺍ ﻂﺧ
:ﻝﺎﺜﻣ
::marker
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﺖﺳﺮﻬﻓ ﺩﺭﺍﻮﻣ ﯼﺎﻫﺮﮕﻧﺎﺸﻧ
:ﻝﺎﺜﻣ
p::selection
:ﻝﺎﺜﻣ ﺢﯿﺿﻮﺗ
ﺖﺳﺍ ﻩﺪﺷ ﺏﺎﺨﺘﻧﺍ ﺮﺑﺭﺎﮐ ﻂﺳﻮﺗ ﻪﮐ ﺪﻨﮐ ﯽﻣ ﺏﺎﺨﺘﻧﺍ ﺍﺭ ﺮﺼﻨﻋ ﮏﯾ ﺯﺍ ﯽﺸﺨﺑ