SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
Programming & Development Tools                         Introduction to Programming




                                                                  UNIT


                                                            1.2
Introduction to Programming
Introduction to Source Code




OBJECTIVES
This unit explains about the source code in office application.
At the end of this unit, you will be able to
           List various tags used in the source code
           Identify the tags used in the source code
           Describe the function of the tags used in the source code
           Manipulate the source code to see the effect




Benchmark Standard
           Get familiar with source code used in Microsoft Script Editor.
           Create new files and identify the appropriate tags used in them.
           Execute the manipulated source code without any error.



Introduction to Source Code                                              1.2-1
Programming & Development Tools                           Introduction to Programming




Let us Revise!

       1. Define Task Pane.
       2. Explain the need for Microsoft Script editor.
       3. __________ is a horizontal bar that appears at the top of the active
          window which is associated with pull-down menus.
       4. _______ is a collection of icons that provides easy access
          commonly used menu commands.



Introduction
Office is an application that is based on GUI. It helps the user to create
documents and presentations with a mouse click. However, each command in
this application is coded using programming languages and other scripting
languages. You can view the source code of each command using the
Microsoft Script Editor. In this unit you will learn the basic tags used for the
coding purpose.


1.2.1 Backbone of Office Applications
When you see the source code of an office document in the Microsoft Script
Editor, you will see lot of information that appears. It has both XML and HTML
codes. XML data is stored within the HTML code. XML is used to describe the
data and HTML is used to format the data. Figure 1.2.1 displays the source
code of a Word document.




Introduction to Source Code                                                1.2-2
Programming & Development Tools                    Introduction to Programming




               Figure 1.2.1: Source Code of a Word Document

In Figure 1.2.1, XML code is used to describe the document properties such
as author name, number of pages in the document and number of lines etc.
You will notice that the XML code is enclosed within the tags <xml> and
</xml>.


Figure 1.2.2 shows the HTML code in the word document.




Introduction to Source Code                                         1.2-3
Programming & Development Tools                       Introduction to Programming




                   Figure 1.2.2: HTML Code in the Document

You will notice that the HTML code describes the way the document is going
to appear. In the figure, the font size is defined to be 20. Therefore, in the
document, the font size of the text Malaysia will be 20. Notice that the HTML
code is enclosed between <html> and </html> tags.


     Hands-On!


   1. Open a blank document.
   2. Open the script editor by choosing Tools     Macro     Microsoft
      Script Editor.
   3. Notice that the XML codes are enclosed within the tags <xml> and
      </xml>.
   4. Notice that the HTML codes are enclosed within the tags <html> and
      </html>.




Introduction to Source Code                                            1.2-4
Programming & Development Tools                                 Introduction to Programming




Significance of the Colours in the Microsoft Script Editor
Table 1.2.1 list the display item along with their colour in script editor.


                    Display Items              Foreground Colour
                         Text                        Black
                 HTML Attribute Name                     Red
                 HTML Attribute Value                    Blue
                    HTML Comment                     Dark Green
                 HTML Element Name                     Maroon
                     HTML Tag Text                     Magenta

                    Table 1.2.1: Display Items and its Colour


      Lab Exercise

Lab Exercise 1: Open a blank document. Observe the source code in Microsoft Script Editor.
Lab Exercise 2: Open a blank workbook. Observe the source code in Microsoft Script Editor.
Lab Exercise 3: Open a blank presentation. Observe the source code in Microsoft Script
                Editor.


1.2.1 (A) Basic HTML Tags
Definition: Tags are the instructions that specify how the document appears.


(a) Head Tag
The head tag provides information that does not affect the document but
provides information to the browser when publishing the document on web.
The necessary codes have to be enclosed within the tags <head> and
</head>.


      Activity 1.2.1


Open the data file Malaysia.doc. Identify the head tag and the data enclosed
within this tag.




Introduction to Source Code                                                      1.2-5
Programming & Development Tools                        Introduction to Programming




(b) Body Tag
The body tag specifies the beginning and end of the document.

     Hands-On!

   1. Open the data file Food.doc.
   2. Open the script editor and observe the code.
   3. In Figure 1.2.3, the <body> marks the beginning of the document and
      </body> marks the end of the document.




                   Figure 1.2.3: Body Tag in the Script Editor

