Thursday, March 9, 2017

Basic HTML

Basic HTML:
    HTML indicates as hypertext markup language. It is a tag based language.  It is not case sensitive language. Using HTML language we can develop the web pages.  Hyper text is nothing but the text that have non-linear link to other text.

Web page:
     Web page is a file that can use read over by World Wide Web (WWW).

HTML Document creation:
    To produce an HTML language we need to use a text editor.  The HTML program can be written in word pad or Notepad.  The extension of HTML program is “.html” .  The HTML programming containing the three main tags,
1. <html>
2. <head>
3.  <body>

<html>
   It is indicates as staring of the program. Every html tag contains the closing html tag (</html>).

<head>
  It’s indicates as heading of the program. Every head tag contains the closing head tag (</head>).  In head tag there is one sub tag that is title tag that is title tag (<title>).  It indicates as title of the web page it contain ht closing title tag (</title>).

<body>
  It indicates as body of the program.  Every body tag containing the closing body tag (</body>).
Example Program for Basic tags:
<html>
    <head>
         <title>OMGMCA</title>
    </head>
    <body> Let's go </body>
</html>

OUTPUT:



Attributes in body tag:
In <body> we may represent number of tags. Mainly we use
-Background Design
-Background color
-Text color

Background design:
 We can insert the image in the background of the web page

Example: suppose we have a image file such as omgmca.jpg

Syntax: <body background=”omgmca.jpg”>


Example:
<html>
    <head>
        <title>OMGMCA</title>
    </head>
    <body background=”omgmca.jpg”>
     Let’s Go…..
    </body>
</html>

Back ground color:
By using “bgcolor” on body we assign the color to the web page

Syntax: <body bgcolor=”#ff0000”>
  Or
<body bgcolor=”red”>
             
Example:
<html>
    <head><tilte>omgmca</tilte></head>
    <body bgcolor=”pink”>
    Beautiful colours
    <body>
</html>

Text color:
 By using “text” in the body tag we can assign the color to the text in the web page.

Syntax: <body text=”blue”>

-font:
Font is nothing but text characters, which have styles of character and sizes.  In HTML language font tag (<font>) is used to change the particular text in different color, size and style

Example:
 <html>
    <head><title>omgmca</title></head>
    <body bgcolor=”ff0000”>
        <font color=”blue”>Good Morning </font> <br>
        <font size=”55”>Hello </font> <br>
        <font face=”Arial”>Buy</font>
    </body>
</html>


<--Back to HTML Common Tag

2 comments: