View Full Version : html code for fonts and hyperlinks
10-06-2009, 03:26 PM
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 (http://www.rebuildministry.org.uk/rb7).
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.
P.S. I originally posted my question in DD scripts, but feel it would be better to ask again here.
10-12-2009, 12:01 PM
<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.
10-12-2009, 10:45 PM
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.
10-22-2009, 12:18 PM
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
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.