what is the difference between em vs rem and section vs div
Em vs rem and section vs div
em is used to relative font size of parent element and rem is used in relative font sizing of HTML root tag.
In the HTML5 standard, the <section> element is defined as a block of related elements.
The <div> element is defined as a block of children elements.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
what are the related elements??
Their parent or child elements for exaple in this:
> <div><h1>Hey</h1></div>
H1 is related to div and vice-versa
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.