New course! Every coder should learn Generative AI!
Try a free lesson0
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
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.
+ 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.
- 1
with padding
- 1
<p align="center">
yout text
</p>