Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML font tag

  1. Aug 16, 2013 #1
    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
     
  2. jcsd
  3. Aug 16, 2013 #2

    DavidSnider

    User Avatar
    Gold Member

    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.
     
  4. Aug 17, 2013 #3
    I think the simplistic thing that you may be looking for is something like:

    <font size="6">E-MAIL THE ARTIST</font>
     
  5. Aug 17, 2013 #4
    The font tag has been deprecated. All styling should be done via CSS.
     
  6. Aug 17, 2013 #5
    <br> should also be <br />, to conform to XHTML.
     
  7. Aug 17, 2013 #6
    Only if you are using the XHTML doc type. HTML5 is gaining speed. :)
     
  8. Aug 17, 2013 #7
    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>
     
  9. Aug 17, 2013 #8
  10. Aug 18, 2013 #9

    DavidSnider

    User Avatar
    Gold Member

    Having inline styles on individual tags is not easily maintainable. It is highly suggested that you use an external stylesheet and learn CSS.
     
  11. Aug 18, 2013 #10
    You need to end your DIV tag and align center is not valid.
     
  12. Sep 2, 2013 #11

    harborsparrow

    User Avatar
    Gold Member

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

    OR

    <div style="font-size:6">some text in here</div>
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: HTML font tag
  1. HTML question (Replies: 4)

  2. HTML and font size (Replies: 3)

Loading...