(c) Paragraph Tag
The paragraph tag is used for creating paragraphs. The paragraph text must
be enclosed with the tags <p> and </p>.


Introduction to Source Code                                             1.2-6
Programming & Development Tools                        Introduction to Programming




     Hands-On!

   1. Open the data file About_Malaysia.doc.
   2. Open the script editor. Editor opens as shown in the Figure 1.2.4.




               Figure 1.2.4: Paragraph Tag in the Script Editor

   3. Notice that the paragraphs are enclosed with the tags <p> and </p>.


(d) Heading Tag
Heading tag specifies different sizes and styles for the heading.

     Hands-On!

   1. Open the data file Heading.doc.
   2. Open the script editor. In the editor, the code appears as shown in the
      Figure 1.2.5.




Introduction to Source Code                                             1.2-7
Programming & Development Tools                          Introduction to Programming




                 Figure 1.2.5: Heading Tag in the Script Editor

   3. Notice that for different heading styles different tags have been applied.


Table 1.2.2 shows various tags with their description.
      Tag                    Description                        Code
                    Specifies the beginning and
      XML                                                <xml> ... </xml>
                    end of the XML code.
                    Specifies the beginning and
     HTML                                            <html> ... </html>
                    end of the HTML code.
                    Provides information to the
      Head                                           <head> ... </head>
                    browser.
                    Specifies the beginning and
      Body                                           <body> ... </body>
                    end of the document.
   Paragraph        Creates paragraphs.                    <p> ... </p>
                    Specifies different sizes and         <h1> ... </h1>
                    styles for the heading.                     ...
    Heading                                                     ...
                                                                ...
                                                           <h6> ... <h6>

                 Table 1.2.2: Basic Tags Used in Script Editor




Introduction to Source Code                                               1.2-8
Programming & Development Tools                               Introduction to Programming




Table 1.2.3 lists the other commonly used tags in the script editor. You will
learn more about tags in Unit 3.


      Tag                    Description                              Code
                    Specifies that the text must
        B                                                       <b> ... </b>
                    be bold.
                    Specifies that the text must
        I                                                       <i> ... </i>
                    be italics.
                    Specifies that the text must
        U                                                       <u> ... </u>
                    be underlined.
      IMG           Inserts image into the file.                     <img>


                     Table 1.2.3: Tags Used in Script Editor



      Activity 1.2.2

Identify any two pair of tags present in the following code:
       <html>
       <body lang=EN-GB style='tab-interval:.5in'>
       <p class=MsoNormal><span lang=EN-US>COOL</span></p>
       </body>
       </html>

      Self-Check Exercise 1.2.1


     1. <body> specifies the ____________ of the document.
     2. _________ provides information to the browser.
     3. <h4> is a valid tag (T/F).



      Lab Exercise

Lab Exercise 4: Open a blank document and type your name. Copy and paste the text five
                times. Save the document as Name.doc. Identify the various tags used in
                the source code.




Introduction to Source Code                                                    1.2-9
Programming & Development Tools                       Introduction to Programming




      Technical Terminologies

Tag    –       The instructions that specify how the document appears.


Summary
In this unit, you learnt that:
           Tags are the instructions that specify how the document appears.
           The head tag provides information that does not affect the
           document but provides information to the browser when publishing
           the document on Web.
           The body tag specifies the beginning and end of the document.
           The paragraph tag is used for creating paragraphs.
           Heading tag specifies different sizes and styles for the heading.




 Assignment

       1. List any four tags used in script editor.
       2. Identify any three tags in the following:
           <html>
           <body lang=EN-GB style='tab-interval:.5in'>
           <h2><span class=GramE>
           <span lang=EN-US>sadsha</span> </span></h2>
           </body>
           </html>




Introduction to Source Code                                            1.2-10
Programming & Development Tools                        Introduction to Programming




Criterion Referenced Test
Instruction: Students must evaluate themselves to attain the list of
             competencies to be achieved.


