Assignment Css Assignment 1: Basic Syntax
- Create a CSS file named "styles.css" and link it to an HTML file.
- Write a CSS rule to change the background color of the body element to blue.
- Write a CSS rule to change the font family of all headings to "Arial".
- Write a CSS rule to Bold text of p element.
Assignment 2: CSS Selectors
- Create an HTML page with different headings and paragraphs.
- Write a CSS rule to change the color of all headings to red.
- Write a CSS rule to change the color of all paragraphs to green.
- Write a CSS rule to change the font size of all paragraphs with class "important" to 18px.
- Write a CSS rule to change the font weight of the paragraph with id "intro" to bold.
Assignment 3: Grouping Selectors
- Create an HTML page with different elements such as headings, paragraphs, and lists.
- Write a CSS rule to change the font family of all headings and paragraphs to "Georgia".
- Write a CSS rule to give a 1-pixel solid border to all unordered and ordered lists on the page.
Assignment 4: Combining Multiple Selectors
- Create an HTML page with different elements such as headings, paragraphs, and images.
- Write a CSS rule to change the font family of all headings and paragraphs inside a div with class "container".
- Write a CSS rule to change the font size of all headings inside a div with class "container" and id "header" to 28px.