I was browsing related issues for my question but I can’t seem to find the answer for it. Anyways, I want to know if I can still use the p or div tags instead of header tags when I have already used both (p and div tags) as plain text on my site. The reason is that I only want to have one header tag h1 present in my site. I tried to tweak some parts and got lost along the way. Sadly, after a couple of testing, it did not work… I was wondering if it’s possible or if there’s any other HTML tag that I can use other than header tag. Any response from you guys will be very much appreciated. =)
Share
You can make a
<p>look however you like, for example:with
but I would recommend against it. The reason is that HTML is (ostensibly) semantic so if you declare:
you’re actually saying (semantically) that the given text is a heading of some sort. Remember you have
<h1>through<h6>and you can pick and choose which of them you use. There is no need to use<h1>to use<h2>and so on.This is also useful for those visually impaired as something styled as a heading won’t be indicated as such to those using screen readers but a heading will be. You should cater for accessibility issues where possible.