In Association with Amazon.in   Flipkart

Wednesday, December 19, 2012

Example for HTML Image Map with Output

Example for HTML Image Map:
<body>
<img src="../My Pictures/images.jpg" width="392" height="194" border="0" usemap="#imglinks" />
<map name="imglinks">
<area shape="rect" coords="5,167,42,192" href="../My Pictures/cat-funny-animal.jpg">
<area shape="circle" coords="348,160,10" href="div-site.html">
<area shape="poly" coords="236,166,256,160,283,154,299,146,305,136,319,129,307,112,294,95,270,76,262,63,245,48,241,44,239,30,229,22,216,23,201,28,187,26,169,26,155,31,147,37,136,42,122,45,105,52,96,63,92,73,89,83,82,90,82,100,87,114,93,125,101,140,123,148,137,160" href="divscroll.html">
</map>
</body>


Tuesday, December 4, 2012

HTML Image And Marquee Tags Example With Output

<body>
<p><strong>Example Image Tag With No CSS Float Style:</strong></p>
<img src="images.jpg" alt="Rose Image" width="400" height="250" border="8" vspace="20" hspace="20"/>
<br />
<hr />
<br />
<p><strong>Example Image Tag With CSS Float Style:</strong></p>
<img src="images.jpg" alt="Rose Image" width="400" height="250" border="8" vspace="20" hspace="20" style="float:right" />
<p style="background-color:#FFFFCC; padding:12px; width:200px; height:auto">
<h2 align="center">IT Job Careers</h2>
<hr/>
<a href="page1.html#t1">HTML</a>
<br>
<a href="page2.html#t2">CSS</a>
<br>
<a href="page3.html#t3">JS</a>
<br>
<a href="page4.html#t4">PHP</a>
</p>
<hr />
<p><strong>Example For Marquee Tag:</strong></p>
<marquee behavior="alternate" width="400" height="250" bgcolor="#CCFF99" direction="up" loop="10" scrollamount="4" scrolldelay="600">
<pre>
HTML ----> Hyper Text Markup Language
CSS ----> Cascading Style Sheet
JS ----> Java Script
XML ----> Extensible Markup Language
PHP ----> Hypertext PreProcessor
</pre>
<img src="images.jpg" alt="Rose Image" width="400" height="200" border="8" vspace="20" hspace="20" />
</marquee>
</body>

Output:-

Example Image Tag With No CSS Float Style:
Rose Image


Example Image Tag With CSS Float Style:
Rose Image

IT Job Careers


HTML
CSS
JS
PHP

Example For Marquee Tag:
HTML ----> Hyper Text Markup Language
CSS ----> Cascading Style Sheet
JS ----> Java Script
XML ----> Extensible Markup Language
PHP ----> Hypertext PreProcessor
Rose Image

HTML Common Text Format Tags Example With Output

Some HTML Common Text Format Tags Example With Output

<body>
<p>
<strong>HTML</strong> Forms are used to select different kinds of user input. <strong>Forms</strong> are used to pass data to a server. An <strong>HTML</strong> form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements
</p>
<pre>
HTML ----> Hyper Text Markup Language
CSS ----> Cascading Style Sheet
JS ----> Java Script
XML ----> Extensible Markup Language
PHP ----> Hypertext PreProcessor
</pre>
<b>Bold</b> or <strong>Strong</strong>
<br />
<i>Italic</i> or <em>Emphasised</em>
<br>
<u>Under Line</u><br>
<del>Deleted</del> or <s>Strick Through</s>
<br>
A<sub>2</sub>
<br><br>
X<sup>3</sup>
<br/>
<abbr title="World Wide Web">WWW</abbr> or <acronym title="JS">Java Script</acronym>
<br>
</body>

Output:-

HTML Forms are used to select different kinds of user input. Forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

