CSS TRAINING IN ABUJA
Cascading style sheet popularly known as CSS is the standard way to define the presentation of your HTML pages, from fonts, colors, links, borders, underlines, positioning of contents to the complete layout of a page. They are much more efficient than using HTML on every page to define the look of your site.
CSS is becoming a more important language to know every day because it describes how HTML elements are to be displayed, so the sooner you have a grip on this most elegant of presentational languages, the better.
HOW DOES CSS WORK?
CSS is a set of instructions, suggesting to a web browser how to display a page. CSS does not force
a browser to display a page in a particular way, it only suggests
to the browser how the page should be displayed.
These instructions are called statements
. A statement does two things:
- It identifies the elements in an HTML document that it affects
- It tells the browser how to draw these elements
Elements refers to paragraphs, links, list items and so on.
Note: An HTML element is anything marked up inside HTML tags
The part of a statement which identifies page elements is called a selector. Selectors select page elements.
The part of a statement which tells a browser how selected elements should be drawn is called the declaration. A declaration can contain any number of properties, the individual pieces of style to be applied to the selected element.
Here is a practical example:
THE THREE WAYS OF WRITING CSS
Get Started Today
- Inline CSS.
- Internal CSS.
- External CSS.