We are used to having buttons or other widgets that format text for us. However, in an HTML document all the red crazy font you try to add to the page will do nothing. This is where the sweet spot comes in. In an H1 tag, as with all text tags there is a spot between the element name and greater than sign that allows you to format your plain text into all sorts of text variations. Below is a graphic representation of this spot as denoted by the word sweet.
hello
Of course if you copied and pasted that code with sweet in the code nothing would happen. However, this sweet spot can change everything about a line of text. The most commonly used formatting used is to denote text alignment. There are four options that can be used; right align, left align, centered or justified. You may be familiar with these alignment terms from using a Microsoft word type word processor. In order to align text we must use the align code. The align code is expressed like this...
hello
To properly align the text you would replace the xxx with the words "left, right, center or justify." this code works with all heading tags and paragraph text.
The next most popular formatting tool used in web design is font type. There are several ways you can change the font in a line of text. For this article I will only go over the basic style tag within the text tag itself. That may not have made any sense, but I promise you It will soon enough. First I will go over the style element of a text tag. To add any styling to a text tag you would add it into the tag's sweet spot as shown below...
Hello
All text styling will go where the xxx is. In this case we would add the style element for font. You must make sure that the entire element is within the quotation marks or your site will have errors. Suppose you wanted the "Hello" text to be times new roman font. The tag would be written as shown below...
Hello
You can find a list of safe font names to use within the font element by clicking here.
Published by victor rodriguez
Hello everyone. I am the owner and Designing Manager of Victory Web Productions. I live in Guilderland, NY and am a father of a beautiful baby girl, Amy.I guess this is where I tell you a little about my h... View profile
- Basic HTML for Message Board Users Basic HTML to improve your message board posts.
-
Intro to Web Design: What is Web Design?
A web designer is a person who is knowledgeable in the art of designing web sites. This article is an introduction to the art of web design
- How to Make Money Online: the Right Way Here is the REAL way to make money online.
- Careers with a Web Design Degree A simple guide to options for those considering a career in web design.
- Web Design Elements You Should Avoid Having on Your Site This is simply advice on web design and things to avoid on your site in order to more productive.
- HTML Basics: Learn to Code in 15 Minutes
- Basic HTML Codes
- Font Styles: Times New Roman 12 Pt
- MySpace HTML Tutorial Formatting
- Html Tutorial - Images
- Learn What You Need to Know About HTML and CSS with FREE Online Interactive Guides
- Your Own Code to Enlarge and Reduce HTML Images
|
|
- Hackers intercept FBI, Scotland Yard call (AP)
- EU probes new Google privacy policy (AP)
- HP awards new CEO Whitman with $16.5M pay package (AP)
- Facebook Timeline feature unpopular, especially among Baby Boomers (Yahoo! News)
- Super Bowl bust: U.S. government seizes 307 domains for violating NFL copyrights (Yahoo! News)