The “list-style-type: square” is used to configure an unordered list element with a square list marker.
Hence, the correct answer is option “B”.
Explanation of Solution
Unordered list:
The HTML tag <ul> defines an unordered list. The <li> tag is used to create unordered lists within the <ul> tag.
Unordered list markers using CSS:
The default display for an unordered list is “bullet” and it will display in front of each list item; but using CSS, the markers of an unordered list can be configured using “list-style-type” property.
- One of the properties of CSS list marker is “list-style-type: square”. It is used to configure an unordered list element with a square list marker.
Consider the following example CSS code for making square list marker as follows:
ul { list-style-type: square; }/*making unordered square list marker*/
Explanation for incorrect options:
a)
list-bullet: none;
The “list-bullet: none;” is not a property for CSS unordered list marker, used to configure a square list marker.
Hence, the option “A” is wrong.
b)
list-style-image: square;
The “list-style-image: square;” property is used to configure an image in front of each list item and it required image url using url keyword.
Hence, the option “C” is wrong.
c)
list-marker: square;
The “list-marker: square;” is not a property for CSS unordered list marker to configure a square list marker.
Hence, the option “D” is wrong.
Want to see more full solutions like this?
Chapter 5 Solutions
Basics of Web Design: HTML5 & CSS3 (3rd Edition)
- What does the following error message normally mean? IndexError: list index out of range Select one: а. This error normally indicates that you have tried to access an element of a list that doesn't exist. O b. This error normally means that you have used the range() function incorrectly. С. This error normally means that you have used a list where you should have used a tuple. d. This error normally means that you used too many lines of code in your program.arrow_forwardNames = ['Molly', 'Lan', 'Rudy', 'Eliza'] Wage = [15.30, 19.34, 11.78, 13.23] HireDate = ['09-08-2013', '04-12-2011', '02-09-2018', '10-06-2020'] Convert the HireDate to Date/Time data type using list comprehension Zip the lists Names, Wage and the HireDate that was converted to date/time data type Suppose that raise for next year is 5% for those who have completed at least 5 years of employment by the end of 2023 and 2.5% otherwise. Iterate over the zipped objectarrow_forwardAdd courses to the cart: Customer will only be able to add a course if the title is in the master’s list.Once added, the course name and its price need to be added to a shopping cart list, the information -title and price - needs to be separated (as in master list) by any delimiter of your choice (like: colon,space, dash etc). Customer should be able to view the shopping cart list after adding a course. Delete a course from cart: Customer will enter the name of the course and the program will lookfor the course in the shopping cart list to be deleted from. View the shopping cart list after deletion. Check out course: Customer should be able to view the list of the courses and their individualprice that are being selected by the user, then view the total price of all the courses in theshopping cart. Again, you need to use a for loop to iterate over the shopping list, separate the titleand price and view the information as shown in sample I/O. Directly printing the list will…arrow_forward
- def delete_item(...): """ param: info_list - a list from which to remove an item param: idx (str) - a string that is expected to contain an integer index of an item in the in_list param: start_idx (int) - an expected starting value for idx (default is 0); gets subtracted from idx for 0-based indexing The function first checks if info_list is empty. The function then calls is_valid_index() to verify that the provided index idx is a valid positive index that can access an element from info_list. On success, the function saves the item from info_list and returns it after it is deleted from info_list. returns: If info_list is empty, return 0. If is_valid_index() returns False, return -1. Otherwise, on success, the function returns the element that was just removed from info_list. Helper functions: - is_valid_index() """arrow_forwardWhich class is used to create a basic list group? .group-list .list-group .grouped-listarrow_forwardPOEM_LINE = str POEM = List[POEM_LINE] PHONEMES = Tuple[str] PRONUNCIATION_DICT = Dict[str, PHONEMES] def all_lines_rhyme(poem_lines: POEM, lines_to_check: List[int], word_to_phonemes: PRONUNCIATION_DICT) -> bool: """Return True if and only if the lines from poem_lines with index in lines_to_check all rhyme, according to word_to_phonemes. Precondition: lines_to_check != [] >>> poem_lines = ['The mouse', 'in my house', 'electric.'] >>> lines_to_check = [0, 1] >>> word_to_phonemes = {'THE': ('DH', 'AH0'), ... 'MOUSE': ('M', 'AW1', 'S'), ... 'IN': ('IH0', 'N'), ... 'MY': ('M', 'AY1'), ... 'HOUSE': ('HH', 'AW1', 'S'), ... 'ELECTRIC': ('IH0', 'L', 'EH1', 'K', ... 'T', 'R', 'IH0', 'K')} >>> all_lines_rhyme(poem_lines, lines_to_check, word_to_phonemes) True…arrow_forward
- Write one line of code for each of the following: 1) Create a list named fruits with the following items:'apple', 'cherry', 'pear' 2) Add "orange" at the end of the fruits list. 3) Change the value from "cherry" to "banana", in the fruits list. 4) Use the insert method to add "lemon" as the third item in the fruits list. 5) Use a range of indexes to print the third, fourth, and fifth items in the fruits list. 6) Use the del method to remove "banana" from the fruits list. 7) Use negative indexing to print 'pear' in the fruits lisarrow_forwardWhich of the following assignment statements creates a list with 4 Integer elements? Click on the Correct Response A) my list=[7, 2, -8, 16] B) my_list = integer(4) C) my_list = [4] D) my_list = ['1', '2', '3', '4']arrow_forwardPython program that completes the following steps: 1. Create a list named fruits containing the following elements: “Apple”, “Banana”, “Cherry”, “Date”, “Elderberry”. 2. Print the list. 3. Convert the fruits list to a tuple named fruits_tuple. 4. Print the tuple. 5. Convert the fruits list to a set named fruits_set. 6. Print the set. 7. Convert the fruits list to a dictionary named fruits_dict that contains the fruits as keys and their lengths as values: a. Lengths being the size of the word (key) - Apple is 5, Banana is 6, but these should not be hardcoded values, you need to use the len() function to gather the length of the key. 8. Print the dictionary. 9. Add “Fig” and “Grape” to the fruits list. 10. Remove “Date” from the fruits list. 11. Print the updated list. 12. Update fruits_dict to reflect the changes made to the fruits list. 13. Print the updated dictionary.arrow_forward
- Assignment: Change the styles of ordered list and unordered listarrow_forwardhelp with python code import time timeStamp = time.ctime()print(timeStamp)forum_list = [ {'date':'10-01-2022', 'name':'Student1', 'comment':'Very helpful'}, {'date': '10-01-2022', 'name': 'Student2', 'comment': 'Very good'} ] menu = """ Forum Comments 0: Exit 1: Display Comments 2: Add Comment """ done = False while not done: print(menu) selection = input('Please make a selection: ') if selection == "0": done = True print('Exiting now, thank you for participating') if selection == "1": for d in forum_list: print(d['date'], end='') print(' ', end='') print(d['name']) print(d['comment']) if selection == "2": comment = {} comment['date'] = input('Please enter date: ') comment['name'] = input('Please enter name: ') comment['comment'] = input('Please enter comment: ') forum_list.append(comment) # what's inside the data.txt file #Date Name…arrow_forwardCreate a function called find_big_words . The function should accept a list as a parameter. Parts of the program which you are not coding will call the function and past it lists of words. The function must analyze the words in the list and return all the words which are 6 or more characters long. The returned list should be in alphabetical order. NB: Only write the function. Do not call it. For example: Test Result random_words1 = find_big_words(["nation", "night", "news", "negotiation", "newspaper", "nature"]) print(random_words1) ['negotiation', 'newspaper'] random_words3 = find_big_words(["examination","test", "testing", "quiz", "exam", "assessment"]) print(random_words3) ['assessment', 'examination', 'testing']arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education