h1 tag | Sololearn: Learn to code for FREE!


h1 tag

Can we use font size attribute to resize h1?

2/18/2017 1:45:14 PM

Sam Malekahmadi

3 Answers

New Answer


actualy using font size attribute to resize h1-h6 is not recomment


yes you can


You can set 'font-size' CSS property for <h1> elements... If you talk about 'attribute', you make confusion with the HTML tag attributes, which are to avoid since you can use CSS to replace them ( almost all style related attributes in html tags are deprecated in Html5, except the 'style' inlined rules declaration, but is to avoid at production and reserve to JS use and devellopment testing purposes ).