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

How do you select an element with id "demo"?

2

How do you select elements with the class name "test"?

3

How do you select all p elements inside a div element?

4

How do you, group selectors?

5

What is the default value of the position property?

Comments