HTML Tutorial

 

MORE ON TAGS

The CENTER tag and DIV tag…
The center tag pretty much explains itself! The opening center tag is <center> and the closing center tag is </center>. Whatever you put between will be centered on the current line! Your site will look better when using this tag because if your site will operate on other resolutions your site will still be placed on center. One thing more, there’s a JavaScript that varies among resolutions, it’s the auto-resizing. I am thinking of placing the source at the Open source code Section, you can check the section later.
Example of CENTER tag…

Center Works!!!

<center><h1>Center Works!!!</h1></center>

Note: Recently, the W3C (the group that decides on HTML standards) has recommended that when writing HTML, you use <div align="center">centered text</div> instead of the center tag. Although div does not work in many older web browsers, it works in virtually all recent versions of popular web browsers. The neat thing about div is that you can align both left and right in addition to center.

 
The BODY attributes…
In Chapter 1 you learned the BODY tag. The BODY tag has many attributes… here are the most useful ones…

  • BACKGROUND="location_of_image" – Background image for web page. Example: If you have smile.jpg in the same directory as your HTML file, use <body background="smile.jpg"> to load it as your background image.
  • BGCOLOR="#hexadecimal_here" – Hexadecimal Color Code for Background Color
  • LINK="#hexadecimal_here" – Hexadecimal Color Code for Links (if left blank, most browsers default to blue.)
  • VLINK="#hexadecimal_here" – Hexadecimal Color Code for Links the User has Already Visited (if left blank, most browsers default to purple.)
  • TEXT="#hexadecimal_here" – Hexadecimal Color Code for Text Color

If you are looking for special effects such as links without an underline, or links that change color when you move the mouse over them, you need to use CSS (Cascading Style Sheets) with your HTML code.

 

Red Green Blue
#FF0000 #00FF00 #0000FF

 

 

Click topic to view:

Getting Started

Working on Tags

Working on Headings

Working on Paragraphs

Working on Links and Images

More on Tags

Clean Code, Escape Codes and Comments

Working on Lists

Fonts and Colors

Tables

Adding Sounds

Frames

Meta Tags

 

 

Comments are closed.