12 Questions
How is an inline style applied to an HTML element?
By adding the style attribute to the relevant element.
Where are internal styles defined?
Within the
What are the three types of CSS?
Inline CSS, Internal CSS, External CSS
How can an external style sheet change the look of an entire website?
By changing just one file that is referenced by all the pages.
What CSS property is used to add a decoration line to text?
text-decoration-line
How can you combine multiple decoration line values for a text?
You can combine more than one value, like overline and underline, to display lines both over and under a text.
Which CSS property is used to set the color of the decoration line?
text-decoration-color
What CSS property is used to set the style of the decoration line?
text-decoration-style
What is the purpose of a CSS selector?
To select the HTML elements you want to style.
What does the CSS Element Selector do?
Selects HTML elements based on the element name.
How does the id selector differ from the class selector?
The id selector selects a specific unique element, while the class selector selects elements with a specific class attribute.
What character is used to select elements with a specific class?
Period (.)
Study Notes
Applying Inline Styles
- An inline style is applied to an HTML element using the
style
attribute, directly in the HTML tag.
Types of Styles
- There are three types of CSS: Inline, Internal, and External.
Internal Styles
- Internal styles are defined inside an HTML document using the `
Test your knowledge about the types of CSS and declaration blocks in this quiz. It covers the concepts of inline CSS, internal CSS, and external CSS, as well as the structure and syntax of CSS declaration blocks.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free