Friday, 15 July 2016

Class 7 -HTML

Select the correct answer:
  1. HTML stands for
  • Hyper Text Markup Language
  • Hyper Text Makeup Language

2. Container element has both
  • opening and middle tag
  • opening and closing tag
3. <br> is
  • a line break tag
  • an empty tag
  • line break and an empty tag
4. Firefox is
  • an editor
  • a web browser
  • search engine
5. How would you give the background colour
  • <body backcolor=red>
  • <body bgcolour=red>
  • <body bgcolor=red>
  • <body backcolour=red>
  • <body bg color=red>
6. To change the colour of the letters and numbers you type
  • <text=green>
  • <body textcolour=green>
  • <body text=green>
  • <textcolour=green>
7. <p> tag
  • moves the cursor to the next line
  • leaves a blank line
  • leaves a paragraph
8. _____ are not displayed in the web browser.
  • comments
  • title
  • body
9. To align the text in the middle of the page
  • <align=center>
  • <align=centre>
  • <p align=centre>
  • <center>
10. Heading tags ranges from ___ to _____
  • 1 to 7
  • 1 to 6
  • 1 to 3
11. To make the text look darker
  • <dark>
  • <b>
  • <bold>
12. To draw a line across the text
  • <u>
  • <line>
  • <strike>
  • <strikethrough>
13. The largest heading tag is
  • <head>
  • <h1>
  • <h6>

14. The text between <title> and </title> will be displayed
  • in the title bar
  • in the heading bar
  • in the web page
  • none of the above
15. An attribute is
  • an additional information about the tag
  • main tag
  • an example
16. An example of WYSIWYG
  • MS Word
  • Frontpage
  • HTML



      Wednesday, 13 July 2016

      Class 8 - Introduction to Visual Basic

      Visual Basic

      Visual basic was derived from the language BASIC. 

      BASIC has its own limitations., it is a simple programming language but used only in a text based environment. But visual basic is

      • User friendly

      • Supports Graphical User Interface(GUI)VB

      VB is an Event- driven programming, which means the flow of the program is determined by an Event.

      An Event is an action performed either by mouse click, double click or pressing keys on the keyboard.

       Integrated Development Environment describes the interface and the environment we use to create our own applications.

       1. Form design window
       2. Tool box

       3. Menu bar

       4. Project explorer

       5. Properties window

       6. Form layout


      Project Explorer Window
                   
                    It lists all the forms in the project. The components of the window are:
      • View code
      • View object
      • Toggle folders
      • Project name
      • Forms folder
      • form module


      Properties Window

                    It displays the properties like font name, caption, background colour etc of the selected object on the form.

      A form is saved with an extension  .frm .
      A project is saved with an extension .vbp .

              To execute the visual basic program :
      •         Click Run from Start option
      •         Click start on the Toolbar
      •         Press F5 key
                            

      Class 7 : Introduction to HTML

      HTML
      HTML (Hyper Text MarkUp Language) is used to create web pages. The codes are called tags. The tags are given within < and >.
      There are two types of tags ,
      i.                   Container Tag : It has both opening and closing tags.
                               e.g : <html>  </html>
      ii.                 Empty Tag     : It has only a opening tag.
                              e.g : <br>
      The basic structure of a HTML document is
      <html>
      <head>
      <title>
      </title>
      </head>
      <body>
      ………
      ……..
      </body>
      </html>
       Whatever is typed between <title> and </title>  will be displayed on the title bar not in the web page.

      <html>
      <head><title> My Page BCBS</title>
      </head>

      <body>
      Your text goes here.
      </body>
      </html>

      Example 1 :
      <html>
      <head><title> My Page BCBS</title>
      </head>
      <body>
      Bishop Cotton Boys' School
      </body>
      </html>


      The output will be :




      The data entered between <body> and </body> only  will be displayed in the web page.
      Line break tag <br>:
      It moves the cursor to the next line.
      Paragraph Tag <p> :
      It leaves a blank line.
      Example 1 :
      <html>
      <head><title> My Page BCBS</title>
      </head>
      <body>
      BCBS <p>

      Thomas House <br>
      Pope House <br>
      Elphick House <br>
      Pakenham Walsh  House <br>
      Pettigrew House
      </body>
      </html>


      The output will be :

       

      Monday, 14 March 2016

      Class 8 - Repetition Programming(For)

      Loops

      If we want to repeat a set of statements , looping statements are used.
      There are two types :
      • For ... Next
      • Do ....Loop

      For ... Next

      Probably this is the easiest of the looping statements. The general form is given as

      For variable=initial value to final value step value
      --------------
      -------------
      Next variable

      1. Display the numbers from 1 to 10.

      Dim a as integer
      For a=1 to 10
      Print a
      Next a

      Note :
      • Step value is used to increment or decrement . In the above program it should have been Step 1, since the difference between two numbers is 1. But Step 1 is the default value so no need to write it.
      2. Display the even numbers from 5 to 50

      Dim a as integer
      For a=6 to 50 step 2
      Print a
      Next a

      3. Display the following numbers:
           100 
           90
           80
           ....
           ....
           10


      Dim a as integer
      For a=100 to 10 step -10
      Print a
      Next a

      Note :
      Here the numbers are in descending order , therefore step -10. 
       

      Class 7 - Frames(Revision)


      Class 7 - Creating Frames (video)

      Sunday, 13 March 2016

      Class 7 - Creating Frames

      One.html
      <html>
      <body bgcolor=olive text=white>
      <b><center> One</center></b>
      </body>
      </html>


      ------------------------------------------------------------------------------------
      Two.html
      <html>
      <body bgcolor=pink text=white>
      <b><center> Two</center></b>
      </body>
      </html>


      -----------------------------------------------------------------------------------

      <html>
      <frameset rows=30%,*>
      <frame src=one.html>
      <frame src=two.html>
      </frameset>
      </frameset>


      Output :


      *******************************************************

      <html>
      <frameset cols=30%,35%,*>
      <frame src=three.html>
      <frame src=four.html>
      <frame src=five.html>
      </frameset>
      </frameset>



      Output :


      ---------------------------------------------------------------------------------
      <html>
      <frameset rows=35%,*>
      <frame src=one.html>
      <frameset cols=30%,35%,*>
      <frame src=three.html>
      <frame src=four.html>
      <frame src=five.html>
      </frameset>
      </frameset>
      </html>


      Output :