Which tag is used to define internal CSS in an HTML document?
A
<style> B
<css> C
<script> D
<link>
Analysis & Theory
`<style>` is used inside the `<head>` to define internal CSS.
Which HTML tag is used to link an external CSS file?
A
<script> B
<link> C
<style> D
<css>
Analysis & Theory
`<link>` tag is used to connect an external CSS file to an HTML document.
Which attribute is used in the `<link>` tag to specify the CSS file?
A
src B
href C
style D
url
Analysis & Theory
`href` specifies the location of the external CSS file.
Which of the following is used to apply a style to one specific element?
A
id B
class C
tag D
style
Analysis & Theory
`id` is used to target one unique element using CSS (with `#id`).
Which symbol is used in CSS to select a class?
A
# B
. C
* D
$
Analysis & Theory
In CSS, classes are selected using a dot (`.`), like `.myclass`.
What is the correct syntax to apply CSS inline?
A
<p style='color: red;'> B
<p css='color: red;'> C
<style='color:red'> D
<css style='red'>
Analysis & Theory
`style` is the correct attribute for applying inline CSS.
Which CSS property is used to change the font of text?
A
text-style B
font-family C
font-style D
text-font
Analysis & Theory
`font-family` sets the typeface for the element.
Which CSS rule is used to add space around the inside of an element?
A
margin B
spacing C
padding D
border
Analysis & Theory
`padding` adds space inside the element, between the content and the border.
Where in an HTML page should the `<style>` tag be placed?
A
Inside `<body>` B
At the end of the page C
Inside `<head>` D
After the footer
Analysis & Theory
Internal styles should be placed inside the `<head>` tag.
What is the default type of the `<style>` tag?
A
text/css B
css/text C
style/css D
application/css
Analysis & Theory
The default type for `<style>` is `text/css`, though it’s optional in modern HTML.