Should i use list element in a nav for a number of links?

Tell us what’s happening:
hi all

Is it a good routine to use list element in nav to list links? Or is it enough to just add links and style them the way we want?

thanks in advance

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36.

Challenge: Build a Product Landing Page

Link to the challenge:

It really depends on you, I used only links inside a nav container. Sometimes using the <li> tag can be useful, but I haven’t found any use in it yet.

There’s still a huge debate about using list or listless in a nav. I suggest to read by yourself this good article by Chris on css-trick.

1 Like

Thanks for the article :smiley:

using li is usfeul in what way?
how did you include in element in the post. when ever i write the tag it give me a point instead of li

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.

markdown_Forums

1 Like

Thanks for the info :smiley: