CSS Basics

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts related to CSS as detailed in the lecture notes.

18 Terms

1
New cards

CSS

Cascading Style Sheets, a style sheet language used for describing the presentation of a document written in HTML.

2
New cards

Internal style sheet

A CSS section placed within the

3
New cards

External style sheet

A separate CSS file linked to an HTML document using the tag, situated within the section.

4
New cards

Inline CSS

CSS styles applied directly within an HTML element's style attribute, generally not recommended for large websites.

5
New cards

Element Selector

Selects and styles all elements of a specified type within CSS.

6
New cards

ID Selector

A CSS selector with a '#' symbol that styles a unique element identified by its id attribute.

7
New cards

Class Selector

A CSS selector beginning with a '.' that styles elements sharing the same class name.

8
New cards

Color name

One way to specify colors in CSS by using predetermined color names like 'red' or 'blue'.

9
New cards

RGB value

A method for specifying colors using the red, green, and blue components, e.g., rgb(255,0,0).

10
New cards

Hexadecimal color

A method for specifying colors using hexadecimal format, starting with '#', e.g., #FF0000.

11
New cards

CSS Box Model

The concept describing the layout of a web element being composed of content, padding, border, and margin.

12
New cards

Total width calculation

The formula for calculating the visible width of a div element, considering width, padding, border, and margin.

13
New cards

Margin

The space outside the border of an element, used to create space between elements.

14
New cards

Padding

The space between the content and the border of an element, creating space within the element.

15
New cards

Border

A line that surrounds the padding and content of an element, defining its boundary.

16
New cards

CSS comment syntax

/* comment */; used for comments within CSS code.

17
New cards

HTML comment syntax

  • <! - - comment - - >


18
New cards