How do you put a list in the center with the numbers or bulet points with them. And is center a atribute or a tag???? If its a tag then is there a tag for an alignment right or left ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you put a list in the center with the numbers or bulet points with them. And is center a atribute or a tag???? If its a tag then is there a tag for an alignment right or left ?

So confused

15th Nov 2016, 1:06 AM
Vitor Flores
Vitor Flores - avatar
4 Answers
+ 2
One of solutions: <table align="center"> <tr> <td> <ol> <li> Item 1 </li> <li> Item 2 </li> <li> Item 3 </li> </ol> </td> </tr> </table> And <center> is a tag, not an attribute. There's no special tags for left or right alignment.
16th Nov 2016, 2:40 AM
Максим Астраускас
Максим Астраускас - avatar
+ 1
Its an attribute so its in a different area of the code. An attribute is a variable that you asign to a tag. The tag alone can work but for more specific outcome you add an attribute. Its like an extra thing you dont always need, like alignment. Now most attributes have values. Values are another variable that tell what specific move of that attribute to do. Alignment can have many different value like left right and center, but if you just say alignment the computer doesnt know which one to use and will default to left.
26th Nov 2016, 3:55 PM
Bailey
- 1
with padding
15th Nov 2016, 2:11 AM
Maurizio Urso
Maurizio Urso - avatar
- 1
<p align="center"> yout text </p>
15th Nov 2016, 10:57 AM
anne_german