+ 1

Hi im new on html and would like to know if creating lists with <p>tag in html is faster than using the list tag.

Html

29th Nov 2019, 2:43 PM
Dtrexx
5 Respostas
+ 2
Compiling a list from the <p> tag will be faster, but on the output it will not look like a list, and the functionality will be limited, there are no slots, bullets, no nested lists.
29th Nov 2019, 2:47 PM
Anna/Аня
Anna/Аня - avatar
+ 2
Well, if you wanna do something like that (create lists with <p> Tag), you must think about creating some custom tags (classes)/ids for doing that. For instance, <div class="list"> <p>First item</p> <p>Second item</p> </div> Of course, in <style> Tag you must define: .list { some rules }
29th Nov 2019, 3:27 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 2
And I agree with Anna/Аня about compiling time and simplicity by using <ol></ol> (ordered list) and <ul></ul> (unordered list) because <ol>/<ul> are "predefined" Tags from HTML/CSS interpreter.
29th Nov 2019, 3:30 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
In other words: For ordered list: <ol> <li>first num</li> <li>second num</li> </ol> or for unordered: <ul> <li> first item</li> <li>second item</li> </ul>
29th Nov 2019, 3:37 PM
Aleksandar Nedeljkovic
Aleksandar Nedeljkovic - avatar
+ 1
I should say that you should not measure the speed by tags used. Generally, they take very less time for the manipulation purpose. What you should consider is media files because that contributes heavily for your sites speed
29th Nov 2019, 4:19 PM
Seniru
Seniru - avatar