英文:
Can you only use <nav> and <main> for div boxes?
问题
我想知道您是否可以在HTML中使用其他标签来创建div框,或者只能使用div、main和nav而不使用class标签?
我期望不只有一个,但以防万一,我想知道是否可以不使用class来创建div框?
英文:
I'd like to know if you can use other tags to make div boxes in html, or you can only use div, main, and nav without using the class tag?
I'm expecting there not to be one, but just in case, I was wondering if I could make div boxes without using class?
答案1
得分: 1
尽管它不会是一个
- section(部分)
- header(页头)
- footer(页脚)
- aside(侧边栏)
- article(文章)
- code(代码)
- blockquote(引用块)
列表还可以继续,但如果你希望你的HTML文件易于被其他人阅读,某些元素用于HTML的特定区域。如果你想要了解更多信息,W3 School 和 freeCodeCamp 是了解不同元素以及HTML结构方式的很好资源。
希望我能够帮助你,愿你在学习和创作过程中玩得开心!
英文:
Although it won't be a div you can create boxes with other elements. Here is a very short list of other elements in html you can use:
- section
- header
- footer
- aside
- article
- code
- blockquote
The list goes on but if you would like your html file to be easily readable by others certain elements are used for certain areas of your html. If you would like to learn more W3 School and freeCodeCamp are great resources to find out more about different elements and learn the way in which your html can be structured.
Hope I was able to help and have fun learning & creating!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论