Entertainment Technology Entertainment Entertainment


TUTORIALS AND ARTICLES>>HTML(Introduction to HTML)>>

HTML (HyperText Markup Language) is the language World Wide Web hypertext documents are written in. It features hypertext links where you click on a string of highlighted text and access a new document which can be at that site or anywhere else in the world. The new document is located by its URL (Universal Resource Locator) and can be another HTML document, pictures, sound files, etc. HTML is designed to be platform independent, not bound to a particular hardware or software environment.

HTML programs are written as plain, ASCII text files. This means they can be written in any text editor such as Write or Notepad. Personally, I use Dreamweaver but am regularly switching to code mode to edit the HTML directly anyway. I'm not a big fan of most HTML editors - without naming any names <cough>Frontpage</cough> they add all this needlessly complex HTML to your pages and I seem to spend more time cleaning unwanted code.

In the old days (eg - a year or two ago), the emphasis of HTML was on the structure of the text, leaving the appearance of your document up to the browser. With each new version of HTML, the web designer seems to have more control over the look of their webpages.

Elements and Tags
A HTML document is made up of elements. A typical element takes the form:
<h1> This is a Heading 1 Element </h1>
The bits at the beginning and end of the element, <h1> and </h1>, are called tags and usually enclose some text. The text within the < > denotes what kind of element you want. The <h1> indicates the start of the element, the </h1> with the forward slash marks the end. Of course, not all elements have a starting and ending tag. Elements that don't require an end tag are called empty or open elements (ie - <BR> forces a line break and doesn't enclose any text).

Some elements include attributes within the tag. An attribute is a variable that is assigned a value such as a filename, a number or whatever. Here's an example of an IMG tag with the attribute SRC in it:
<IMG SRC="filename.gif">
The IMG tag displays a graphic in your web page. The attribute SRC is the source of your image. filename.gif is the name of your graphic file. There'll be more on attributes and the IMG tag later.

Structure of a HTML document
Your whole HTML document is one big HTML element. In other words, it starts with a <html> tag and ends with a </html> tag.

Within the HTML element, your document is divided into two sections: the <head> and <body> elements. The <head> element contains descriptive information about the document. For example, the <title> element is found here. Generally, the <head> element is used for describing the document, not for displaying information (the exception - whatever text you have between your <title> </title> tags is displayed at the top of the browser). The real guts of your document is found within the <body> element. Here you display all your text, graphics, links and so on.

HTML documents have a logical structure. Elements are nested within each other adhering to certain rules and cannot overlap in an unstructured fashion. Here is an example of the overall structure of an HTML document:
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        Info displayed in browser.
    </body>
</html>
And there is a basic overview of HTML. The other elements you can use within your Head and Body Elements will be covered in other tutorials.


<< Back


Google






   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006-2010 All Rights Reserved By CodeDcode.Com : HTML : RSS : TEXT : XML