Styling with ID

Example styling an element using an id selector.

Preview

Code

<style>
#highlight {color:red;font-weight:bold;}
</style>

<p id="highlight">This text is styled using an id.</p>

More HTML Id Examples (4)