Mind map
CSS
Map content
CSS
CSS Stands for Cascading Style Sheet
- It describes how HTML Elements are to be displayed on screen.
- Can control the layout of multiple web pages all at once.
- External Stylesheets are stored in CSS Files
A CSS rule set consists of a selector and a declaration block.
- h1 {color:blue; font-size:12px;} Property^ Value^
- The element selector selects elements based on the element name.
- If you have elements with the same style definitions, you can group the selectors, to minimize the code.
- The ID Selector uses the ID attribute of an HTML element to select a specific element.
- An ID Should be unique within a page, so the ID selector is used if you want to select a single, unique element.
- The Class Selector selects elements with a specific class attribute.
Style Sheets
- Internal Style Sheet
- An internal style sheet may be used if one single page has a unique identifier.
- Internal styles are defined within the <style> element, inside the head section of an HTML page.
- External Style Sheets
- Each page must include a reference to the external style sheet inside the <link> element.
- An external style sheet can be written in any text editor. The file should not contain any HTML tags. The style sheet must be saved with a .css extension.
- Each page must include a reference to the external style sheet inside the <link> element.
- Inline Style Sheet
- An inline style may be used to apply a unique style for a single element
- Internal Style Sheet
Information
- Description
- A level Computing (Unit 1) Mind Map on CSS, created by Jack Gudgeon on 11/05/2017.
- Created by
- Jack Gudgeon
- Views
- 0
- Rating