From the course: HTML for Programmers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Working with CSS
- [Instructor] Where HTML defines the page structure and content, CSS defines the page style and layout. CSS stands for cascading style sheets. We won't cover CSS in this course, so be sure to check out CSS for Programmers to learn more. HTML works closely with CSS to create beautiful webpages. There are three ways we include CSS code within our markup. The first way to include styles is with inline styles. For this, we use the style attribute. The value is the property value pair that defines a style rule. For example, if we have a heading we want to color blue, we can define this with the style attribute and set its value to color blue. The second way to include styles is with embedded CSS. For this, we use the style element in the document head. We declare the style tag and any code written between the opening and closing tags will be parsed as CSS code. Here, we've declared a style tag in the document head and are…