100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

W3Schools CSS Questions and Answers

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
24-11-2024
Written in
2024/2025

W3Schools CSS Questions and Answers What does CSS stand for? Cascading Style Sheets Computer Style Sheets Creative Style Sheets Colorful Style Sheets Cascading Style Sheets What is the correct HTML for referring to an external style sheet? <stylesheet></stylesheet> <link rel="stylesheet" type="text/css" href=""> <style src=""> <link rel="stylesheet" type="text/css" Where in an HTML document is the correct place to refer to an external style sheet? At the end of the document In the <body> section In the <head> section In the <head> section Which HTML tag is used to define an internal style sheet? <script> <css> <style> <style> Which HTML attribute is used to define inline styles? font style class styles style Which is the correct CSS syntax? body {color: black;} {body;color:black;} {body:color=black;} body:color=black; body {color: black;} How do you insert a comment in a CSS file? ' this is a comment // this is a comment / this is a comment / // this is a comment // / this is a comment / Which property is used to change the background color? background-color color bgcolor background-color How do you add a background color for all <h1> elements? h1 {background-color:#FFFFFF;} all.h1 {background-color:#FFFFFF;} {background-color:#FFFFFF;} h1 {background-color:#FFFFFF;} Which CSS property is used to change the text color of an element? text-color fgcolor color color Which CSS property controls the text size? font-size font-style text-style text-size font-size What is the correct CSS syntax for making all the <p> elements bold? p {text-size:bold;} <p style="text-size:bold;"> p {font-weight:bold;} <p style="font-size:bold;"> p {font-weight:bold;} How do you display hyperlinks without an underline? a {decoration:no-underline;} a {underline:none;} a {text-decoration:no-underline;} a {text-decoration:none;} a {text-decoration:none;} How do you make each word in a text start with a capital letter? text-transform:capitalize You can't do that with CSS text-transform:uppercase text-transform:capitalize Which property is used to change the font of an element? Both font-family and font can be used font font-family Both font-family and font can be used How do you make the text bold? style:bold; font:bold; font-weight:bold; font-weight:bold; How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? border-width:10px 1px 5px 20px; border-width:5px 20px 10px 1px; border-width:10px 20px 5px 1px; border-width:10px 5px 20px 1px; border-width:10px 1px 5px 20px;

Show more Read less
Institution
PCSS
Course
PCSS








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
PCSS
Course
PCSS

Document information

Uploaded on
November 24, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

W3Schools CSS Questions and Answers
What does CSS stand for?

Cascading Style Sheets
Computer Style Sheets
Creative Style Sheets
Colorful Style Sheets - answer Cascading Style Sheets

What is the correct HTML for referring to an external style sheet?

<stylesheet>mystyle.css</stylesheet>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<style src="mystyle.css"> - answer <link rel="stylesheet" type="text/css"

Where in an HTML document is the correct place to refer to an external style sheet?

At the end of the document
In the <body> section
In the <head> section - answer In the <head> section

Which HTML tag is used to define an internal style sheet?

<script>
<css>
<style> - answer <style>

Which HTML attribute is used to define inline styles?

font
style
class
styles - answer style

Which is the correct CSS syntax?

body {color: black;}
{body;color:black;}
{body:color=black;}
body:color=black; - answer body {color: black;}

How do you insert a comment in a CSS file?

' this is a comment

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Pogba119 Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
48
Member since
1 year
Number of followers
2
Documents
4863
Last sold
3 weeks ago
NURSING TEST

BEST EDUCATIONAL RESOURCES FOR STUDENTS

3.9

9 reviews

5
4
4
2
3
2
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions