Can someone please check my understanding.
So I understand that inline elements can only have other inline elements nested inside them.
I understand that block elements can have inline or other block elements nested inside, e.g. <p> inside <blockquote> or <ul> inside the <p> for block and obviously an <img> inside a <p> for inline.
What about empty tags... E.g. Such as the <img> tag? I assume you can't have anything nested inside the tag?
Any other tags where no nesting is possible???
So I understand that inline elements can only have other inline elements nested inside them.
I understand that block elements can have inline or other block elements nested inside, e.g. <p> inside <blockquote> or <ul> inside the <p> for block and obviously an <img> inside a <p> for inline.
What about empty tags... E.g. Such as the <img> tag? I assume you can't have anything nested inside the tag?
Any other tags where no nesting is possible???
Comment