Name:
Subject: Programming and Development Tools
Unit: Introduction to Source Code


Please tick [ √ ] the appropriate box when you have achieved the respective
competency.


                   Date           Introduction to Source Code
                                      C1               C2




                 Comment


Competency Codes:


C1 = Identify the various tags such as head tag, body tag, paragraph tag and
     heading tags used in Microsoft Script Editor.
C2 = List the various tags such as <xml>, <html> and <body> used in the
     source code and describe functions.




Introduction to Source Code                                             1.2-11

Mais conteúdo relacionado

Mais procurados

HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project Ankit Gupta
 
Mark-up languages
Mark-up languagesMark-up languages
Mark-up languagesSukh Sandhu
 
Your Guide to be a Software Engineer
Your Guide to be a Software EngineerYour Guide to be a Software Engineer
Your Guide to be a Software EngineerAhmed Mater
 
Visual Programming
Visual ProgrammingVisual Programming
Visual ProgrammingBagzzz
 

Mais procurados (9)

Ex11 mini project
Ex11 mini projectEx11 mini project
Ex11 mini project
 
Visual basic
Visual basicVisual basic
Visual basic
 
HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project HTML (Hyper Text Markup Language) Project
HTML (Hyper Text Markup Language) Project
 
ai
aiai
ai
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
Mark-up languages
Mark-up languagesMark-up languages
Mark-up languages
 
Your Guide to be a Software Engineer
Your Guide to be a Software EngineerYour Guide to be a Software Engineer
Your Guide to be a Software Engineer
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 

Destaque

Типичные ошибки продвижения проекта в Интернете — Максим Спиридонов
Типичные ошибки продвижения проекта в Интернете — Максим СпиридоновТипичные ошибки продвижения проекта в Интернете — Максим Спиридонов
Типичные ошибки продвижения проекта в Интернете — Максим СпиридоновMaria Podolyak
 
How To Make Cookies Of Tea
How To Make Cookies Of TeaHow To Make Cookies Of Tea
How To Make Cookies Of Teaemi902
 
Diploma de Innovación Educativa con Tecnologías Emergentes
Diploma de Innovación Educativa con Tecnologías EmergentesDiploma de Innovación Educativa con Tecnologías Emergentes
Diploma de Innovación Educativa con Tecnologías EmergentesIsmael Burone
 
Рынок смартфонов и планшетов США. 2012 и 2013
Рынок смартфонов и планшетов США. 2012 и 2013Рынок смартфонов и планшетов США. 2012 и 2013
Рынок смартфонов и планшетов США. 2012 и 2013Maria Podolyak
 
Brodeur Numbersto30
Brodeur Numbersto30Brodeur Numbersto30
Brodeur Numbersto30guest75628b
 
Pointing Your Domain Name To Your Website
Pointing Your Domain Name To Your WebsitePointing Your Domain Name To Your Website
Pointing Your Domain Name To Your Websitepahmah
 
Lyddie: Unit3 lesson8
Lyddie: Unit3 lesson8Lyddie: Unit3 lesson8
Lyddie: Unit3 lesson8Terri Weiss
 
Kkkasunumu
KkkasunumuKkkasunumu
Kkkasunumuanttab
 
Il cannocchiale aristotelico in viaggio per una mostra...
Il cannocchiale aristotelico in viaggio per una mostra...Il cannocchiale aristotelico in viaggio per una mostra...
Il cannocchiale aristotelico in viaggio per una mostra...stefanogambari
 
Story Telling By Eddie Choi
Story Telling By Eddie ChoiStory Telling By Eddie Choi
Story Telling By Eddie ChoiEddie Choi
 
2.1 Web Programming - InternetBasics
2.1 Web Programming - InternetBasics2.1 Web Programming - InternetBasics
2.1 Web Programming - InternetBasicsIntan Jameel
 
Mayan Center for Peace: Guatemala to Minnesota
Mayan Center for Peace:  Guatemala to MinnesotaMayan Center for Peace:  Guatemala to Minnesota
Mayan Center for Peace: Guatemala to Minnesotaadam.utley
 
Kenesunumu
KenesunumuKenesunumu
Kenesunumuanttab
 
