What is CSS.
<CSS>
CSS:-"CASCADING STYLE SHEET" allows us to apply formatting and styling to the HTML that builds our web page. CSS can control many elements of our web pages: colour, fonts, alignment, border, background, spacing, margins, and much more.
STYLE SHEETS:-
WAYS TO DEFINE STYLES:-
CSS:-"CASCADING STYLE SHEET" allows us to apply formatting and styling to the HTML that builds our web page. CSS can control many elements of our web pages: colour, fonts, alignment, border, background, spacing, margins, and much more.
STYLE SHEETS:-
- Each elements on a page has a style defined for it.
- The style is defined by a set of attribute: value pairs.
- Style attributes can control:
- font properties
- Background properties
- Box related properties
- list properties
WAYS TO DEFINE STYLES:-
- INLINE STYLE SHEET:- Style is defined as an attribute of the element in place. Use this for "one-off" or special styles.
- INTERNAL STYLE SHEET:-Styles defined in the head portion of web page. Use this if you don't have very many web pages, or for styles that are useful only for the given page.
- EXTERNAL STYLE SHEET:- Styles defined in a separate file. Use this to centralize style definitions and provide uniformity across all pages of a website.
Comments
Post a Comment