Go Back   Aioforum > Aio Forums Zone > Tutorial Section > Programming > HTML Tips and Tricks


Your Ad Here

Donation Goal
Goal amount for this month: 600 USD, Received: 92 USD (15%)
Donation Will Be Used To Pay for our hosting Service, software licensing fees, and maintenance Costs Only! - Annoying Pop-ups removed from Aioforum..Glad you will help now!

Post New Thread Reply
 
Share LinkBack Thread Tools Display Modes
Old 01-03-2008, 04:44 PM #1 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

Post Notes for HTML

Here is index
HTML Basic

HTML Advanced

  • HTML Layout
  • HTML Fonts
  • HTML 4.0 Why
  • HTML Styles
  • HTML Head
  • HTML Meta
  • HTML URLs
  • HTML Scripts
  • HTML Attributes
  • HTML Events
  • HTML URL-encode
  • HTML Webserver
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following 14 Users Say Thank You to KoOL For This Useful Post::
atulfunky (05-11-2008), chelluchan (06-03-2009), Eenoog (05-09-2008), gini (10-19-2008), lehra_rock (04-02-2008), mariacanet (01-22-2008), max123 (07-15-2008), rajeevaga (07-10-2008), rasta44 (01-24-2009), rrvn6681 (01-22-2008), sakina (02-12-2009), sancez34 (06-02-2008), SPEED001 (01-26-2008), ykjh213 (05-15-2009)
Click here to Donate to remove the Advertisments.
Old 01-03-2008, 04:48 PM #2 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

Introduction to HTML

What is an HTML File?
HTML stands for Hyper Text Markup Language
An HTML file is a text file containing small markup tags
The markup tags tell the Web browser how to display the page
An HTML file must have an htm or html file extension
An HTML file can be created using a simple text editor
-------------------------------------------------------------

Do You Want to Try It?


If you are running Windows, start Notepad.

If you are on a Mac, start SimpleText.

In OSX start TextEdit and change the following preferences: Open the the "Format" menu and select "Plain text" instead of "Rich text". Then open the "Preferences" window under the "Text Edit" menu and select "Ignore rich text commands in HTML files". Your HTML code will probably not work if you do not change the preferences above!

Type in the following text:
HTML Code:
<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>
Save the file as "mypage.htm".

