O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Applying Inline Styles

Inline styles are the third way to apply CSS to HTML. However, they are by far the least desirable option because they intertwine your content (HTML) and presentation (CSS), a cruel slap in the face to best practices Image. An inline style affects only one element Image, so you lose one of the key benefits an external style sheet provides: Write once and see everywhere. Imagine having to sift through a slew of HTML pages to make a simple font color change, and you can see why inline styles aren’t intended for regular use.

Rules applied ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required