![]() |
Author : M@teo21 Creation : : on 01/23/2007 11:13:24 AM Last modification: : on 03/25/2007 01:31:18 PM Rate and comment this tutorial Print this tutorial |
| Tags | Description | ||
|---|---|---|---|
| <html> | Main tag of any web page. 2 attributes are to be set:
Usually, your <html> tag will look like this: Code: HTML
|
||
| <head> | Page header | ||
| <body> | Page body |
1 2 3 4 5 6 7 8 9 | <!DOCTYPE html PUBLIC "-//W3C//DTD xHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Website title</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> </body> </html> |
| Tag | Description | ||||
|---|---|---|---|---|---|
| <title> | Web page title. This is probably the most important tag in a Web page. Choose your title carefuly because it influences search engines a lot (they consider the words of the title as important). Code: HTML
|
||||
| <style> | Allows to add CSS code for the page. It is given the type="text/css" attribute. Example: Code: HTML
|
||||
| <script> | Allows to add a script. It is often used for adding Javascript: Code: HTML
|
||||
| <meta /> | This tag defines the properties of the Web page. It has many different uses. Here are some useful examples: Code: HTML
The meta is mostly used to set the characters table. The description and the keywords of the page almost don't affect search engines. So it is no use spending hours adding tons of keywords ![]() |
||||
| <link /> | This tag allows to set some information about the Web page. It is mostly used to insert a CSS stylesheet, like this: Code: HTML
It can also be used for a few other things: Code: HTML
A favicon is an icon which is usually displayed on the left of your website's address on your visitor's browser. It's a way to customize your website. Concerning the RSS feed, it is a method allowing your visitors to be kept aware of your website's news through a special software (it is by the way featured in browsers such as Firefox). RSS feeds are usually generated with PHP (consequently, it doesn't concern you if you're only using xHTML / CSS). |
| Tag | Type | Description | ||
|---|---|---|---|---|
| <ul> | Block | Unordered bulleted list. A <li></li> has to be set for each element. Example: Code: HTML
|
||
| <ol> | Block | Bulleted ordered list. A <li></li> has to be set for each element. Example: Code: HTML
|
||
| <li> | list-item | Creates a list element. This tag has a perticular type since it is neither inline nor block. Its type is list-item. |
||
| <dl> | Block | Definitions list. Every <dt> word must be followed by its definition <dd>. Example: Code: HTML
|
||
| <dt> | Block | Defined word | ||
| <dd> | Block | Word definition |
| Name | Age | Country |
|---|---|---|
| Carmen | 33 | Spain |
| Michelle | 26 | United States |
| François | 43 | France |
| Tag | Type | Description | ||
|---|---|---|---|---|
| <form> | Block | Delineates a form. The <form> tag is usually to be given two attributes:
|
||
| <fieldset> | Block | Allows to gather several elements of a form within groups. It is rather fit for big forms. To give your group a title, use the <legend> tag |
||
| <legend> | Inline | TItle of a group within a form. Is to be used inside a <fieldset> |
||
| <label> | Inline | Title of a form element. You should usually set the for attribute on this tag to precise the ID of the element to which the label refers. |
||
| <input /> | Block | Form field. There are many different kinds of fields. You can choose the one you like with the type attribute: Code: HTML
Mind giving a name to your fields by means of the name attribute |
||
| <textarea> | Block | Multi-line text typing area. Its size can be defined with the rows and cols attributes (number of rows and columns) or with CSS, thanks to the width and height properties. |
||
| <select> | Block | Scrolling list. Use the <option> tag to create each list element: Code: HTML
|
||
| <option> | Block | Element of a scrolling list | ||
| <optgroup> | Block | Elements group of a scrolling list. Should be used in the case of a long scrolling list. The label attribute must be used to give a name to the group. |
| Tag | Type | Description |
|---|---|---|
| <span> | Inline | Inline generic tag |
| <div> | Block | Block generic tag |
Change your template |
Learn more about NP |
Site map |
Terms of use |
Rules |
RSS feed |
XHTML 1.0 |
CSS 2.0
Powered by Simple IT SARL:
Contact us
There is nothing else to read, you have to go up now !
Do you want to be published here? Contact us.
6 Newbies Connected |
9 Requests |
0.167s (0.1561s)