Font size
Worksheets8.10 Introduction to CSS
Total questions: 10
Worksheet time: 8mins
What does CSS stand for?
Computer Style Sheets
Creative Style Sheets
Cascading Style Sheets
Custom Style Syntax
Which of the following is the correct way to apply an external CSS file to an HTML document?
<css>styles.css</css>
<link rel= "stylesheet" href= "styles.css">
<style>styles.css
</styles>
<script src= "styles.css">
</script>
Which CSS property is used to change the text color of an element?
font-color
text-style
color
text-color
Which symbol is used to refer to an ID selector in CSS?
. (dot)
#(hashtag)
@ (at symbol)
* (asterisk)
What is the correct syntax for selecting all <p> elements in an external CSS file?
p { color: blue; }
<p> { color: blue; }
#p { color: blue; }
.p { color: blue' }
Inline CSS is written inside a <style> tag in the <head> section of an HTML document. (a)
The property background-color is used to change the text color of an element. (a)
The font-size property is used to change the size of text in CSS. (a)
A class selector can be used multiple times in an HTML document, while an ID selector should be unique. (a)
The default position of an HTML element is relative. (a)
