Which HTML attribute is used to apply inline styles?
A
style B
class C
css D
font
Analysis & Theory
`style` is used to apply inline CSS styles to HTML elements.
Which property is used in CSS to change the background color?
A
bgcolor B
color C
background-color D
bg-color
Analysis & Theory
`background-color` is the correct CSS property to change background color.
How can you make text bold using inline styles?
A
style='font-weight:bold;' B
style='font:bold;' C
style='text:bold;' D
style='bold=true;'
Analysis & Theory
`font-weight:bold;` is the correct CSS for bold text.
Which CSS property is used to change text color?
A
color B
text-color C
font-color D
text
Analysis & Theory
`color` is used in CSS to set the color of text.
What is the correct syntax to center-align text in HTML using style?
A
style='align:center;' B
style='text-align:center;' C
style='text:center;' D
style='center:true;'
Analysis & Theory
`text-align:center;` centers the text inside an element.
How do you change the font size of text using inline CSS?
A
style='text-size:20px;' B
style='font-size:20px;' C
style='size:20px;' D
style='text:20px;'
Analysis & Theory
`font-size` is the correct CSS property for setting text size.
Which tag is used to define internal CSS styles?
A
<style> B
<css> C
<script> D
<link>
Analysis & Theory
`<style>` is used in the `<head>` to define internal CSS styles.
Where should you place the `<style>` tag for internal CSS?
A
Inside `<body>` B
Inside `<footer>` C
Inside `<head>` D
Anywhere in HTML
Analysis & Theory
Internal styles should be placed inside the `<head>` section.
Which tag is used to link an external CSS file to HTML?
A
<link> B
<style> C
<script> D
<css>
Analysis & Theory
`<link>` is used to link external CSS files in the `<head>`.
Which HTML attribute is used to assign a class for styling?
A
id B
style C
class D
css
Analysis & Theory
`class` is used to assign a class name that can be styled using CSS.