Feuilles de style externes et médias Flashcards
What are external style sheets?
Files that contain CSS rules to style HTML documents
They are linked to HTML documents using the <link></link> tag.
How do you link an external style sheet to an HTML document?
Using the <link></link> tag in the <head> section
Example: <link></link>.
What is the purpose of CSS in web design?
To control the layout and appearance of web pages
CSS stands for Cascading Style Sheets.
True or False: External style sheets can only be used with HTML.
False
External style sheets can also work with XML and other markup languages.
Fill in the blank: An external style sheet is typically saved with the _______ extension.
.css
What is one advantage of using external style sheets?
They allow for consistent styling across multiple pages
Changes in one external stylesheet reflect across all linked pages.
What does the <link></link> tag’s ‘rel’ attribute specify?
The relationship between the current document and the linked document
Commonly set to ‘stylesheet’ for CSS files.
What does the ‘href’ attribute in the <link></link> tag do?
Specifies the URL of the external style sheet
It can be a relative or absolute path.
List two types of media that can be specified in external style sheets.
- screen
What is the syntax for including a comment in CSS?
/* comment */
Comments are ignored by the CSS processor.