Results 1 to 4 of 4

Thread: html code for fonts and hyperlinks

  1. #1
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default html code for fonts and hyperlinks

    Hi all,

    I am almost blind when it comes to HTML, but want to learn some basics.

    To start, I'm wanting to add html to the Cross-browser marquee. I've been able to customize the <head> code to get what I want.

    Now I want to add the actual text to be scrolled. You can view how far I've got at Rebuild.

    But the code I used here was produced by a WYSIWYG and is messy.

    I want: font, font size, font colour...and also to be able to add a hyperlink.

    Many thanks,
    Mark.

    P.S. I originally posted my question in DD scripts, but feel it would be better to ask again here.

  2. #2
    Join Date
    Aug 2008
    Location
    New Delhi, India
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <marquee style="color:#f60; background-color:#009900;">Marquee Text</marquee>

    This is the marquee with orange color n green background color add this in your body tag.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    html tags are denoted with <>. Some have just one tag (like a return is <br>), and some have two parts, open and close tags: <html>[content here]</html>.
    Attributes are within those tags, like <font size="">, etc.
    The values of those attributes can be anything from numbers to specific words/terms used by certain tags, and you must memorize (or look up) exactly what you need.

    Specifically for your question:
    1. Above, the "style" attribute is a good one to learn. It basically adds CSS properties to any element (an element is a part of the page, usually denoted by a tag).
    So above you could have a separate stylesheet (with the visual style/settings of the page, like colors, sizes, etc.), or you can just include it in the tag. It's usually best to have a separate file for things that appear many places on the page (it saves you work), or include it in the tag only for very specific/unique parts of the page.
    Using "style" you can use google and search for something like "font color css" and you can find "color:" as the CSS property to use.
    2. Hyperlinks are "a" tags: <a href="URL">TEXT</a>, and replace URL with where you want it to go and TEXT with what you want to see on the page.


    You should get a basic how-to book for html (if you like reference books) or just find some tutorials you like on google. There are lots out there and html is VERY simple to understand almost entirely, within only a couple days. It will take much longer to memorize all of the tags, properties and methods used to make pages work, but the basic ideas are actually summarized in what I just wrote-- tags, properties, and that's about it. Now it's just time to start learning which tags to use when.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Oct 2009
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default

    take a look at: http://www.w3schools.com/ for learning the basics on Html and other programming languages!!

    also this site will help you: http://www.goldcoastwebdesigns.com/15.shtml

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •