Flashcards on CSS

Click on the flashcard to see the answer


What does CSS stand for?

Cascading Style Sheets

What is the purpose of CSS?

CSS is used to style and format HTML documents

What is the syntax for selecting an element in CSS?

element { styles }

What is the difference between inline and internal styles?

Inline styles are applied directly to the HTML element in question, while internal styles are defined within the head section of the HTML document

What is the syntax for defining a class in CSS?

.class { styles }

What is the difference between a class and an ID in CSS?

A class can be used multiple times in the HTML document, while an ID can only be used once

What is the syntax for defining an ID in CSS?

#id { styles }

What is the universal selector in CSS and what does it do?

The universal selector is *, which selects all elements in the HTML document. It can be used to apply styles to all elements

What is the purpose of the CSS box model?

The CSS box model is used to calculate the size and position of HTML elements

What is a pseudo-class in CSS?

A pseudo-class is a keyword added to a selector that specifies a special state of the element, such as :hover or :active

What is the syntax for adding comments in CSS?

/* comment */

What is the difference between padding and margin in CSS?

Padding is the space between the element's content and border, while margin is the space between the element's border and the next element

What is the difference between relative and absolute positioning in CSS?

Relative positioning is based on the element's current position, while absolute positioning is based on the element's parent element

What is the purpose of the z-index property in CSS?

The z-index property is used to specify the stacking order of HTML elements

What is the float property in CSS used for?

The float property is used to specify whether an element should float to the left, right, or not at all

What does CSS stand for?

Cascading Style Sheets

What is the purpose of CSS?

CSS is used to style and format HTML documents

What is the syntax for selecting an element in CSS?

element { styles }

What is the difference between inline and internal styles?

Inline styles are applied directly to the HTML element in question, while internal styles are defined within the head section of the HTML document

What is the syntax for defining a class in CSS?

.class { styles }

What is the difference between a class and an ID in CSS?

A class can be used multiple times in the HTML document, while an ID can only be used once

What is the syntax for defining an ID in CSS?

#id { styles }

What is the universal selector in CSS and what does it do?

The universal selector is *, which selects all elements in the HTML document. It can be used to apply styles to all elements

What is the purpose of the CSS box model?

The CSS box model is used to calculate the size and position of HTML elements

What is a pseudo-class in CSS?

A pseudo-class is a keyword added to a selector that specifies a special state of the element, such as :hover or :active

What is the syntax for adding comments in CSS?

/* comment */

What is the difference between padding and margin in CSS?

Padding is the space between the element's content and border, while margin is the space between the element's border and the next element

What is the difference between relative and absolute positioning in CSS?

Relative positioning is based on the element's current position, while absolute positioning is based on the element's parent element

What is the purpose of the z-index property in CSS?

The z-index property is used to specify the stacking order of HTML elements

What is the float property in CSS used for?

The float property is used to specify whether an element should float to the left, right, or not at all

Share


Login to Save


Share



Login to Save


Explore Other Decks


Made for Grade 8

Low Level Languages, High Level Languages and Translation Programs


View Deck
Made for Grade 8

Maria Manoru 'Charlotte Obtaining... 13 Points'


View Deck
Made for Grade 3

Meghan Mac Donald 'Judy Moody meets a new teacher'


View Deck

Explore More