2.23 Textteile hervorheben
Problem
Bestimmte Textteile eines Absatzes sollen hervorgehoben werden, wie in Abbildung 2-37 gezeigt.
Lösung
Markieren Sie die Teile Ihres Textes, die hervorgehoben werden sollen, mit dem Element strong
:
Abbildung 2-37. Hervorgehobener Text
<p>The distribution of messages from the selling of propaganda to the giving away of disinformation takes place at a blindingly fast pace thanks to the state of technology … <strong>This change in how fast information flows revolutionizes the culture.</strong></p>
Nun definieren Sie die entsprechenden CSS-Regeln, um den Text hervorzuheben:
strong { font-weight: normal; background-color: ...
Get CSS Kochbuch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.