只能使用

huangapple go评论60阅读模式
英文:

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

尽管它不会是一个

,但你可以使用其他元素来创建框。这里是一份HTML中可以使用的其他元素的非常简短的列表:

  • section(部分)
  • header(页头)
  • footer(页脚)
  • aside(侧边栏)
  • article(文章)
  • code(代码)
  • blockquote(引用块)

列表还可以继续,但如果你希望你的HTML文件易于被其他人阅读,某些元素用于HTML的特定区域。如果你想要了解更多信息,W3 SchoolfreeCodeCamp 是了解不同元素以及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!

huangapple
  • 本文由 发表于 2023年7月20日 09:14:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76726092.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定