For structural/SEO purposes, I wish to insert <h1> and <h2> tags in my home page at www.vintagetextile.com However, I want to retain the same (or as close as possible) styling currently used for the 2 elements that will now have header tags around them. At the upper left of the home page ":High Style Vintage Clothing & 18th Century Costume" is currently styled by:
I get a totally different, unwanted look. How can I do the CSS rule to get as close as possible to the current styling but using an <h1> instead of <div> tag?
I have the same question for the Search element down a bit on the page, where the code is:
<h1> and <h2>tags in my home page at www.vintagetextile.com However, I want to retain the same (or as close as possible) styling currently used for the 2 elements that will now have header tags around them.At the upper left of the home page ":High Style Vintage Clothing & 18th Century Costume" is currently styled by:
As you can see from the Page Source, the code is:
After changing the code to reference the new rule, when I try
I get a totally different, unwanted look. How can I do the CSS rule to get as close as possible to the current styling but using an
<h1>instead of<div>tag?I have the same question for the Search element down a bit on the page, where the code is:
and the relevant styles:
Thanks in advance to you experts!
Needs to change to:
Note that the paragraph tag is also gone.
Since h1 elements are actually displayed as block elements, they can be styled exactly the same as a div, so your CSS should work just fine.
tags to the new header tag.