Basic Syntax of CSS - How to Code CSS
A CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts: a selector, a property, and a value. CSS selectors are used to find HTML elements based on their element name as: id, class, attribute, and more.
The element Selector
You can select all <h1> elements on a page like this (all elements will be left-aligned, with a green text color).
The id Selector
The class Selector
OK, so you've now learned about the CSS style syntax, but how do you incorporate this syntax into your website? The next lesson will show you how to incorporate CSS into your HTML webpage.
Syntax of CSS, How to Code CSS, Basic CSS
Basic Syntax of CSS - How to Code CSS - css tutorial
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
Find here examples of creative and unique website layouts.
Find here examples of creative and unique website CSS HTML menu.