HTML
  Home arrow HTML arrow Beginning HTML
IBM Developerworks
Iron Speed
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Beginning HTML
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-01-08

    Table of Contents:
  • Beginning HTML
  • Formatting HTML Documents
  • Inserting a Line Break
  • Comments
  • Formatting Text

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Beginning HTML
    (Page 1 of 5 )

    Ask anyone who invented the Internet, and they will likely look at you and shake their head in confusion, even though most people couldn't live without it for a day. Of course, if you asked Al Gore, he would say he did. But the people who really invented the Internet are also important for another, related reason.

    The folks who invented the Internet, if you could really give that credit to two people, were the same ones who created HTML, which began as a Hypertext system for CERN researchers proposed by Tim Berners-Lee. Why he has that hyphen in his last name, I don't know. In 1990 he and a CERN data systems engineer by the name of Robert Cailliau (who had also bid on a hypertextual system for CERN) got together and created the World Wide Web. The first actual document on HTML was published by Berners-Lee and was titled HTML Tags. And the rest was history.

    There isn't really all that much you need to know or have in order to learn HTML. A simple Notepad file will work just fine. You don't need to know any other languages, though it certainly doesn't hurt. And knowing how to turn on your computer, of course, is a must.

    So let's get started...

    Simple HTML

    To start, let's take a peek at some simple HTML code:


    <html>

    <head>

    <title> Website of the Future World Leader </title>

    </head>

    <body>


    Welcome to my vainglorious new website! <b><i>MUAHAHA</i></b>


    </body>

    </html>

    The above code works in the following manner: the first tag you see is <html>. This tag tells the browser that the type of document is an HTML document, and to treat it as such. If you go all the way to the end of the document you will see a closing tag </html>. This tells the browser that it has reached the end of the HTML document.

    The next tag you see is the <head> tag, which alerts the browser that this is the header section. It is closed off by the </head> tag, which of course alerts the browser that the header section is finished. If you write anything in between these two tags, it will be placed in the header section. Note that header tags are not shown in a browser window. We will discuss this in more detail later on.

    Next is the <title> tag. Any text placed between the <title> and </title> tags goes into the caption section of your browser (the top left hand corner of the blue bar).

    Next we see the <body> tag. Anything you put between the <body> and </body> tags will be shown in your Internet browser.

    Lastly, you will note that I added some tags: the <b>, </b>, <i>, </i> tags. These are the bold and italic flags, and are used to give the text they surround (in this case the MUAHAHAH) bold and italic properties. So when this text is seen in the browser it will read:

      Welcome to my vainglorious new website! MUAHAHA

    Notice that the text outside of the bold and italic tags is not affected.

    You will also notice that every tag <> has a closing tag </>. This isn't the case 100% of the time, but like 99% of the time it holds true. If you forget the opening or closing tags, it can have a serious effect on your web page.

    Terminology

    The things that surround a tag (<>) are called angle brackets. The first tag is an open tag <> and the last tag is a close tag </>. Anything that appears in-between these two tags is called element content. And lastly, this statement: <i>Hello Nerd<i/> is called an HTML element.

    More HTML Articles
    More By James Payne


       · Hey thanks for dropping by to check out my article on Beginning HTML, in which we...
     

    HTML ARTICLES

    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers
    - Uses of the New Window Command for Web Sites
    - HTML Working with Images
    - HTML: Working with Special Characters
    - HTML Forms
    - HTML Tables


     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway