Introduction to HTML

Navigation

Sponsors

Introduction to HTML

Save this to Del.icio.us

HTML, or Hypertext Markup Language, is the building block of websites. It allows you to create a website with text, graphic, and a specific layout.

HTML documents make use of elements, which are the basic structure of HTML markup. Elements consists of a starting tag and an end tag and have 2 properties, the attribute and the content. Here's an example of a "structural" element, in fact the one that defines paragraphs:

An Example of an HTML Element

<p align = "center">This is an example of a paragraph content</p>

The code here has been color cordinated to make it easier to understand. The majority of tags used to define elements within HTML consist of what are called start and end tags. In this case the start tag for a paragraph is <p> and end tag </p>. These are shown in blue.

Each element can have multiple attributes, which help define exactly how and where the content of the labels should be shown. On this particular example the attribute is "align" and has the value "center", as shown in green. Attributes always some in the form of "attributeName = value".

The last section to note is the content, which is shown in black text. This is the content of the element. In this case the HTML code states that the sentence "This is an example of a paragraph content" should be in a paragraph on it's own, which should be aligned in the center.

There are many elements within HTML and the most useful ones will be covered in the HTML tutorials section.


[ Back to HTML Tutorials ]


| Forums | Search | Donate | Links | Contact | Scripts | Templates |
Copyright © 2008 SiteToolCenter.com

Website Design

Best Viewed With Mozilla FireFox