There are two ways to have CSS in your HTML code; one is through the style attribute, and the other is through the style tag.
We've seen this in the Introduction to CSS. Let's show another example.
If I have this HTML:
<input type="text"/>
and I want to set the font size in the input box, I can do this:
<input type="text" style="font-size: 2em"/>
The result is:
Next: The Style Tag
Leave a comment