- In our last exercise we discussed why…it was a bad idea to style HTML elements directly…using inline styles.…It's a lot more efficient to have styles that can…affect an entire page, or an entire site,…all at once.…So, to introduce that concept, we're going to take a look…at introduce the style element…and move our styles in to the head of our document.…To do this we're gonna work with the style.htm…which is found in the 07_03 directory…and again you can see we are sort of picking up…where we left off.…We have a heading 2 on the page…and currently it's using inline styling to…make itself red…and change its font weight to normal.…
So I want to move that up so that any h2s that might be on…this page are affected by that…and I'm not having to do this inline…styling for every single one of them.…Again we're going to do this in the head of the document.…Remember the head is where those sort of invisible things…that help make the page work, go,…and we're going to do a style tag.…So we're going to go ahead and open up a style tag…
Author
Updated
3/30/2017Released
3/16/2015- Why is HTML important?
- Exploring an HTML document
- Formatting content
- Displaying images
- Using nav, article, and div elements
- Linking to pages and downloadable content
- Creating lists
- Controlling styling (fonts, colors, and more)
- Writing basic scripts
Skill Level Beginner
Duration
Views
Related Courses
-
Creating a Responsive HTML Email
with Chris Converse1h 43m Beginner
-
Introduction
-
Welcome1m
-
Using the exercise files1m 8s
-
-
1. Introducing HTML
-
The importance of HTML3m 20s
-
Basic HTML syntax8m 42s
-
The current state of HTML5m 54s
-
HTML resources5m 28s
-
Choosing a code editor5m 41s
-
-
2. Basic Page Structure
-
Exploring an HTML document5m 27s
-
The document head6m 11s
-
The document body3m 58s
-
Understanding content models6m 39s
-
-
3. Formatting Page Content
-
Formatting content with HTML6m 58s
-
Using headings7m 50s
-
Formatting paragraphs5m 35s
-
Controlling line breaks3m 46s
-
Emphasizing text6m 53s
-
Controlling whitespace3m 37s
-
Displaying images7m 8s
-
-
4. Structuring Content
-
The value of structure2m 48s
-
Controlling document outlines10m 40s
-
The nav element5m 32s
-
The article element5m 19s
-
The section element5m 12s
-
The aside element4m 56s
-
The div element6m 4s
-
Other semantic elements9m 39s
-
Using WAI-ARIA roles6m 35s
-
-
5. Creating Links
-
Exploring the anchor element2m 58s
-
Linking to external pages4m 18s
-
Linking to page regions9m 46s
-
Challenge: Creating links3m 49s
-
Solution: Creating links5m 52s
-
-
6. Creating Lists
-
Unordered lists6m 5s
-
Definition lists7m 49s
-
Challenge: Creating lists4m 18s
-
Solution: Creating lists4m 28s
-
-
7. Controlling Styling
-
HTML and CSS5m 34s
-
Creating inline styles4m 13s
-
The style element6m 20s
-
Controlling typography11m 58s
-
Adding color6m 55s
-
Externalizing styles6m 57s
-
-
8. Basic Scripting
-
HTML and JavaScript4m 51s
-
The script element5m 56s
-
Writing a function4m 8s
-
Using the DOM6m 30s
-
Listening for an event6m 49s
-
Responding to events5m 30s
-
Externalizing JavaScript5m 15s
-
-
Conclusion
-
Next steps2m 16s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: The style element