I saw this code in a web program where it is written as –
<h4 class="h5 text-muted mt-3"> File </h4>
I don’t understand that why 2 headings are applied to the text word ‘File’ above? If the styles of class are overwriting the style of , then why use the author used the ‘H4’ in the first place?
I tried the following code instead & got the same result as above:
<h5 class="text-muted mt-3"> File </h5>
That is why my question is- why not directly use the ‘h5’ tag instead of the earlier method of using h5 class inside h4 tag??
If someone can throw some light on these, I’ll be grateful..
user23050758 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1