Sunday, February 17, 2013

Introduction to HTML


HTML
Each HTML has two parts:
1.    Head
2.    Body

Structure of a HTML webpage:
<HTML>
            <HEAD>
            </HEAD>
            <BODY>
            </BODY>
</HTML>
Note: HTML is not a case sensitive language.
How to create a webpage:
1.    Open Notepad(win+r then type “notepad” or use start menu)
2.    Write the code which we want to develop
3.  Save the file with .htm/.html extension
HTML can be divided into sub modules:
          Formatting
          Image
          Table
          Form
          Frameset

<title>:
This tag is used to set title of the page.

·       Write a program to create a webpage titled “Hello World ” :
<HTML>
            <HEAD>
                        <TITLE>Hello World</TITLE>
            </HEAD>
            <BODY>
            </BODY>
</HTML>

·       Write a program to print “Hello World ” in Bold/Italic/Underline manner:
<HTML>
            <BODY>
                        <b>Hello World</b>
                        <i>Hello World</i>
                        <u>Hello World</u>
                        <strong>Hello World</strong>
                        <em>Hello World</em>
            </BODY>
</HTML>

0 comments:

Post a Comment

Powered by Blogger.