+ 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
5 odpowiedzi
+ 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.
+ 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
}
+ 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.
+ 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>
+ 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