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

Java 5961371644723473128

Post a Comment

emo-but-icon

item