Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




HTML Basic

HTML is used to create the web pages on web. An HTML file must have an htm or html file extension. HTML can be create with simple text editor like notepad. There are another Editors available also. Dreamweaver Frontpage In .net itself a good support for html with intellisence. intellisense is the facility given by softwares. It shows the properties supported by tag. Later on we will discuss detail about this.

There are head section and body section which we use for contents.

Head section - This section can contain very useful information of page. It can contains the meta tags, scripts, stylesheets, javascript file references, stylesheet files references.

Body section - In this sectin every thing presents which we can see on the web page. It can contains image references, contents, headings, div, tables, paragraph etc.

Basic tags are :
        <html>         
<head>
<title>Here comes the title of page </title>
</head>
<body>
Here the body of page will come. Body include tables, div,
contents etc.
</body>
</html>

Example 1

<html>
<head>
<title>Xpode.com </title>
</head>
<body>
Hello world.
</body>
</html>

Write this code in notepad and save as myfirstpage.html Now open in html and you will see the text written in body on your page. The body part will be shown on page. There are different tags which we are using in this example.
   HTML
Head
BODY
Example 2
         <html>
<head>
<title>Xpode.com </title>
</head>
<body>
Hello world. xpode.com <br/>
<strong>This text will appear in bold</strong>
</body>
</html>
-- Tags which we are using :
        title - Used for text which shows in title bar
br - Used to break in new line
strong - Used for show text in bold.

Remember we place all tags in <> brackets.
Every tag should have closing tag.
For closing tag we will write </tag name>
HTML is not case sensitive. So we can write in upper case also.

Share this article   |    Print    |    Article read by 4293 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles: No related article
Related Interview Questions: No related interview question