>

前端 未结 4 1602
挽巷
挽巷 2020-12-04 01:27

I am writing an introductory HTML course. I remember discovering 9 years ago as I was learning HTML that both and worked

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 01:50

    Indeed. Modern browsers will display code that is not valid in order to make sure that old websites still display correctly and slightly-invalid code doesn't screw up a page.

    For example, forgetting to close a before you open a new one - all modern browsers will simply assume you closed it.

    I'm not aware of a well-used, up-to-date browser that will fail to display an tag, but will display an tag.

提交回复
热议问题