<!--This is an internal comment. It is not visible to the Web page visitor.-->
(Nothing will show.)
<!-- --> For inserting invisible comments
You can add comments to your (X)HTML documents to remind yourself (or future editors) what you were trying to achieve with your (X)HTML tags. These comments only appear when the document is viewed in a text editor. In the browser, they are invisible to the visitors.
<a -
anchor
<a href="http://www.webdesigntoolkit.net/">
Web Design Toolkit</a>
If you have more than one Web page, you will probably want to create links from one page to the next (and back again). You can also create connections to Web pages designed by other people on other servers.
Breaking up your page into divisions allows you to apply styles to an entire chunk of your page at once. This is particularly useful for designing layouts with CSS.
A form has three important parts: the <form> tag, which includes the URL of the script that will process the form, the form elements, like fields and menus, and the submit button which sends the data to the script on the server.
(X)HTML provides for up to six levels of headers in your Web page for separating your page into manageable chunks.
<head>
heading of HTML document
<head>Contains elements describing the document, i.e., TITLE and META elements, etc.</head>
(Typically, nothing will show)
<head> </head>
For creating the head section, which contains information about the page, including the title, author, keywords, style sheets, and scripts
<hr />
horizontal rule
Upper content <hr /> Lower content
Upper content
Lower content
<hr />
For creating horizontal rules
One graphic element that is completely supported by the majority of the browsers is the horizontal rule. There are several attributes you can use to jazz up horizontal rules, although they have all been deprecated in favor of styles.
You can change the size of your INPUT box simply by changing the SIZE value. In addition, you can change the amount of text input by changing the MAXLENGTH value.
Example 2
Set the style
You can change the font, text color, text size and the background color, by changing the STYLE attributes.
Example 3
Spice it up with tables and images
You can use a graphic image in place of the submit button to spice up your page. This example is set up in a table with the TD background color set to #E7E7E7.
Example 4
Include a text area
You can change the size of your text box by changing the number of ROWS and COLS (columns).
Example 5
Set default inputs
You can create a default selection in your OPTION list by adding the word selectedright after the word OPTION between the lesser than and greater than symbols. In this example, option 2 is the default selection.
Example 6
Radio buttons and check boxes
You can create a default selection in your RADIO and CHECKED list by adding the word CHECKED right after the OPTION elements between the lesser than and greater than symbols. In this example, option 2 and selection 2 are the default selections.
For linking to an external style sheet The easiest, best supported, and most common way to apply the rules in a style sheet to a Web page is to link to the style sheet.
<meta>
meta
<meta name="Description" content="Description of your site"> <meta name="keywords" content="keywords describing your site">
The METAdescription and keyword tags are used to enable search engines to properly index your website.
The META refresh tag is used to automatically redirect your visitor to another web address. This tag is generally used when a website moves and needs to have traffic redirected to the new location.
The META no-cache tag is used to prevent the user's browser from storing a copy of your Web page in its cache file.
The META rating tag is used to enable you to rate your website with the search engines. A general rating means that your webpage contains no adult content and is safe for all ages.
The META robots content all tag is used to direct the search engines to index all of your Web page content.
The META robots noindex tag is used to tell the search engines not to index a Web page.
The ordered list is perfect for providing step-by-step instructions on how to complete a particular task or for creating an outline (complete with links to corresponding sections, if desired) of a larger document. You may create an ordered list anywhere in the body section of your HTML document.
For creating the individual options in a form menu
You can create a default selection in your OPTION list by adding the word selected right after the word OPTION between the lesser than and greater than symbols. In this example, option 2 is the default selection.
<p>
paragraph
<p align="left">
Example 1:<br />
<br />
This is an example<br />
displaying the use<br />
of the paragraph tag.
</p> <p align="right">
Example 2:<br />
<br />
This is an example<br />
displaying the use<br />
of the paragraph tag.
</p> <p align="center">
Example 3:<br />
<br />
This is an example<br />
displaying the use<br />
of the paragraph tag.
</p>
Example 1:
This is an example
displaying the use
of the paragraph tag.
Example 2:
This is an example
displaying the use
of the paragraph tag.
Example 3:
This is an example
displaying the use
of the paragraph tag.
<p> </p>
For creating new paragraphs
The closing </p> tag is required in XHTML and when applying styles to a paragraph. So it is recommended that it always be used to end a paragraph. Never-the-less, in HTML, the closing </p> tag is optional.
<small>
small (text)
<small><small>Example</small></small>
Example
<small> </small>
For decreasing the size of text
<strike>
deleted text
<strike>Example</strike>
Example
<strike> </strike>
also <s> </s>
For displaying text with a line through it
<strong>
strong emphasis
<strong>Example</strong>
Example
<strong> </strong>
For emphasizing text logically, usually in boldface