Learn the basic formatting rules of CSS as you learn about the syntax by its individual parts: the selector, declaration box, and style rules.
- [Instructor] Like any programming language,…CSS has it's own syntax, or set of formatting rules to use.…Thankfully it's pretty minimal,…so it's not too difficult to learn.…The most basic description of the syntax…is that it includes a selector and a declaration block.…The selector points to the element…you want to style, and in this case it's the HTML…paragraph element, represented by P,…and the declaration block, which is enclosed…in these curly braces, and can contain at least one…or more declarations.…
These declarations are simply the formatting instructions.…So here we've got two declarations, or rules,…one telling the browser which font to use,…and another setting the font size.…The rules themselves are made up of two parts,…the property and the value.…These are separated by colons, and there's a…semicolon to tell the browser to stop evaluating,…and move on to the next rule.…That's really the basics of CSS syntax.…Even though the syntax itself is pretty straightforward,…though there are tons of selectors…
- What is CSS?
- Understanding how CSS works with HTML
- Applying fonts
- Understanding the classic box model
- Setting margins and padding
- Positioning elements
- Basic CSS layout concepts
- Media types and media queries
- Working with CSS frameworks and CSS grids
- Creating responsive layouts
- Tools that help you write and maintain CSS
Skill Level Beginner
1. CSS Basics
2. CSS Specifications
3. Common CSS Concepts
4. CSS Layouts
5. Working with CSS
6. Responsive CSS
7. Going Further with CSS
- 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.