Kkkasunu2
Kkkasunu2Kkkasunu2
Kkkasunu2anttab
 

Destaque (20)

Типичные ошибки продвижения проекта в Интернете — Максим Спиридонов
Типичные ошибки продвижения проекта в Интернете — Максим СпиридоновТипичные ошибки продвижения проекта в Интернете — Максим Спиридонов
Типичные ошибки продвижения проекта в Интернете — Максим Спиридонов
 
The CLAS APP
The CLAS APPThe CLAS APP
The CLAS APP
 
How To Make Cookies Of Tea
How To Make Cookies Of TeaHow To Make Cookies Of Tea
How To Make Cookies Of Tea
 
Diploma de Innovación Educativa con Tecnologías Emergentes
Diploma de Innovación Educativa con Tecnologías EmergentesDiploma de Innovación Educativa con Tecnologías Emergentes
Diploma de Innovación Educativa con Tecnologías Emergentes
 
Рынок смартфонов и планшетов США. 2012 и 2013
Рынок смартфонов и планшетов США. 2012 и 2013Рынок смартфонов и планшетов США. 2012 и 2013
Рынок смартфонов и планшетов США. 2012 и 2013
 
Brodeur Numbersto30
Brodeur Numbersto30Brodeur Numbersto30
Brodeur Numbersto30
 
Pointing Your Domain Name To Your Website
Pointing Your Domain Name To Your WebsitePointing Your Domain Name To Your Website
Pointing Your Domain Name To Your Website
 
Lyddie: Unit3 lesson8
Lyddie: Unit3 lesson8Lyddie: Unit3 lesson8
Lyddie: Unit3 lesson8
 
Kkkasunumu
KkkasunumuKkkasunumu
Kkkasunumu
 
Il cannocchiale aristotelico in viaggio per una mostra...
Il cannocchiale aristotelico in viaggio per una mostra...Il cannocchiale aristotelico in viaggio per una mostra...
Il cannocchiale aristotelico in viaggio per una mostra...
 
Netiquette
NetiquetteNetiquette
Netiquette
 
Iatefl 2014
Iatefl 2014Iatefl 2014
Iatefl 2014
 
Story Telling By Eddie Choi
Story Telling By Eddie ChoiStory Telling By Eddie Choi
Story Telling By Eddie Choi
 
2.1 Web Programming - InternetBasics
2.1 Web Programming - InternetBasics2.1 Web Programming - InternetBasics
2.1 Web Programming - InternetBasics
 
M02 un04 p02
M02 un04 p02M02 un04 p02
M02 un04 p02
 
Sprawozdanie
SprawozdanieSprawozdanie
Sprawozdanie
 
Mayan Center for Peace: Guatemala to Minnesota
Mayan Center for Peace:  Guatemala to MinnesotaMayan Center for Peace:  Guatemala to Minnesota
Mayan Center for Peace: Guatemala to Minnesota
 
Kenesunumu
KenesunumuKenesunumu
Kenesunumu
 
ToncrayPRess
ToncrayPRessToncrayPRess
ToncrayPRess
 
Kkkasunu2
Kkkasunu2Kkkasunu2
Kkkasunu2
 

Semelhante a Unit 1.2

Unit 1.2 Introduction to Programming
Unit 1.2 Introduction to Programming Unit 1.2 Introduction to Programming
Unit 1.2 Introduction to Programming Intan Jameel
 
UNIT 2.2 Web Programming HTML Basics - Benchmark standard
UNIT 2.2 Web Programming HTML Basics - Benchmark standardUNIT 2.2 Web Programming HTML Basics - Benchmark standard
UNIT 2.2 Web Programming HTML Basics - Benchmark standardIntan Jameel
 
1.3 Process and Information Layout
1.3 Process and Information Layout1.3 Process and Information Layout
1.3 Process and Information LayoutIntan Jameel
 
Introduction to html (912 kb)
Introduction to html (912 kb)Introduction to html (912 kb)
Introduction to html (912 kb)IMRAN KHAN
 