HTML     ---->   Hyper Text Markup Language
CSS       ---->    Cascading Style Sheet
JS          ---->    Java Script
XML       ---->    Extensible Markup Language
PHP       ---->    Hypertext PreProcessor
 
Bold or Strong
Italic or Emphasised
Under Line
Deletedor Strick Through
A2

X3
WWW or Java Script

Monday, December 3, 2012

HTML Headings with CSS Inline Style Example


HTML Headings with CSS Inline Styles Script:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="html,css,js,php,script,styles" />
    <meta name="description" content="HTML Headings with CSS Inline Styles Script and its output" />
    <title>Sample HTML</title>
    </head>
    <body>
    <h1 align="center" style="color:#7F9F55; background-color:#FCF; border:double; border-color:#AA7FFF; padding:10px;" >Welcome To ITJobCareers</h1>
   
    <hr align="center" width="50%" size="5" color="red" />
   
    <h2>HTML</h2>
    <h3>CSS</h3>
    <h4>JS</h4>
    <h5>PHP</h5>
    <h6>MySQL</h6>
     </body>
</html>

OutPut:-

Welcome To ITJobCareers


HTML

CSS

JS

PHP
MySQL

HTML All Tags Examples With Output

Saturday, December 1, 2012

HTML Form Object Tags With Example

Designing HTML Forms: HTML Forms are used to select different kinds of user input. Forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

The <form> tag is used to create an HTML form:


Ex:-
<html>
<body>
<form method="POST" action="process.php">


Username : <input type=text name=user id=u value=Ram> <br>


Password : <input type=password name=pwd id=p > <br>

Age: <input type=text size=2 name=age id=a><br>

Sex: <input type=radio name=sex id=s1 value=M>Male
<input type=radio name=sex id=s2 value=F>Female<br>

Choose your Favourite Sport:
<input type=checkbox name=interest id=v1 value=crick>Cricket
<input type=checkbox name=interest id=v2 value=tenis>Tennis
<br>

Select your Country:
<select name=country>
<option value=ind> India </option>
<option value=uk> England </option>
<option value=us> USA </option>
<option value=aus> Australia </option>
</select>
<br>

Favourite Holiday Spot : <br>
<select multiple size=3 name=hspot>
<option value=africa> America </option>
<option value=europe> Europe </option>
<option value=asia> Switzerland </option>
<option value=australia> Australia </option>
</select>
<br>

Complete Address: <br>
<textarea name=addrs rows=5 cols=50></textarea> <br>

Resume : <input type=file name=resume id=res> <Br>

<input type=reset name=clear id=c value=Reset>

<input type=submit value="Continue">

<input type=button name=close id=s value=close>
</form>
</body>
</html>

Note : In text box we can give attribute maxlength to restrict the length of text. In a Text Box Maximum we can give 160 characters. In List Box we can select multiple items with using attribute multiple.  Every Object should have name , id  ( names can be same but id s must be unique). If you select radio buttons or check boxes or combo boxes or list boxes then the value will be returned, so value attribute is recommended for these objects.


op>---
Username :
Password :
Age:
Sex: Male Female
Choose your Favourite Sport Cricket Tennis
Select your Country
Favourite Holiday Spot

Complete Address

Resume :

HTML TABLE's With Attributes and Examples

Designing Tables In HTML: HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.

Example
<html>
        <head>
        </head>
        <body >
                <table border=1>
                        <tr>
                                <td> cell1  </td>
                                <td> cell2  </td>
                        </tr>
                        <tr>
                                <td> cell3  </td>
                                <td> cell4  </td>
                        </tr>
                </table>           
        </body>
</html>

Height and width are attributes of  <table>
Example
<table border=1 height=400 width=400>


