CSS Multiple choices


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

How do you make a list that lists its items with squares?


 

 

 

 



C


Solution:-

To create an unordered list with square bullets in HTML as follows:-

Use the <ul> tag to create unordered list in HTML. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which are small black circles.

For creating an unordered list with circle bullets, use CSS property list-style-type. We will be using the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <ul> tag, with the CSS property list-style-type to add square bullets to an unordered list. 

Just keep in mind, the usage of style attribute overrides any style set globally. It will override any external style sheet or style set in the HTML <style> tag.

Example:-
To create an unordered list with square bullets in HTML You can implement and run the following code and check −

<!DOCTYPE html>
<html>
 <head>
   <title>SlightBook Unordred List</title>
 </head>
 <body>
   <h1>Developed Courses</h1>
   <p>The list of developed Courses :</p>
   <ul style="list-style-type:square">
    <li>HTML</li>
    <li>CSS</li>
    <li>Java Script</li>
   </ul>
 </body>
</html>

 




Next 5 multiple choice(s)

1

When using the padding property; are you allowed to use negative values?

2

Which property is used to change the left margin of an element?

3

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?

4

How do you make the text bold?

5

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

Comments