css list inline is not listing items horizontally?

后端 未结 5 1130
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 07:13

I don\'t know why this is not displayed right, the list is meant to display horizontally? Instead it is displaying vertically!

this is my code:

5条回答
  •  执笔经年
    2020-12-31 07:41

    h1 tags default as display:block; so that is taking precedence.


    Also, you have tags after closing the

    tags, but there are no opening tags. That could cause issues in older browsers.


    Third, what's the purpose of putting h1 tags inside of lis? Semantically, that doesn't make sense.

提交回复
热议问题