Table Heading : Table heading will display in bold and in center
<html>
        <head>
        </head>     
        <body >
                <table border=1 >
                <caption > Employee Table </caption>
                        <tr>
                                <th> Eno  </th>
                                <th> Ename  </th>
                                <th> Esal  </th>
                        </tr>
                        <tr>
                                <td> 1  </td>
                                <td> Janardhan  </td>
                                <td> 20000  </td>
                        </tr>
                        <tr>
                                <td> 2  </td>
                                <td> Madhu  </td>
                                <td> 25000  </td>
                        </tr>
                </table>
        </body>
</html>


Other Table Tags

<thead>  will display on Top
<tbody>  will display in the Center
<tfoot>   will display Last

Example
<html>
      <head>   
      </head>
      <body >
              <table border=1 >
                      <tfoot>
                        <tr>
                                <td> 1  </td>
                                <td> Janardhan  </td>
                                <td> 20000  </td>
                        </tr>
                      </tfoot>
                        <tr>
                                <td> 2  </td>
                                <td> Madhu  </td>
                                <td> 25000  </td>
                        </tr>
                      <thead>
                      <tr>
                              <th> Eno  </th>
                              <th> Ename  </th>
                              <th> Esal  </th>
                      </tr>
                      </thead>
                      <tbody>
                      <tr>
                              <td> 3  </td>
                              <td> Suresh  </td>
                              <td> 3000  </td>
                      </tr>
                      </tbody>
              </table>
             
      </body>
     
</html>


Table Attributes
Bgcolor
Background
Cell padding   ( Displacement between border & content)
Cell spacing    ( Displacement between Individual cells)
Border
Height

Width
Align     ( Control table Position Horizontally)
Valign   ( Control table Position Vertically)


Examples
        1)        <table  bgcolor=red  >          
        2)     <table  background="sunset.jpg" >
              
If you give both bgcolor and background for a single table then high Priority is given for  background

<table bgcolor=red background="sunset.jpg"  >
<table border=10  >
<table border=10 cellpadding=50 >

<table border=10 cellspacing=50 >
<table border=10 align=right >

<table border=10 align=center >


 Valign will not work in HTML so we have to write CSS coding instead of Valign

EX : <table border=10 style="position:absolute;top:200;left:150" >
Attributes of TD
Bgcolor
Background
Width
Height
Col span
Row span
Align        ( left  ,  right  ,  center )
Valign      (  Top ,  middle  , bottom)

Example 1
<table border=10  >
                    <tr>
                            <td bgcolor=red>  1  </td>
                            <td background="sunset.jpg"> Siva  </td>
                            <td height =200 width = 200> 20000  </td>
                    </tr>
                    <tr>
                            <td> 2  </td>
                            <td> Brahma  </td>
                            <td> 25000  </td>
                    </tr>
    </table>

For Height complete Row will be affected. For Width complete Column will be affected

Example  2
<table border=10>      
                     <tr>
                              <td bgcolor=red>               1  </td>
                              <td background="sunset.jpg"> Vishnu  </td>
                              <td height =200 width = 200> 20000  </td>
                      </tr>
                      <tr>
                              <td align=right height=100 width=100>  2  </td>
                              <td align=center  width=100>                  Lakshmi  </td>
                              <td valign=top     width=100 >                    25000  </td>
                      </tr>
              </table>           


Table colspan and rowspan :
Example  3
<table border=1 height=300 width=300 >
                      <tr>
                              <td>                      Cell1  </td>
                              <td colspan=2>     Cell2  </td>                             
                      </tr>
                      <tr>
                              <td rowspan=2>    Cell4  </td>
                              <td>                       Cell5  </td>
                              <td>                       Cell6  </td>
                      </tr>
                      <tr> <td colspan=2>      Cell7  </td> </tr>
              </table>

Table with in Table
<html>
      <head>
     
      </head>
     
      <body >
              <table border=1 height=300 width=300>
                      <tr>
                              <td> <table border=1>
                                      <tr>
                                           <td> cell5  </td>
                                           <td> cell6  </td>
                                      </tr>
                                     
                                      <tr>
                                           <td> cell7  </td>
                                           <td> cell8  </td>
                                      </tr>
                                   </table>
                                 
                              </td>
                              <td> cell2  </td>
                      </tr>
                      <tr>
                              <td> cell3  </td>
                              <td> cell4  </td>
                      </tr>
              </table>
      </body>  
