First page Back Continue Last page Image
Span, ID, Div, Class, Cascade
- body { font-size: 200%; }
- div {font-size: 80%;}
- p {font-size: 80%;}
- span.smaller {font-size:80%; font-weight: bold;}
- #smallest {font-size: 80%; font-weight: normal;}
- <body>
- This line of text is in the body
- <div>
- This line of text is in the div (in the body)
- <p>
- This line of text is in the p (in the div, in the body)
- <span class=“smaller”>
- This line of text is in the smaller class span (in p,div,body)
- <span id=“smallest”>
- This line is in the id span smallest (in span,p,div.body)
- </span>
- </span>
- </p>
- </div>
- </body>
- The css component (could be linked or embedded)