CSS Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - CSS

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?


 

 

 

 



A


Solution:-

The width of an element's four borders sets the border-width property. This property can contain from one to four values.

<style>
   border-width: medium thin 5px thick;
</style>

The top border is medium.
The right border is thin.
The bottom border is 5px.
The left border is thick.

Another example is border-width:10px 1px 5px 20px;




Next 5 multiple choice(s)

1

How do you make the text bold?

2

Which property is used to change the font of an element?

3

How do you make each word in a text start with a capital letter?

4

How do you display hyperlinks without an underline?

5

What are the correct CSS syntax for making all the <p> elements bold?

Comments