Which tag will you use to add style on your website?
Ans:
<css></css>
<color></color>
<style></style>
<head></head>
Question No : 3
How will you add blue color to all paragraph tags?Hint: write four parts of a style rule
Ans:
p{ blue: color }
p{ color = blue }
p{ color : blue; }
p{ text: “blue”; }
Question No : 4
How would you set a purple background color to an element?
Ans:
color:purple;
background color:purple;
background-color:purple;
backgroundColor:purple;
Question No : 5
How to set the width of all paragraph tags as half of the available width? Hint: think about the total width as a percent and then think about the half of the width
Ans:
p{ width: 1/2 }
p{ width: 50%; }
p{ width: 0.5; }
p{ width: half; }
Question No : 6
Which one is not true?
Ans:
The value of multiple ID attributes has to be unique
Use ID to style a specific HTML element
Same ID should be used in different HTML tags
Question No : 7
How can we add multiple classes to an HTML element?