What is the meaning of giving css “width:30%” to tag? We can keep tag instead of and we can also give same css to that tag. What is the different in between this two things?
1 Answer
section
and aside
are two different types of semantic elements. While technically you're correct and we can make them both section
s, an aside
element would indicate content more like a sidebar or inset, rather than another primary story in the page. Think of a magazine article with a pull quote or a feature sidebar, rather than a page that has two full articles on it.
There's no functional difference in the code itself, since both section
and aside
function identically to div
. This is for accessibility and semantic organization.