0
What if I use <p> instead <ol> to make a list?
any difference between?
2 ответов
+ 7
p stands for paragraph.
Ol (list with numbers) will have special styles also(Like dots)
Also ut will allow you to use inner list, when with p you will need to add spacing manually
+ 3
Visually, you can style <p> for rendering as <ol> ( <ul> and <li> ), like you can style any element to visually become same...
The difference is in semantic meaning of content, and has importance to be correctly interpreted by browsers, bots ( essentially search engines bots ) to be correctly describe for disabled persons ( blind people, and so on ) and good ranking in indexation ^^