FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If you want your list to have numbers, what tags should be above and under your list?
A
<ul> and </ul>
B
<ol> and </ol>
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Ordered List or Numbered List (ol) In HTML, all the list items in an ordered list are marked with numbers by default instead of bullets. An HTML ordered list starts with the <ol> tag and ends with the </ol> tag. The list items start with the <li> tag and end with </li> tag.

Detailed explanation-2: -The HTML <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.

Detailed explanation-3: -Using HTML, you can create two kinds of lists unordered list and ordered list. An ordered list is marked with the numbers by default. You can create an ordered list using the <ol></ol> tag and, define the list items using <li></li>. type="1"− This creates a numbered list starting from 1.

Detailed explanation-4: -The default list-style-type value for an ordered list is decimal, whereas the default for an unordered list is disc .

Detailed explanation-5: -type="I"− This creates a list numbered with uppercase roman numbers starting from I. type="i"− This creates a list numbered with lowercase roman numbers starting from i.

There is 1 question to complete.