CLASS attribute
can create styles that can be used when we want.
First, we define a rule in the CSS document (the starting point is required):
. Quote {font-weight: bold; color: red;} Once defined, we can apply any label class HTML:
\u0026lt;p class="cita"> In the spot instead of ...\u0026lt;/ p> We can also restrict style to an element type:
p.cita {font-weight: bold; color: red;} ID attribute
CLASS
is like, but only worn when a single item. ID styles are preceded by #:
# first-to {font-weight: bold;} \u0026lt;p id="first-para"> This is the first Paragraph, and Will Be Boldface. \u0026lt;/ p> Ref: Web Development
Programacion.com
0 comments:
Post a Comment