</html>

HTML Inline Frame: ( Iframe Tag )

HTML Inline Frame: ( Iframe Tag )
We can design a frame in body with using inline frame.

Example
<html>
        <head>    
        </head>
        <body>
                <p>This is a Paragraph</p>
                <ol>
                        <li> Oracle </li>
                        <li> Informix </li>
                </ol>
                <iframe src="a.html" width=200 height=50>  </iframe>
        </body>
</html>

HTML Frameset And Frame Tags

HTML Frames:
Frames used to Open multiple html pages in a single browser window.
Frames should not be written in <body>

Example
<html>
        <head> 
        </head>
        <frameset rows="20%,50%,30%">
        <frame src="a.html">
        <frame src="b.html">
        <frame src="c.html">
        </frameset>
</html>

Example
<html>
        <head>   
        </head>
        <frameset rows="50%,50%">
        <frame src="a.html" noresize="noresize">
                <frameset cols="50%,50%">
                <frame src="b.html">
                <frame src="c.html">
                </frameset>
        </frameset>
</html>

Note : If the browser is not supporting frames then  <noframes> will Execute.

 <noframes>
        <body>
        <p> Upgrade your browser to see this information </p>
        </body>
</noframes>


Frame Target :
<html>
        <head>    
        </head>
        <frameset cols="50%,50%">
                <frame src="links.html">
                <frame src="c.html" name="abc">
        </frameset>     
</html>

Links.html
<html>
        <head>     
        </head>
        <body>
                <a href="a.html" target="abc"> Page A </a> <br>
                <a href="b.html" target="abc"> Page B </a>
        </body>       
</html>

HTML Marquee Tag And Its Attributes With Example

HTML <marquee> Tag:  The HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontally across left/right or vertically down/up of your web site page depending on the settings.
Example:

<marquee>This is Sample example of marquee</marquee>
This will produce following result:

This is Sample example of marquee
Attributes:
Attribute
Value
Description
behavior scroll
slid
alternate
Defines the type of scrolling.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
Deprecated - Specifies the background color.
direction up
down
left
right
Defines the direction of scrolling the content.
height pixels or % Defines the height of marquee.
hspace pixels Specifies horizontal space around the marquee.
loop number Specifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
scrolldelay seconds Defines how long to delay between each jump.
scrollamount number Defines how how far to jump.
width pixels or % Defines the width of marquee.
vspace pixels Specifies vertical space around the marquee.
Standard Attributes:
Attribute
Description
class Document wide identifier
dir Specifies the direction of the text
id Document wide identifier
title Specifies a title to associate with the element.
style Helps to include inline casecadubf style sheet.
lang Sets the language code.
xml:lang Sets the language code.
Event Attributes:
Attribute
Description
onclick Script runs when a mouse click
ondblclick Script runs when a mouse double-click
onmousedown Script runs when mouse button is pressed
onmouseup Script runs when mouse button is released
onmouseover Script runs when mouse pointer moves over an element
onmousemove Script runs when mouse pointer moves
onmouseout Script runs when mouse pointer moves out of an element
onkeypress Script runs when key is pressed and released
onkeydown Script runs when key is pressed
onkeyup Script runs when key is released
Ex:-
 <marquee behavior="alternate" bgcolor="#FFCCFF" width="400px" height="200px" direction="up" loop="4" scrollamount="6" scrolldelay="600" >
It Job Careers, The Best Site For IT Computer Course Learners And Job Seekers!
</marquee>

o/p>---
It Job Careers, The Best Site For IT Computer Course Learners And Job Seekers!

Related Posts Plugin for WordPress, Blogger...