Web design templates

Flash intro templates

Logo templates

Corporate Identity

PHP-Nuke Themes

Full site templates

Last added templates

Pages

  • Home
  • About

Category

  • HTML
  • Web Design

Archives

  • February 2008
  • November 2007

Blogroll

  • Alex
  • Donncha
  • Dougal
  • Matt
  • Michel
  • Mike
  • Ryan

Meta:

  • RSS
  • Comments RSS
  • Valid XHTML
  • XFN

Logo  
Logo Logo
 

Basic HTML Tags, the ones you cant do without!

February 17th, 2008 by tech3

Today, we will be discussing the most basic tags that are required by ever web-page for proper compilation in HTML.

The HTML Tag

<html> is the topmost tag in any HTML page because this is the tag which tells the browser that this page will be treated as an HTML page, and the whole formatting would be done based on the HTML text. It is a paired tag, and it requires a </html> to close and to tell the browser that all HTML data has finished after it. It is essentially the last tag of an HTML page.

The Head Tag

The <head> tag is used to display the head portion of the page. It may or may not be displayed to the user, depending on the browser settings. It houses many other tags like the heading tags from h1 to h6, <script> tag which tells the browser the presence of a script, <style> which is used for stylesheets and <title> which is the title of the web-page, and is displayed at the top most bar of the browser.

The output of this code is show below

<html>

<head>

<title>This is the Title of the page</title>

</head>

</html>

 

The Body Tag

 

The <body> tag encloses all the HTML data and information and the major portion of the Webpage. With the <body> tag, you can make changes in the color of the background, text color, link color, active and visited both. This tag is where all the activity takes place.

 

The output of code is shown below

 

<body>

The body text goes here.

</body>

 

A complete Web page, with body, title, head, and HTML tags can be shown as below.

 


Posted in   HTML, Web Design |





Leave a Comment


Copyright © 2006-2007 Elegant Templates. All Rights reserved.