Start your Internet browser. Select "Open" (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File") and locate the HTML file you just created - "mypage.htm" - select it and click "Open". Now you should see an address in the dialog box, for example "C:\MyDocuments\mypage.htm". Click OK, and the browser will display the page.

-----------------------------------------------------------------------

Example Explained

The first tag in your HTML document is <html>. This tag tells your browser that this is the start of an HTML document. The last tag in your document is </html>. This tag tells your browser that this is the end of the HTML document.

The text between the <head> tag and the </head> tag is header information. Header information is not displayed in the browser window.

The text between the <title> tags is the title of your document. The title is displayed in your browser's caption.

The text between the <body> tags is the text that will be displayed in your browser.

The text between the <b> and </b> tags will be displayed in a bold font.
----------------------------------------------------------------------

HTM or HTML Extension?

When you save an HTML file, you can use either the .htm or the .html extension. We have used .htm in our examples. It might be a bad habit inherited from the past when some of the commonly used software only allowed three letter extensions.

With newer software we think it will be perfectly safe to use .html.

--------------------------------------------------------------------------

Note on HTML Editors:


You can easily edit HTML files using a WYSIWYG (what you see is what you get) editor like FrontPage or Dreamweaver, instead of writing your markup tags in a plain text file.

However, if you want to be a skillful Web developer, we strongly recommend that you use a plain text editor to learn your primer HTML.


----------------------------------------------------------------------
Frequently Asked Questions

Q: After I have edited an HTML file, I cannot view the result in my browser. Why?
A: Make sure that you have saved the file with a proper name and extension like "c:\mypage.htm". Also make sure that you use the same name when you open the file in your browser.

Q: I have edited an HTML file, but the changes don't show in the browser. Why?
A: A browser caches pages so it doesn't have to read the same page twice. When you have modified a page, the browser doesn't know that. Use the browser's refresh/reload button to force the browser to reload the page.

Q: What browser should I use?
A: You can do all the training with all of the well-known browsers, like Internet Explorer, Firefox, Netscape, or Opera. However, some of the examples in our advanced classes require the latest versions of the browsers.

Q: Does my computer have to run Windows? What about a Mac?
A: You can do all your training on a non-Windows computer like a Mac.
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following 2 Users Say Thank You to KoOL For This Useful Post::
gini (10-19-2008), mariacanet (01-22-2008)
Click here to Donate to remove the Advertisments.
Old 01-03-2008, 04:52 PM #3 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML Elements

HTML documents are text files made up of HTML elements.

HTML elements are defined using HTML tags.


------------------------------------------------------------------
HTML Tags
HTML tags are used to mark-up HTML elements
HTML tags are surrounded by the two characters < and >
The surrounding characters are called angle brackets
HTML tags normally come in pairs like <b> and </b>
The first tag in a pair is the start tag, the second tag is the end tag
The text between the start and end tags is the element content
HTML tags are not case sensitive, <b> means the same as <B>

--------------------------------------------------------------------
HTML Elements
Remember the HTML example from the previous page:
HTML Code:
<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>
This is an HTML element:
HTML Code:
<b>This text is bold</b>
The HTML element starts with a start tag: <b>
The content of the HTML element is: This text is bold
The HTML element ends with an end tag: </b>

The purpose of the <b> tag is to define an HTML element that should be displayed as bold.

This is also an HTML element:
HTML Code:
<body>
This is my first homepage. <b>This text is bold</b>
</body>
This HTML element starts with the start tag <body>, and ends with the end tag </body>.
The purpose of the <body> tag is to define the HTML element that contains the body of the HTML document.


Why do We Use Lowercase Tags?

We have just said that HTML tags are not case sensitive: <B> means the same as <b>. If you surf the Web, you will notice that plenty of web sites use uppercase HTML tags in their source code. We always use lowercase tags. Why?
If you want to follow the latest web standards, you should always use lowercase tags. The World Wide Web Consortium (W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.

Tag Attributes

Tags can have attributes. Attributes provide additional information to an HTML element.The following tag defines an HTML table: <table>. With an added border attribute, you can tell the browser that the table should have no borders: <table border="0">
Attributes always come in name/value pairs like this: name="value".
Attributes are always specified in the start tag of an HTML element.
Attributes and attribute values are also case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation, and XHTML demands lowercase attributes/attribute values.
Always Quote Attribute Values

Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.
In some rare situations, like when the attribute value itself contains quotes, it is necessary to use single quotes:
name='John "ShotGun" Nelson'
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
Old 01-03-2008, 04:55 PM #4 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

Basic HTML Tags


The most important tags in HTML are tags that define headings, paragraphs and line breaks.
The best way to learn HTML is to work with examples. We have created a very nice HTML editor for you. With this editor, you can edit the HTML source code if you like, and click on a test button to view the result.




Headings

Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading.
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
<h4>This is a heading</h4>
<h5>This is a heading</h5>

<h6>This is a heading</h6> HTML automatically adds an extra blank line before and after a heading.

Paragraphs

Paragraphs are defined with the <p> tag.
<p>This is a paragraph</p>
<p>This is another paragraph</p> HTML automatically adds an extra blank line before and after a paragraph.
Line Breaks

The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it.
<p>This <br> is a para<br>graph with line breaks</p> The <br> tag is an empty tag. It has no closing tag.
Comments in HTML

The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.
<!-- This is a comment --> Note that you need an exclamation point after the opening bracket, but not before the closing bracket.
Basic Notes - Useful Tips

When you write HTML text, you can never be sure how the text is displayed in another browser. Some people have large computer displays, some have small. The text will be reformatted every time the user resizes his window. Never try to format the text in your editor by adding empty lines and spaces to the text.
HTML will truncate the spaces in your text. Any number of spaces count as one. Some extra information: In HTML a new line counts as one space.
Using empty paragraphs <p> to insert blank lines is a bad habit. Use the <br> tag instead. (But don't use the <br> tag to create lists. Wait until you have learned about HTML lists.)
You might have noticed that paragraphs can be written without the closing tag </p>. Don't rely on it. The next version of HTML will not allow you to skip ANY closing tags.
HTML automatically adds an extra blank line before and after some elements, like before and after a paragraph, and before and after a heading.
We use a horizontal rule (the <hr> tag), to separate the sections in our tutorials.

Basic HTML Tags

Tag Description

<html> Defines an HTML document
<body> Defines the document's body
<h1> to <h6> Defines header 1 to header 6
<p> Defines a paragraph
<br> Inserts a single line break
<hr> Defines a horizontal rule
<!--> Defines a comment


HTML Tags

HTML Tags

<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>


__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following User Says Thank You to KoOL For This Useful Post:
gini (10-19-2008)
Click here to Donate to remove the Advertisments.
Old 01-03-2008, 05:08 PM #5 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML <!--...--> tag

Definition and Usage

The comment tag is used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.
You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside the script and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text.
Example

Source
<!--This text is a comment-->
<p>This is a regular paragraph</p>

Output
This is a regular paragraph

Attributes: NONE
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following 2 Users Say Thank You to KoOL For This Useful Post::
gini (10-19-2008), mariacanet (01-22-2008)
Old 01-22-2008, 06:08 AM #6 (permalink)
rrvn6681's Avatar
rrvn6681
Member


Join Date: Jan 2008
Reputation: 20
Posts: 3
Thanks: 9
Thanked 1 Time in 1 Post
 

Thumbs up

Hey u co0l man
i like tat thread
and thanx very much
rrvn6681 is offline

Reply With Quote
The Following User Says Thank You to rrvn6681 For This Useful Post:
gini (10-19-2008)
Click here to Donate to remove the Advertisments.
Old 04-15-2008, 05:16 PM #7 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML <body> tag

Definition and Usage

The body element defines the documents' body. It contains all the contents of the document (like text, images, colors, graphics, etc.).
Differences Between HTML and XHTML

All "presentation attributes" of the body element were deprecated in HTML 4.01.
All "presentation attributes" of the body element are not supported in XHTML 1.0 Strict DTD.
Example

HTML Code:
<html>
	<head>
	</head> 	<body>
	The content of the document......
	</body>
 	</html>

Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
Attribute Value Description DTD alink rgb(x,x,x)
#xxxxxx
colorname Specifies the color of the active links in the document. Deprecated. Use styles instead. TF background file_name An image to use as the background. Deprecated. Use styles instead. TF bgcolor rgb(x,x,x)
#xxxxxx
colorname The background color of the document. Deprecated. Use styles instead. TF link rgb(x,x,x)
#xxxxxx
colorname Specifies the color of all the links in the document. Deprecated. Use styles instead. TF text rgb(x,x,x)
#xxxxxx
colorname Specifies the color of the text in the document. Deprecated. Use styles instead. TF vlink rgb(x,x,x)
#xxxxxx
colorname Specifies the color of the visited links in the document. Deprecated. Use styles instead. TF Standard Attributes

id, class, title, style, dir, lang, xml:lang For a full description, go to Standard Attributes.
Event Attributes

onload, onunload, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following User Says Thank You to KoOL For This Useful Post:
gini (10-19-2008)
Old 04-15-2008, 05:17 PM #8 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML <!DOCTYPE> tag

Definition and Usage

The <!DOCTYPE> declaration is the very first thing in your document, before the <html> tag. This tag tells the browser which HTML or XHTML specification the document uses.
Tips and Notes

Note: The <!DOCTYPE> tag does not have an end tag!
HTML

HTML 4.01 specifies three document types: Strict, Transitional, and Frameset.
HTML Strict DTD

Use this when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> HTML Transitional DTD

The Transitional DTD includes presentation attributes and elements that W3C expects to move to a style sheet. Use this when you need to use HTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Frameset DTD

The Frameset DTD should be used for documents with frames. The Frameset DTD is equal to the Transitional DTD except for the frameset element replaces the body element:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML

XHTML 1.0 specifies three XML document types: Strict, Transitional, and Frameset.
XHTML Strict DTD

Use this DTD when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> XHTML Transitional DTD

Use this DTD when you need to use XHTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> XHTML Frameset DTD

Use this DTD when you want to use frames!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> To check that you have written a valid XHTML document with a correct DTD, you can link your XHTML page to an XHTML validator.
Attributes: NONE
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following User Says Thank You to KoOL For This Useful Post:
gini (10-19-2008)
Click here to Donate to remove the Advertisments.
Old 04-15-2008, 05:17 PM #9 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML <a> tag

Definition and Usage

The <a> tag defines an anchor. An anchor can be used in two ways:
  1. To create a link to another document by using the href attribute
  2. To create a bookmark inside a document, by using the name or id attribute
Differences Between HTML and XHTML

NONE
Tips and Notes

Note: A linked page is normally displayed in the current browser window, unless you specify another target.
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following User Says Thank You to KoOL For This Useful Post:
gini (10-19-2008)
Old 04-15-2008, 05:18 PM #10 (permalink)
KoOL's Avatar
KoOL
Cr@zY Ai0 MeG@ RetIREd


Join Date: Oct 2007
Location: In Your Mind
Age: 27
Reputation: 190173
Posts: 12,525
Thanks: 349
Thanked 17,744 Times in 2,877 Posts
 

HTML <tt> <i> <b> <big> <small> tags

Definition and Usage

The following elements are all font style elements. They are not deprecated, but it is possible to achieve richer effects using style sheets.
<tt> Renders as teletype or mono spaced text <i> Renders as italic text <b> Renders as bold text <big> Renders as bigger text <small> Renders as smaller text
Differences Between HTML and XHTML

NONE
Example

Source Output <tt>Teletype text</tt><br />
<i>Italic text</i><br />
<b>Bold text</b><br />
<big>Big text</big><br />
<small>Small text</small><br /> Teletype text
Italic text
Bold text
Big text
Small text
__________________
For Download Links U need to Press Button
[/CENTER]

Please don't PM me For Posts, Request and Not Working Threads. Use Button.
KoOL is offline

Reply With Quote
The Following User Says Thank You to KoOL For This Useful Post:
gini (10-19-2008)
Click here to Donate to remove the Advertisments.
Reply

Tags
html, notes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MyScript Notes 2.1.2.2 KoOL Appz Zone 0 12-06-2007 05:49 PM
MyScript Notes 2.1.2.2 KoOL Appz Zone 0 11-19-2007 04:31 PM
My Notes Keeper 1.8.2.828 ijhtio Appz Zone 0 11-14-2007 03:10 PM
My Notes Keeper.v1.8.1 PaNkAJ Appz Zone 0 10-17-2007 11:21 AM
My Notes Keeper 1.8.1 KoOL Appz Zone 0 10-16-2007 11:56 AM


All times are GMT. The time now is 07:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Aioforum Tinydl PhazeDDL Warez InfiniteWarez.com - Free Full Version Downloads! RapidShare Links

Katz Downloads Freshwap Downloads Rapidshare Movies Warez-BB Rapidshare Forums
Rapidshare Forums Rapidshare Search Full Downloads Share Wallpapers Mediafire Movies