introdution-to-html.pptx
introdution-to-html.pptxintrodution-to-html.pptx
introdution-to-html.pptxdatapro2
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).pptMarktero2
 
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptx
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptxCOMPUTER-9-LESSON-2-Basic-HTML-Elements.pptx
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptxjoydesiar2
 
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxChapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxrajinevitable05
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.pptSri Latha
 
HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...ssuser6478a8
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).pptF3ZONE1
 
introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJGAMRITHA16
 

Semelhante a Unit 1.2 (20)

Unit 1.2 Introduction to Programming
Unit 1.2 Introduction to Programming Unit 1.2 Introduction to Programming
Unit 1.2 Introduction to Programming
 
Unit 2.3
Unit 2.3Unit 2.3
Unit 2.3
 
UNIT 2.2 Web Programming HTML Basics - Benchmark standard
UNIT 2.2 Web Programming HTML Basics - Benchmark standardUNIT 2.2 Web Programming HTML Basics - Benchmark standard
UNIT 2.2 Web Programming HTML Basics - Benchmark standard
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
1.3 Process and Information Layout
1.3 Process and Information Layout1.3 Process and Information Layout
1.3 Process and Information Layout
 
MMI-402 - Lecture 1
MMI-402 - Lecture 1MMI-402 - Lecture 1
MMI-402 - Lecture 1
 
Introduction to html (912 kb)
Introduction to html (912 kb)Introduction to html (912 kb)
Introduction to html (912 kb)
 
Html
HtmlHtml
Html
 
introdution-to-html.pptx
introdution-to-html.pptxintrodution-to-html.pptx
introdution-to-html.pptx
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).ppt
 
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptx
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptxCOMPUTER-9-LESSON-2-Basic-HTML-Elements.pptx
COMPUTER-9-LESSON-2-Basic-HTML-Elements.pptx
 
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptxChapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
Chapter vvxxxxxxxxxxx1 - Part 1 (3).pptx
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
summary html.ppt
summary html.pptsummary html.ppt
summary html.ppt
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...HTML is a markup language used by the browser to manipulate text, images, and...
HTML is a markup language used by the browser to manipulate text, images, and...
 
introdution-to-html (1).ppt
introdution-to-html (1).pptintrodution-to-html (1).ppt
introdution-to-html (1).ppt
 
introdution-to-html.ppt NJBJGHGJHGGJGJG
introdution-to-html.ppt  NJBJGHGJHGGJGJGintrodution-to-html.ppt  NJBJGHGJHGGJGJG
introdution-to-html.ppt NJBJGHGJHGGJGJG
 
html.pptx
html.pptxhtml.pptx
html.pptx
 

Mais de Intan Jameel (20)

Unit 2.10 - Frames
Unit 2.10 - FramesUnit 2.10 - Frames
Unit 2.10 - Frames
 
M02 un11 p02
M02 un11 p02M02 un11 p02
M02 un11 p02
 
M02 un10 p02
M02 un10 p02M02 un10 p02
M02 un10 p02
 
M02 un10 p01
M02 un10 p01M02 un10 p01
M02 un10 p01
 
M02 un09 p02
M02 un09 p02M02 un09 p02
M02 un09 p02
 
M02 un09 p01
M02 un09 p01M02 un09 p01
M02 un09 p01
 
M02 un08 p01
M02 un08 p01M02 un08 p01
M02 un08 p01
 
M02 un07 p02
M02 un07 p02M02 un07 p02
M02 un07 p02
 
M02 un07 p01
M02 un07 p01M02 un07 p01
M02 un07 p01
 
M02 un06 p02
M02 un06 p02M02 un06 p02
M02 un06 p02
 
M02 un06 p01
M02 un06 p01M02 un06 p01
M02 un06 p01
 
M02 un05 p02
M02 un05 p02M02 un05 p02
M02 un05 p02
 
M02 un05 p01
M02 un05 p01M02 un05 p01
M02 un05 p01
 
M02 un04 p04
M02 un04 p04M02 un04 p04
M02 un04 p04
 
M02 un04 p03
M02 un04 p03M02 un04 p03
M02 un04 p03
 
M02 un04 p01
M02 un04 p01M02 un04 p01
M02 un04 p01
 
