CSS Foundation Flashcards
(145 cards)
What does CSS stand for?
Cascading Style Sheet
What is CSS used for?
CSS is used to style web pages e.g. the layout, colour etc.
True or false:
CSS is used to create page layouts in websites?
True.
True or false:
There is more than one way to add CSS to a web page.
True e.g. you can add CSS via an external stylesheet or in the style element in the head of a web page.
What is a CSS ‘style block’?
It is an opening and closing CSS tag with CSS code in between, which is located in the head element.
What are the opening and closing tags for a CSS style block?
No, there is no HTML code, just CSS.
In this code, which is the ‘selector’:
In this code, which is the value:
‘blue’
In this code, which is the property:
‘color’
What would you call this chunk of code:
A CSS declaration block, as there are more than one declarations:
What does this code do:
It selects ALL h2 tags in the page(s), and sets the text color to blue.
If you don’t set the font-size in CSS, what does the web browser do?
It will use the default/automatic font-size set by the browser.
How many CSS declarations do we have in this chunk of code: {color: red; font-size: 24px;}
There are two declarations:
color: red;
font-size: 24 px;
What are the Web Developer Tools and how can you access them?
They are tools to assist web developers which are accessible via hitting F12 in Chrome.
How do you inspect the element in Google Chrome?
Via one of two ways:
- Select a section of the page, right click and select Inspect Element
- Select a section of the page and press Ctrl + Shift + i
What does this tag do?
Links the web page to an external CSS style sheet.
What would the code look like for a link tag which points to an external CSS style sheet called page.css?
What do div tags do?
Div tags create sections/divisions in the web page.
Why does it sometimes help to leave a comment next to a closing tag?
To clearly mark where the tag ends.
Why would you indent code?
To clearly show which tags are nested/sub tags to make the code easier to read.
What do you call the logical meaning of HTML tags? And what does that term mean?
The semantic meaning. A semantic element clearly describes its meaning to both the browser and the developer.
What is the SEMANTIC meaning of these tags:
What are the four ways to set the color value in CSS?
The code appears as the following:
- RGB
- HSL
- HEX
- Named colours