QUESTIONS AND CORRECT ANSWERS
What is the CSS to center all <h1> headings using a width 80%? - Correct
answers✔✔h1{margin: auto; width:80%}
Which HTML tag is used to define an internal style sheet? - Correct answers✔✔<style>
How do insert a comment in CSS? - Correct answers✔✔/*this is a comment*/
Which property is used to change the background color? - Correct answers✔✔background-color:
What is the correct HTML for referring to an external style sheet? - Correct answers✔✔<link
rel="stylesheet" type="text/css" href="mystyle.css">
How do you add a background color to all <h1> elements? - Correct answers✔✔h1{background-
color:#FFFFFF}
What is the code to change the text color of an element? - Correct answers✔✔color:
Where in an HTML document is the correct place to refer to an external style sheet? - Correct
answers✔✔<head> section
What CSS property controls the text size? - Correct answers✔✔font-size:
, What is the correct CSS syntax for making all the <p> elements bold? - Correct
answers✔✔p{font-weight: bold}
What is the inline style to make an element centered? - Correct answers✔✔style="text-align:
center"
Choose the correct HTML tag for the largest heading. - Correct answers✔✔<h1>
What are the 3 ways to insert CSS into your HTML document? - Correct answers✔✔Internal,
External, Inline
What symbol has to start an ID tag in CSS? - Correct answers✔✔#
What does CSS stand for? - Correct answers✔✔Cascading Style Sheet
What symbol has to start a class tag in CSS? - Correct answers✔✔.(period)
What does HTML stand for? - Correct answers✔✔Hyper Text Markup Language
What is the tag for inserting a break line? - Correct answers✔✔<br>
What is the correct code to add red as the background color? - Correct answers✔✔<body
style="background-color: red">
What is the correct code for creating a hyperlink to a www.w3schools.com - Correct
answers✔✔<a href="http://www.w3schools.com">W3Schools</a>