M02 un12 p01
M02 un12 p01M02 un12 p01
M02 un12 p01
 
M02 un11 p01
M02 un11 p01M02 un11 p01
M02 un11 p01
 
Unit 2.3 Part 1
Unit 2.3 Part 1Unit 2.3 Part 1
Unit 2.3 Part 1
 
Unit 2.2 Part 1
Unit 2.2 Part 1Unit 2.2 Part 1
Unit 2.2 Part 1
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Unit 1.2

  • 1. Programming & Development Tools Introduction to Programming UNIT 1.2 Introduction to Programming Introduction to Source Code OBJECTIVES This unit explains about the source code in office application. At the end of this unit, you will be able to List various tags used in the source code Identify the tags used in the source code Describe the function of the tags used in the source code Manipulate the source code to see the effect Benchmark Standard Get familiar with source code used in Microsoft Script Editor. Create new files and identify the appropriate tags used in them. Execute the manipulated source code without any error. Introduction to Source Code 1.2-1
  • 2. Programming & Development Tools Introduction to Programming Let us Revise! 1. Define Task Pane. 2. Explain the need for Microsoft Script editor. 3. __________ is a horizontal bar that appears at the top of the active window which is associated with pull-down menus. 4. _______ is a collection of icons that provides easy access commonly used menu commands. Introduction Office is an application that is based on GUI. It helps the user to create documents and presentations with a mouse click. However, each command in this application is coded using programming languages and other scripting languages. You can view the source code of each command using the Microsoft Script Editor. In this unit you will learn the basic tags used for the coding purpose. 1.2.1 Backbone of Office Applications When you see the source code of an office document in the Microsoft Script Editor, you will see lot of information that appears. It has both XML and HTML codes. XML data is stored within the HTML code. XML is used to describe the data and HTML is used to format the data. Figure 1.2.1 displays the source code of a Word document. Introduction to Source Code 1.2-2
  • 3. Programming & Development Tools Introduction to Programming Figure 1.2.1: Source Code of a Word Document In Figure 1.2.1, XML code is used to describe the document properties such as author name, number of pages in the document and number of lines etc. You will notice that the XML code is enclosed within the tags <xml> and </xml>. Figure 1.2.2 shows the HTML code in the word document. Introduction to Source Code 1.2-3
  • 4. Programming & Development Tools Introduction to Programming Figure 1.2.2: HTML Code in the Document You will notice that the HTML code describes the way the document is going to appear. In the figure, the font size is defined to be 20. Therefore, in the document, the font size of the text Malaysia will be 20. Notice that the HTML code is enclosed between <html> and </html> tags. Hands-On! 1. Open a blank document. 2. Open the script editor by choosing Tools Macro Microsoft Script Editor. 3. Notice that the XML codes are enclosed within the tags <xml> and </xml>. 4. Notice that the HTML codes are enclosed within the tags <html> and </html>. Introduction to Source Code 1.2-4
  • 5. Programming & Development Tools Introduction to Programming Significance of the Colours in the Microsoft Script Editor Table 1.2.1 list the display item along with their colour in script editor. Display Items Foreground Colour Text Black HTML Attribute Name Red HTML Attribute Value Blue HTML Comment Dark Green HTML Element Name Maroon HTML Tag Text Magenta Table 1.2.1: Display Items and its Colour Lab Exercise Lab Exercise 1: Open a blank document. Observe the source code in Microsoft Script Editor. Lab Exercise 2: Open a blank workbook. Observe the source code in Microsoft Script Editor. Lab Exercise 3: Open a blank presentation. Observe the source code in Microsoft Script Editor. 1.2.1 (A) Basic HTML Tags Definition: Tags are the instructions that specify how the document appears. (a) Head Tag The head tag provides information that does not affect the document but provides information to the browser when publishing the document on web. The necessary codes have to be enclosed within the tags <head> and </head>. Activity 1.2.1 Open the data file Malaysia.doc. Identify the head tag and the data enclosed within this tag. Introduction to Source Code 1.2-5
  • 6. Programming & Development Tools Introduction to Programming (b) Body Tag The body tag specifies the beginning and end of the document. Hands-On! 1. Open the data file Food.doc. 2. Open the script editor and observe the code. 3. In Figure 1.2.3, the <body> marks the beginning of the document and </body> marks the end of the document. Figure 1.2.3: Body Tag in the Script Editor (c) Paragraph Tag The paragraph tag is used for creating paragraphs. The paragraph text must be enclosed with the tags <p> and </p>. Introduction to Source Code 1.2-6
  • 7. Programming & Development Tools Introduction to Programming Hands-On! 1. Open the data file About_Malaysia.doc. 2. Open the script editor. Editor opens as shown in the Figure 1.2.4. Figure 1.2.4: Paragraph Tag in the Script Editor 3. Notice that the paragraphs are enclosed with the tags <p> and </p>. (d) Heading Tag Heading tag specifies different sizes and styles for the heading. Hands-On! 1. Open the data file Heading.doc. 2. Open the script editor. In the editor, the code appears as shown in the Figure 1.2.5. Introduction to Source Code 1.2-7
  • 8. Programming & Development Tools Introduction to Programming Figure 1.2.5: Heading Tag in the Script Editor 3. Notice that for different heading styles different tags have been applied. Table 1.2.2 shows various tags with their description. Tag Description Code Specifies the beginning and XML <xml> ... </xml> end of the XML code. Specifies the beginning and HTML <html> ... </html> end of the HTML code. Provides information to the Head <head> ... </head> browser. Specifies the beginning and Body <body> ... </body> end of the document. Paragraph Creates paragraphs. <p> ... </p> Specifies different sizes and <h1> ... </h1> styles for the heading. ... Heading ... ... <h6> ... <h6> Table 1.2.2: Basic Tags Used in Script Editor Introduction to Source Code 1.2-8
  • 9. Programming & Development Tools Introduction to Programming Table 1.2.3 lists the other commonly used tags in the script editor. You will learn more about tags in Unit 3. Tag Description Code Specifies that the text must B <b> ... </b> be bold. Specifies that the text must I <i> ... </i> be italics. Specifies that the text must U <u> ... </u> be underlined. IMG Inserts image into the file. <img> Table 1.2.3: Tags Used in Script Editor Activity 1.2.2 Identify any two pair of tags present in the following code: <html> <body lang=EN-GB style='tab-interval:.5in'> <p class=MsoNormal><span lang=EN-US>COOL</span></p> </body> </html> Self-Check Exercise 1.2.1 1. <body> specifies the ____________ of the document. 2. _________ provides information to the browser. 3. <h4> is a valid tag (T/F). Lab Exercise Lab Exercise 4: Open a blank document and type your name. Copy and paste the text five times. Save the document as Name.doc. Identify the various tags used in the source code. Introduction to Source Code 1.2-9
  • 10. Programming & Development Tools Introduction to Programming Technical Terminologies Tag – The instructions that specify how the document appears. Summary In this unit, you learnt that: Tags are the instructions that specify how the document appears. The head tag provides information that does not affect the document but provides information to the browser when publishing the document on Web. The body tag specifies the beginning and end of the document. The paragraph tag is used for creating paragraphs. Heading tag specifies different sizes and styles for the heading. Assignment 1. List any four tags used in script editor. 2. Identify any three tags in the following: <html> <body lang=EN-GB style='tab-interval:.5in'> <h2><span class=GramE> <span lang=EN-US>sadsha</span> </span></h2> </body> </html> Introduction to Source Code 1.2-10
  • 11. Programming & Development Tools Introduction to Programming Criterion Referenced Test Instruction: Students must evaluate themselves to attain the list of competencies to be achieved. Name: Subject: Programming and Development Tools Unit: Introduction to Source Code Please tick [ √ ] the appropriate box when you have achieved the respective competency. Date Introduction to Source Code C1 C2 Comment Competency Codes: C1 = Identify the various tags such as head tag, body tag, paragraph tag and heading tags used in Microsoft Script Editor. C2 = List the various tags such as <xml>, <html> and <body> used in the source code and describe functions. Introduction to Source Code 1.2-11