Coder_SPS
Coder_SPS

Reputation: 22

Can you only use <nav> and <main> for div boxes?

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?

Upvotes: -1

Views: 46

Answers (1)

Danveer-K
Danveer-K

Reputation: 36

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!

Upvotes: 1

Related Questions