اليك شئ بسيط لكن سأكتبه بالانجليزية لأني لا اريد التنقل بين العربية والانجليزية كل حرف ونص
كود:
if you have this paragraph
<p>This is my first CSS style</p>
you can create a css class - lets name it "pnormal"
And give it these properties like
.pnormal{
font-size:16px;
color:#ff0000
border-top: 1px dashed #003366
}
and now we have append it to our html paragraph this way:
<p class="pnormal">This is my first CSS class</p>
This will tell the browser to format the paragraph according to the PNORMAL css class.
And the whole html will be like this:
<html>
<head>
<STYLE type=text/css>
<!--
.pnormal{
font-size:16px;
color:#ff0000;
border-top: 1px dashed #003366;
}
-->
</STYLE>
</head>
<body>
<p class="pnormal">This is my first CSS class</p>
</body>
</html>