- 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…
- 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
1. Introducing HTML
2. Basic Page Structure
3. Formatting Page Content
4. Structuring Content
5. Creating Links
6. Creating Lists
7. Controlling Styling
8. Basic Scripting
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.Cancel
Take 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.