The difference between <section> and <div>

Can anyone tell me what’s the difference between <div> and <section> elements? and what is better to use? because i was told to use <section> instead of <div>, is this right?

<section> is semantic, whereas <div> is not semantic. If you find it appropriate, you can use <section>, however, there are some circumstances where <div> is actually preferable-when you want to divide something, yet no semantic tag fits that description.

Here is a post where I answered a similar question:

Here is some other further reading.

Thanks a lot! :grinning:

1 Like