It is crucial to carefully inspect
the HTML elements
and
their structure within the document.
Make sure that all HTML elements
have proper opening and closing tags.
Let us look at an example:
In the above code, we can see
that the applied CSS properties
are not being reflected on the
h1
element.
When we examine the HTML elements
from start to finish we will
notice that the <img>
tag
is not closed properly.
This causes the CSS rules to
not apply properly on <h1>
tag.