-2

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?

section vs aside

2

1 Answer 1

0

section and aside are two different types of semantic elements. While technically you're correct and we can make them both sections, 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.