HTML Font Tag: How to Change Text Size and Style for Your Webpage

  • Context: HTML/CSS 
  • Thread starter Thread starter biferi
  • Start date Start date
  • Tags Tags
    Font Html Tag
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
10 replies · 3K views
biferi
Messages
191
Reaction score
0
When I make a webpage and I want my Text in my Link to be say Font Size 6 am I right I would do this

<font size="6">
<A HREF="form.html" TARGET="B">
<img src="mailbox.gif" width="16%">
<BR>
E-MAIL THE ARTIST
</A>
</font>

Thanks
 
on Phys.org
This is not a good way to do this. You should use CSS to style links.

a { font-size: 6 }

You should also use lowercase letters for your tags.
 
I think the simplistic thing that you may be looking for is something like:

<font size="6">E-MAIL THE ARTIST</font>
 
<br> should also be <br />, to conform to XHTML.
 
So if I want to make my text in my Link a Font size I do this

<DIV ALIGN="center">
<p style="font-family:Times New Roman;
font-size:16;">

<A HREF="form.html" TARGET="B">
<img src="mailbox.gif" width="16%">
<BR>
E-MAIL THE ARTIST
</A>
</p>
 
Having inline styles on individual tags is not easily maintainable. It is highly suggested that you use an external stylesheet and learn CSS.
 
<span style="font-size:6">some text in here</span>

OR

<div style="font-size:6">some text in here</div>