From the course: HTML: Metadata in the Head
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Specifying style directly - HTML Tutorial
From the course: HTML: Metadata in the Head
Specifying style directly
- [Instructor] Another way to include styles in your HTML document is to embed them directly in the head of the document. This method may make styling easier to read or understand. But it also means these styles apply only to this particular webpage. For example, on our homepage, we might want to flip the color scheme. So as you know, this is the same page we've been working with in this course. Right now, we have an all white content section here on our homepage. Maybe we'd like to flip that. Maybe we'd like to have this white displaying only on the inside pages. And there are probably several of those. But for this homepage, let's have a blue background in the middle instead. So we just want to recolor just the homepage, for example. So one way that we might go about doing that, and there are several ways to solve this particular issue, but let's just say that we'd like to just go on ahead and install some styles here to the head of our homepage document only where they will take…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Adding a title to your page1m 40s
-
(Locked)
Creating identity for your pages with icons6m 42s
-
(Locked)
Linking styles to your page2m 39s
-
(Locked)
Specifying style directly2m 41s
-
(Locked)
Connecting scripts5m 19s
-
(Locked)
Establishing a base URL3m 31s
-
(Locked)
Challenge: Establishing scripts, styles, and icons2m 28s
-
(Locked)
Solution: Establishing scripts, styles, and icons3m 29s
-
(Locked)
-