Feuilles de style externes et médias Flashcards

1
Q

What are external style sheets?

A

Files that contain CSS rules to style HTML documents

They are linked to HTML documents using the <link></link> tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you link an external style sheet to an HTML document?

A

Using the <link></link> tag in the <head> section

Example: <link></link>.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of CSS in web design?

A

To control the layout and appearance of web pages

CSS stands for Cascading Style Sheets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: External style sheets can only be used with HTML.

A

False

External style sheets can also work with XML and other markup languages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Fill in the blank: An external style sheet is typically saved with the _______ extension.

A

.css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is one advantage of using external style sheets?

A

They allow for consistent styling across multiple pages

Changes in one external stylesheet reflect across all linked pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the <link></link> tag’s ‘rel’ attribute specify?

A

The relationship between the current document and the linked document

Commonly set to ‘stylesheet’ for CSS files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the ‘href’ attribute in the <link></link> tag do?

A

Specifies the URL of the external style sheet

It can be a relative or absolute path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List two types of media that can be specified in external style sheets.

A
  • screen
  • print
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the syntax for including a comment in CSS?

A

/* comment */

Comments are ignored by the CSS processor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly