Who you, a Guru? After you read these 57 Html tips, you'll be one. But we're looking to recruit a Guru to blog, write a 101 tip Html book, and become a leader of this community.
Establishes the URL basis for subsequent references in link and anchor statements in the document body.
Attributes:
TARGET="window" ; HREF="URL".
Suggested Usage:
This tag is legal only within the <HEAD> tag. Complex, multipage sites will benefit by using this tag because it helps maintain the integrity of a site by specifically defining the common portion of every resources URL.
Used within the <HEAD> element to embed information about information in a document. This information can be extracted by servers/clients and be used in identifying, indexing, and cateloging document information.
Defines information about an HTML document, including meta information, page title, links to other documents, and index information.
Attributes:
Profile="URL".
Suggested Usage:
Although many browsers will render an HTML document without one, <HEAD> ... </HEAD> is required. It’s also a good idea if you want to include information for search engines or to establish a base URL.
Example:
<HEAD> This is where you would put your title tag, meta tags, and base tag. </HEAD>
Encloses the document’s title, which appears in the title bar of the browser window.
Attributes:
None.
Suggested Usage:
Using a short, descriptive title should be placed on every HTML document you author. An accurate, descriptive title will also help many search engines and tools find your content.
Example:
<TITLE>HTML Tips, Tricks, and Source Code for Webpage Authors.</TITLE>
Indicates a comment; The browser will ignore all text within the tag elements.
Suggested Usage:
The comment tag allows the webpage author to insert notes, dates, and anything else that will be helpful to the author and others who view the code after publication. You can also use the code to temporarily remove sections of a document simply by adding a comment tag pair around the removed text.
Example:
<!-- Last check for broken links was 17 Jan 2001 -->
The FONT tag is being used less and less in favor of style sheets rules. When you specify a font face, keep in mind that if the user doesn’t have that particular font installed on thier machine, they will see the system default instead.
In an effort to avoid redundancy, I’ll list here the 6 most common tag attributes (more than 85% of html tags list these attributes). These attributes all have default values, which means that you don’t have to list them unless you want to change thier values.
ID="NAME" - Document-wide identifier that can be used to give an HTML element a unique identifier within a document.
CLASS="TEXT" - A list of class names (seperated by commas), that indicates that the element belongs to a specific class or classes of style definitions.
STYLE="TEXT" - Provides rendering information specific to this element.
TITLE="TEXT" - Defines an advisory title that will display additional help.
DIR="(LTR|RTL)" - Indicates the direction that the text will be read, Left to Right or Right to Left.
LANG="NAME" - Specifies the language that the element and its content are written in.
Defines paragraph boundries for normal text. A line break and carriage return occurs when this tag is placed.
Attributes:
ALIGN="(LEFT|CENTER|RIGHT|JUSTIFY)"
Suggested Usage:
For good writing style use paragraphs to break the flow of ideas or information into related chunks. Easier formatting than using line breaks. The closing tag(</P>) is optional.
Example:
<P your paragraph content here. Instead of using the line break tag to force a carriage return, use the paragraph tag to control the entire paragraph.</P>
In this category I’m going to try to accomplish familiarizing you with HTML tags. With each tip I’ll provide the tag definition (taken from the HTML 4.0 DTD), legal attributes for the tag (required attributes shall be indicated by red text), suggested usage of the tag, and finally, an example of the tag using some attributes together.
Using this section as a reference will grant you greater flexibility when designing your webpage as well as bring out the creative genius in us all.
I won’t provide attribute definitions because there are simply too many. However, if you want a definition for a particular tags attribute, don’t hesitate to write and ask me
Displays enclosed text in strikethrough style. This tag is the same as <STRIKE>.
Attributes:
None.
Suggested Usage:
Use this tag only when necessary as the text produced on screen is difficult to read. Most commonly used to show text removed from earlier versions of a document.
The horizontal rule is best used to emphasize natural divisions between text items or topics, or to seperate a header or footer from the body of a document.
Founded in 2000, LifeTips offers fresh tips and advice to millions of readers. Become a Guru on a topic you're an expert in. Become a Sponsor and keep the tips flowing and traffic going to your website!