HTML Body Section

HTML Basics - HTML Body Section

The body of the document contains all that can be seen when the user loads the page. For example Text, Links, Images, Backgrounds, Tables, Frames, Forms, Metatags and Colors.

HTML Head Section

HTML Basics - HTML Head Section

The head section of the webpage includes all the stuffs that does not allow directly on the resulting page. The <title> and </title> tags encapsulate the title of the page. The title is what shown in the top of the browser window when the page is loaded.

Quite often the head section contains Javascript, which is a programming language for more complex HTML pages. Finally, more and more pages contain codes for cascading style sheets (CSS). CSS is a rather new technique for optimizing the information of major websites.

HTML Page Structure

HTML Basics - HTML Page Structure

All normal web pages consist of a <head> and a <body> tag.

The most basic code - The code we will use for any page we make, is shown below:



<html>
<head>
<!-- This section is for the title and technical info of the page. -->
</head>
<body>
<!-- This section is for all that we want to show on the page. -->
</body>
</html>

  • The head tag is used for text and tags that do not show directly on the page.

  • The body tag is used for text and tags that are shown directly on the page.

Finally, all webpages have an <html> tag at the beginning and the end, telling that browser where the document starts and where it stops.










 Head


Body



HTML Tags

HTML Basics - HTML Tags

Basically a computer sees an "A" as simply an "A" - whether it is bold, italic, big or small. To tell the browser that an "A" should be bold we need to put a markup in front of the "A". Such a markcup is called a Tag.

All HTML tags are enclosed in < and > (angle brackets).

Example: The HTML code for displaying text in bold is shown below:

This is an example of <b> bold </b> text.


a piece of text as it appears on the screem.

This is an example of bold text.


As it is shown, the start tag <b> indicates that whatever followss should be written in bold. The corresponding end tag </b> indicates that the browser should stop writing text in bold.

Why Learn HTML

HTML Basics - Why Learn HTML?

It is possible to create web pages without knowing anything about the HTML source behind the page. It is strongly recommended that we understand certain tags before designing.

The most important benefits are:


  • We can read the code of other people's pages, and "borrow" the cool effects.
  • We can do the work ourself, when the editor simply refuses to create the effects we want.

One can write HTML with almost any available text editor, including notepad that comes as a standard program with Windows. All we need to do is type in the code, then save the document, making sure to put in .html extension or an .htm extension to the file (for instance "mypage.html").

HTML Introduction

HTML Introduction

Webpages are written in HTML. HTML is stands for Hyper Text Markup Language.


  • Hypertext is simplay a piece of text that works as a link.
  • Markup Language is a way of writing information within documents.

Basically an HTML document is a plain text file that contains text and nothing else. When a browser opens an HTML file, the browser will look for HTML codes in the text and use them to change the information, insert images, or create links to other pages. Since HTML documents are just text files they can be written in even the simplest text editor.

A more popular choice is to use a special HTML editor - may be even one that puts focus on the visual result rather than the codes - a so -called WYSIWYG editor ("What you see is what you get"). Some of the most popular HTML editors, such as Front Page or Dreamweaver will allow to create pages more or less as we write documents in Word.

About Me

My photo
Vision :- "To be a reputed institution of Smart People who Add Value Across Generation". Mission :- We are dedicated to Spreading Literacy in Society and Helping People choose Value for Money Products for Better Living.We are also adding health awareness and wellness to the society of India." We are distributor and promotors of India's Largest IT products Direct Selling Company with a reach of more than 250 cities nationwide. We have a strong internet R&D base to bring out cost effective and Quality products.