How to Design a Web Page?


Designing  a   web  page  :

Java  applets  are  program  that  reside  one  web page.  In  order  to run  a  Java  applet, it is  first necessary  to   have a   webpage  that reference  the applet.

A  webpage  is   basically  made up of text and HTML tags can be interpreted   by  a web browser (or) an  applet  viewer. A  web page  is  also known as  HTML  page  or  HTML document. web page  are  stored using a file  extension .HTML  such as  MyApplet. HTML . Such file   are referred  to as  HTML files. HTML  files should be  in the same  directory   as  the compiled code  of  the applets.

A  web  page  is  marked by  an  opening   HTML  tag < HTML  > and  a  closing .HTML tag  <  /   HTML > and is  divided  in  to the  following  three  major  section.

1. Comment   section (optional)
2. Head   section  ( optional)
3. Body  section

Comment  section  :-

This   section  contains   comments  about  the  web page. It is  important  to   include comments  that  tell  us   what  is  going  on in the web page.  A  comment   line  beings  with a < !   and   ends with a  >. Web  browsers  will  ignore  the  text  enclosed  between  them.  Although    comments  are  important , they should  be  kept  to  a  minimum  as  they    coil  be  downloaded   along  with  the  applet. Note  that  comment  are   optical can be  included  any where  in  the  webpage.

 Head  section  : 

The  head  section  is   defined  with a   starting  < HEAD  >  tag  and a  closing  < /HEAD>  tag. This  section usually  contains    a  title   for the   web page .
<  HEAD  >
< TITLE  >   welcome  to   Java  applet  </ TITLE>
<   / HEAD >

The  text enclosed    in   the  tags  <   TITLE> and < /  TITLE >  will  appear  in  the title  bar  of  the  web page. The  head   section  is   also   optional.

< !
  –––
  –––     //  comment  section
> 

<   HEAD >

Title tag
//Head section


<  / HEAD >

< BODY >

Applet tag
//Body section


          
< / Body >
<  / HT ML >

Body  section : 

After  the  head section comes  the  body  section  we  call   this as  body section   about  the  web page  is    its  behavior    we can  set up  many   options  to   indicate  how  our  page  must  appears   on the  screen:
(like colour,  location , sound  etc ).

<  BODY >
 < CENTER >
  <  H1> Welcome  to  the  world  of  Applets  < / H1 >
 <  / CENTER >
 < BR  >
 < Applet  ---- >
 <  / Applet >
 < /  Body >
                    












































Related

What is an array ? Write about one dimensional array?

Array: An array is a group of contagious (or) continuous related data items that share a common name. a particular value in an array is indicated by writing a number called index...

Write About Method overriding in Java?

Method overriding: A method defined in a super class is inherited by its subclass and is used by the objects created by the subclass .method inheritance enable us to define and use methods repeate...

String buffer class in Java?

String buffer class: String buffer is a peer class of string. While string creates strings of fixed length, string buffer creates strings of flexible length that can be modified in...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item