Embedded styles


show more Embedded styles provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Embedded styles

In the last movie, we introduced inline styles and discussed how they're inefficient for controlling the formatting of pages in sites. Now another way to author styles is through the use of embedded styles. Embedded styles allow you to write styles to control the page content in the head of the page's HTML. Let's give it a try. And the first thing we need to do if we are going to write embedded styles is to use the style tag in the head of the document to let the browser or the user agent know that we have some styles.

So the first thing I am going to do is go right up here, so right after the title, but before the closing head tag. I am going to go ahead and open up a style tag and then Aptana closes the style tag for me, which is very nice of it, but if your user agent didn't do that for you, go ahead and do that. I also like creating just a little bit of room between them so that I have room to create my styles. Now in some older browsers, or in older units, you might ac...

Embedded styles
Video duration: 5m 19s 8h 52m Beginner

Viewers:

Embedded styles provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...