Difference between Example 1 and Example 2
In Example 1, the styles for the body, h1, and p elements are defned inline, within
the head section of the HTML document This means that the styles are applied to
the elements directly, and they cannot be reused by other HTML documents
In Example 2, theystyles for the body, h1, and p elements are defined in an
external CSS file, which is linked to the HTML document using the link tag. This
means that the style can be reused by other HTML documents, and they can be
more easily maintained and updated
Comments
Post a Comment