Sei sulla pagina 1di 4

1.

Basic structure of an HTML document


An HTML document has two* main parts: 1. head. The head element contains title and meta data of a web document. 2. body. The body element contains the information that you want to display on a web page. * To make your web pages compatible with HTML 4, you need to add a document type declaration (DTD) before the HTML element. Many web authoring software add DTD and basic tags automatically when you create a new web page. In a web page, the first tag (specifically, <html>) indicates the markup language that is being used for the document. The <head> tag contains information about the web page. Lastly, the content appears in the <body> tag. The following illustration provides a summary.

2.Hypertext mark-up language 3.


The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web (abbreviated WWW or W3). It is arranged as a consortium where member organizations maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web. As of August 2009, the W3C had 355 members. W3C also engages in education and outreach, develops software and serves as an open forum for discussion about the Web. It was founded and is headed by Sir Tim Berners-Lee.

4. Horizontal line <HL> is probably another taboo html tag.

5.

An HTML document, with a required <title> tag in the head section:

<html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>

6. 7.

A line break is marked up as follows:

This text contains<br>a line break.

The information on this page is based on HTML version 4.01 (which is the current version of HTML). The

next version, HTML 5, is currently being written. Here's a list of HTML 5 tags. The HTML body tag is used for indicating the main content section of the HTML document. The body tag is placed between the </head> and the </html> tags. Note that the attributes for the body tag are deprecated in HTML 4.01 and obsolete in HTML 5. You should use CSS for defining the presentation of your document body. For example, see CSS backgroundcolor and CSS text-decoration.
Example <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>HTML body tag</title> </head> <body style="background-color:orange"> Document content goes here

</body> </html>

8. Definition and Usage


The <b> tag specifies bold text.

9. Definition and Usage


The <i> tag defines a part of text in an alternate voice or mood. The content of the <i> tag is usually displayed in italic. The <i> tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc. Use the <i> element only when there is not a more appropriate semantic element, such as:

<em> (emphasized text) <strong> (important text) <mark> (marked/highlighted text) <cite> (the title of a work) <dfn> (a definition term)

10. Definition and Usage


The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical. Use the <li> tag to define list items.

11. Definition and Usage


The <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with the <li> tag to create unordered lists.

12. Definition and Usage


The <td> align attribute is not supported in HTML5. Use CSS instead. The align attribute specifies the horizontal alignment of the content in a cell.

13. Definition and Usage


The <table> tag defines an HTML table. An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements. The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell. A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements

14. Definition and Usage


The href attribute specifies the URL of the page the link goes to. If the href attribute is not present, the <a> tag is not a hyperlink.

15.

The mailto is a quick way to add the facility of receiving feedback from visitor on your web site. With the

HTML mailto, you create a link which when clicked by the visitor launches (if it's not already running) their email program with a new email message window. The visitor could then formulate the email message and send it off to you. Note: HTML Mailto assumes that the visitor has configured an email client (Outlook Express, Netscape Messenger, Thunderbird or any other) to send emails. In its simplest form, the HTML mailto requires an email address. However, mailto can be made slightly more professional if we use it properly.

Potrebbero piacerti anche