WEB DEVELOPMENT FINAL EXAM
QUESTIONS WITH VERIFIED
ANSWERS. A+ GRADE 2025/2026.
What is the CSS to center all <h1> headings using a width 80%? - ANS h1{margin: auto;
width:80%}
Which HTML tag is used to define an internal style sheet? - ANS <style>
How do insert a comment in CSS? - ANS /*this is a comment*/
Which property is used to change the background color? - ANS background-color:
What is the correct HTML for referring to an external style sheet? - ANS <link
rel="stylesheet" type="text/css" href="mystyle.css">
How do you add a background color to all <h1> elements? - ANS h1{background-
color:#FFFFFF}
What is the code to change the text color of an element? - ANS color:
Where in an HTML document is the correct place to refer to an external style sheet? -
ANS <head> section
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED
QUESTIONS WITH VERIFIED
ANSWERS. A+ GRADE 2025/2026.
What is the CSS to center all <h1> headings using a width 80%? - ANS h1{margin: auto;
width:80%}
Which HTML tag is used to define an internal style sheet? - ANS <style>
How do insert a comment in CSS? - ANS /*this is a comment*/
Which property is used to change the background color? - ANS background-color:
What is the correct HTML for referring to an external style sheet? - ANS <link
rel="stylesheet" type="text/css" href="mystyle.css">
How do you add a background color to all <h1> elements? - ANS h1{background-
color:#FFFFFF}
What is the code to change the text color of an element? - ANS color:
Where in an HTML document is the correct place to refer to an external style sheet? -
ANS <head> section
1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED