| What are the Nesting elements in HTML?
We can put elements inside other elements in HTML it is called netsing. To understand this we will take a example to highlight some word in particular statements as given below.
Welcome to crackyourinterview.com.
Here in above example crackyourinterview.com is bold. And rest of data in normal so "crackyourinterview.com" is in nested elements.
And syntax for Nesting elements is given below:-
And some points you need to take care that elements must have open and close correctly. If you overlap as per below syntax then web browser try to make best guess. And it can lead to unexpected results.
| | |