CSS Selectors – manipulate HTML element : Chapter 3

html-css-website

CSS Selectors CSS selectors allow you to select and manipulate HTML element(s). CSS selectors are used to “find” (or select) HTML elements based on their id, classes, types, attributes, values of attributes and much more. 1. The element Selector The element selector selects elements based on the element name.You can select all <p> elements on … Read more

CSS Syntax : Chapter 2

html-css-website

A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly braces: p {color:red;text-align:center;} To make the CSS code more readable, you can put one declaration on each line, like this: Example p { color: red; text-align: center; } CSS Comments Comments are used to explain your code, and may help you when you … Read more

Start learning CSS : Chapter 1

html-css-website

What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets are stored in CSS files CSS Saves a Lot of Work! CSS defines HOW HTML elements are to be displayed. Styles are normally saved in external … Read more