New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Nesting refers to having elements within another element in html
For example:
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
As you can see there are elements within elements. h1 and p are inside body which is inside html,
https://www.lifewire.com/nesting-html-tags-3466475
https://www.w3schools.com/html/html_elements.asp