CSS Lists


  1. Which of the following property defines in a shorthand form the width, style, and color for all four sides of an element’s border?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    div {border: 2px double red;}


  1. Which of the following property defines labels for a list of items?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Syntax: list-style-type: disc | circle | square | decimal



  1. Which of the following property specifies whether the labels for an element’s list items are positioned inside or outside the “box” defined by the listed item?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Syntax: list-style-position: inside | outside | inherit


  1. Which of the following property assigns a graphic image to a list item?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Syntax: list-style-image: url(url of image) | none



  1. Which of the following property sets list-style-type, list-style-position, and liststyle-image?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Syntax: list-style: list-style-type | list-style-position | list-style-image