Thursday, September 22, 2011

How come i cant change my font size on html?

I tried to make my font size 7 but the maximum i can do is 4 because if i try a bigger font size my text disappears and becomes a dot..How come i cant change my font size on html?
Your answer lies in CSS not HTML. The %26lt;font%26gt; tag has been deprecated. In other words, ditched by the W3C as a viable standard in HTML 4. Most browsers still account for the font tag, but any range of behaviors can occur.



So, instead of %26lt;font size=';7';%26gt;Text%26lt;/font%26gt;



use...



%26lt;span style=';font-size: 20px;';%26gt;Text%26lt;/span%26gt;

or

%26lt;span style=';font-size: 1.2em;';%26gt;Text%26lt;/span%26gt;

or

%26lt;span style=';font-size: 15pt;';%26gt;Text%26lt;/span%26gt;

No comments:

Post a Comment