0

What if I use <p> instead <ol> to make a list?

any difference between?

1st Feb 2017, 8:26 AM
prayoga
prayoga - avatar
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
1st Feb 2017, 8:32 AM
WittyBit
WittyBit - avatar
+ 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 ^^
1st Feb 2017, 8:54 AM
visph
visph - avatar