SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Programming and Development Tools                            Web Programming




                                                               UNIT


                                                           2.2
Web Programming
HTML Basics




OBJECTIVES
This unit helps you to create HTML documents and familiarise the structure
of HTML documents.
At the end of this unit, you will be able to
     Outline the structure of HTML document
     Create HTML document
Benchmark standard
     Execute HTML document in a Web browser
     Edit the errors in HTML document
           Acquainted with the creation of HTML document




Benchmark Standard
           Describe the structure of HTML document.
           Publish simple HTML documents in a Web browser without any
           error.




HTML Basics                                                            2.2-1
Programming and Development Tools                                         Web Programming



Let us Revise!

     1. List the requirements to get Internet connection.
     2. List any five search engines.
     3. Define the term E-commerce.
     4. Write the use of Forward button in Internet Explorer.
     5. Expand WWW and URL.


 Introduction
 You learnt that a Web page is an electronic document that contains
 information in the form of text, pictures, graphics, audio and video. The Web
 pages are displayed by a Web browser in the browser window. The Web
 browser reads the instructions from a file and displays the document in the
 browser window according to the instructions. This can be better understood
 from the pictorial representation given in Figure 2.2.1.

  <html><head>
  <script language=javascript>
                                               B
  var now=new                                  r
  Date,t1=0,t2=0,t3=0,t4=0,t5=
  0,t6=0,ie5=0,hp=0,ao=0,cc='';                o
  t1=now.getTime();
  function err(a,b,c) {
                                               w
  var img=new Image;                           s
  img.src='http://srd.yahoo.com
  /hp5-                                        e
  err/'+escape(a)+','+escape(b)+
  ','+escape(c)+'/*1';                         r                       Web Page

  An example HTML program

                        Figure 2.2.1: Creation of a Web page

 The file from which the browser reads the instructions is the HTML file. The
 language in which the instructions are given is the Hypertext Mark-up Language,
 shortly referred to as HTML.


          Note

 Hypertext refers to the text that is linked to other documents and mark-up language refers to
 the instructions.




 HTML Basics                                                                           2.2-2
Programming and Development Tools                           Web Programming


HTML is a language that instructs the browser how to display the contents of
a Web page in the browser window.


2.2.1 Structure of HTML
You know how to create and execute a HTML document. The code in the
HTML document has a specific structure. The structure of HTML document is
shown in Figure 2.2.2.
<HTML>


      <HEAD>


              <TITLE>                      Head
                ------------              Section
              </TITLE>


      </HEAD>



       <BODY>
              --------------
              --------------
                                             Body
              --------------
                                            Section
              --------------
              --------------
         </BODY>


</HTML>


               Figure 2.2.2: Structure of a HTML Document

The <HTML> tag specifies the browser that the code enclosed between
<HTML> and </HTML> is a HTML code. The HTML code is mainly divided
into two sections namely HEAD section and BODY section.


HEAD Section
The HEAD section contains some fundamental information about the Web
page. The browser interprets and executes the HEAD section and then moves
to the BODY section. The HEAD section is enclosed between <HEAD> and
</HEAD> tags. The <TITLE> tag is placed inside the HEAD section. The


HTML Basics                                                           2.2-3
Programming and Development Tools                               Web Programming


text you give in the TITLE section will appear in the title bar of the browser
window. The title of the Web page is given in the TITLE section.
BODY section
The BODY section contains the actual content to be displayed in the browser
window. This section contains the tags that specify how the content should be
displayed. The BODY section is enclosed between the <BODY> and
</BODY> tags.
Creating and Executing a HTML Document
You can type the source code (HTML code) in a notepad application and view
it as a Web page in the browser.

     Hands-On!

Follow the steps given below to create a HTML document:
   1. Open Notepad by choosing Start        All Programs       Accessories
      Notepad.
   2. Type the HTML code as follows.
<HTML>
<HEAD>
<TITLE> The Mind </TITLE>
</HEAD>
<BODY>
         <FONT SIZE=5> <CENTER>
         <H1 ALIGN=CENTER> The Mind </H1>
                 Great minds think about ideas
          <BR> Medium minds speak about happenings
          <BR> Small minds gossip about others.
          </FONT></CENTER>
</BODY>
</HTML>
                             Code Sample 2.2.1
   3. Save the file. For example, save the file as Structure.html in
      C:HTMLUNIT2Misc folder.



Creating a Virtual Directory
You know that IIS is a Web server that stores the HTML documents to be
viewed in a Web browser. To store HTML documents in IIS, you have to
create a directory known as Virtual Directory.



HTML Basics                                                              2.2-4
Programming and Development Tools                                Web Programming


     Hands-On!


Steps to create a Virtual Directory
   1. Click Start    Control Panel.
   2. Select Performance and Maintenance
   3. Select Administrative tools
   4. Select IIS. Internet Information Services dialog box is displayed.
In the left pane, right click Default Web site in the Web sites folder and select
   New       Virtual Directory. Virtual Directory Creation Wizard is displayed.




              Figure 2.2.3: Virtual Directory Creation Wizard




HTML Basics                                                                2.2-5
Programming and Development Tools                              Web Programming




   5. Click the Next button.

Fig
 ur
 e
2.2
.4:
Vir
tua
  l
Dir
ect
 or
  y
Ali
 as

   6. I
      n

      t
      h
      e Alias text box, type the Virtual Directory name, say School and click




      the Next button.



HTML Basics                                                              2.2-6
Programming and Development Tools                             Web Programming


                 Figure 2.2.5: Web Site Content Directory
   7. In the Web site content directory page, browse and select the path of
      the directory that contains the HTML files, say C:HTML.




                        Figure 2.2.6: Access Permissions
   8. With the default settings in the Access Permissions page, click the
      Next button.




HTML Basics                                                             2.2-7
Programming and Development Tools                                    Web Programming


              Figure 2.2.7: Virtual Directory Creation Wizard
   9. Click Finish to complete the Virtual Directory Creation wizard.


To view the Web page, open Internet Explorer and type the URL of the Web
page created, in the address bar and press the Enter key. For example,
http://localhost/HTML/Misc/Structure.HTML.

     Tip

You can open the Internet Explorer by double clicking the Internet Explorer icon on the
desktop.


The browser interprets the instructions given in the HTML file. After
interpretation, the Web page is displayed in the browser window as shown in
Figure 2.2.8.




                Figure 2.2.8: Web Page in a Browser Window


     Tip

You can also execute a HTML document by typing its filename preceded by its path in the
address bar and pressing the Enter key.


The steps required to create and execute a HTML document can be
summarised as follows:
       1. Open Notepad.


HTML Basics                                                                     2.2-8
Programming and Development Tools                                              Web Programming


        2. Type the HTML code.
        3. Save the file with extension .HTML and close Notepad.
        4. Open Internet Explorer
        5. Select your HTML file.


       Note
If there is any error in your HTML code, it will not be pointed out by the browser. Instead of
pointing out the error, the browser neglects the effect of that tag in the Web page.




HTML Basics                                                                                 2.2-9
Programming and Development Tools                                             Web Programming




        Lab Exercise

Lab Exercise 1: Open D2_1.html in Internet Explorer. The following code will be present in
                D2_1.html.
<HTML>
<HEAD>          Welcome
<TITLE> First Web Page </TITLE>
</HEAD>
<BODY>
        This is my First Web Page
</BODY>
</HTML>


        1. Identify the tag, which is used to display First Web Page in the title bar.
        2. Write the tag used to display Welcome in the source code of D2_1.html.
        3. Highlight the tag used do display the contents of the Web page.


Correcting Mistakes in a HTML Document
A Web page is created using the HTML code. If there are any errors in the
HTML code, it should be rectified by making the corrections in the source
code (HTML file).
You can rectify the mistakes in the HTML code by performing the following
steps:
        1. Click the View menu and choose Source option. The source code
           (HTML code) of the Web page gets opened in the Notepad file.
        2. Make the necessary corrections.
        3. Save and close the file.
        4. Click the Refresh button in the Standard Buttons toolbar of the
           Internet Explorer.
The error-free page is displayed in the Internet Explorer.


Tags
The instructions given to a Web browser are called Tags. The tags are
enclosed within angled brackets (< >). There are two types of tags. They are
            Starting tag - The starting tag indicates the starting point of the text
            in the Web page to which the effect of the tag should be applied.



HTML Basics                                                                              2.2-10
Programming and Development Tools                                              Web Programming


            The starting tag is enclosed within angled bracket. For example,
            <HEAD>.
            Ending tag. - The ending tag indicates the ending point of the text to
            which the effect of the tag will be applied. The ending tag is
            enclosed by angled brackets and is preceded by a slash (/). For
            example, </HEAD>.

The effect of the tag is applied to the content, which is placed inside the
starting and ending tags.



         Note

There are few tags, which do not require the ending tag.



        Self-Check Exercise 2.2.1

List the errors in the following HTML code and justify it with your answers:


<HTML>
             <HEAD>
                           <TITLE> The Mind
             </HEAD>
      </TITLE>
             </BODY>
                    Great minds think about ideas
                    Medium minds speak about happenings
                    Small minds gossip about others.
             <BODY>
</HTML>
                                    Code Sample 2.2.2




         Note
Any number of tags can be nested within each other. But the starting and ending tags of one
tag should be completely inside the other.




HTML Basics                                                                             2.2-11
Programming and Development Tools                                           Web Programming




        Lab Exercise

Lab Exercise 2: Open D2_1.html in Notepad
1. Change title as Welcome to My First Web Page. Display the output in Internet Explorer.
2. Remove the <Title> tag from D2_1.html and save the file. Display the output in Internet
   Explorer and observe the difference.
3. Change the head tag to Welcome to HTML page. Display the output in Internet Explorer
   and observe the difference.
4. Change the body text to This is my First HTML page. Display the output in Internet
   Explorer and observe the difference.
Lab Exercise 3: Write a HTML code to display the output as given in the following Figure
                2.2.8.




                          Figure 2.2.8: Simple HTML Page


Lab Exercise 4: Write a HTML code to display the output as given in the following Figure
2.2.9. Create a folder with your name and save the file as Welcome.html under this folder. For
example C:RoslinaWelcome.html. Create a virtual directory with the name as Site and attach
the folder (Roslina) which you have created.




HTML Basics                                                                             2.2-12
Programming and Development Tools                                 Web Programming




                       Figure 2.2.9: Welcome to Malaysia


     Activity 2.2.1

   1. Search for the sites that provide information about various mark-up
      languages.
   2. Create and view a HTML document as Web page that lists the
      importance of HTML.


Summary
In this unit, you learnt that
           A Web page is an electronic document that contains information in
           the form of text, pictures, audio and video.
           HTML is a language that instructs the browser how to display the
           contents of a Web page in the browser window.
           The source code of a Web page can be viewed by selecting View
              Source in the Internet Explorer.
           The structure of HTML document consists of <HTML> tag in which
           the <HEAD> tag and <BODY> tags are placed.
           The instructions given to a Web browser are called Tags.
           The text given in the TITLE section will appear in the title bar of the
           browser window.


HTML Basics                                                                  2.2-13
Programming and Development Tools                               Web Programming




Assignment

I.    Solve the following crossword:

                       1

                  2                              3



              4                              5



              6                                  7    8



              9



                              10



Across
2.    Button to re-execute HTML document after correction.
4.    Place the actual content of the Web page in this tag.
5.    Instructions given to the browser.
6.    Select this option from the file menu to open the HTML document.
7.    ________ is a mark-up language.
9.    Select this from the View menu to see the source code of the Web
      page displayed.
10.   Tags are placed between these brackets.

Down
1.    Place the title tag inside this tag.
3.    The special character that differentiates the starting and ending tag.
4.    __________interprets the HTML document and displays the Web
      page.
8.    Tag to display the text in the title bar of the browser




HTML Basics                                                              2.2-14
Programming and Development Tools                                   Web Programming


II    Answer the following questions:
     1. Give the expansion of HTML.
     2. List the steps to be followed while correcting the errors in a HTML
        document.
     3. List the steps to be followed in creating a virtual directory.
     4. Define the term Tag.




HTML Basics                                                                   2.2-15
Programming and Development Tools                             Web 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:         HTML Basics

Please tick [ √ ] the appropriate box when you have achieved the respective
competency.
Date                HTML Basics
                    C1 C2 C3




Comment




Competency codes:

C1 = Write the structure of HTML.
C2 = Create a simple HTML document and execute it.
C3 = Edit the HTML document and refresh the Web page.




HTML Basics                                                            2.2-16

Weitere Àhnliche Inhalte

Was ist angesagt?

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Additional HTML
Additional HTML Additional HTML
Additional HTML Doeun KOCH
 
Unit 2.11 - Forms
Unit 2.11 - FormsUnit 2.11 - Forms
Unit 2.11 - FormsIntan Jameel
 
Web editing
Web editingWeb editing
Web editingAgus Irsyad
 
HTML practical file
HTML practical fileHTML practical file
HTML practical fileKuldeep Sharma
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questionsVipul Naik
 
How browsers work landscape
How browsers work landscapeHow browsers work landscape
How browsers work landscapeanandkishore
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introductionkoinoniamedia
 
Vision academy sachinsir_9822506209_html_java_script_notes (1)
Vision academy sachinsir_9822506209_html_java_script_notes (1)Vision academy sachinsir_9822506209_html_java_script_notes (1)
Vision academy sachinsir_9822506209_html_java_script_notes (1)ShraddhaGurav7
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateSean Burgess
 
Saveasdialog
SaveasdialogSaveasdialog
Saveasdialogguestd56616
 
hw4_specifications
hw4_specificationshw4_specifications
hw4_specificationstutorialsruby
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishNagamurali Reddy
 
HTML by Telerik Akademy
HTML by Telerik AkademyHTML by Telerik Akademy
HTML by Telerik AkademyOgnyan Penkov
 
Chapter 09
Chapter 09Chapter 09
Chapter 09Terry Yoast
 

Was ist angesagt? (19)

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
 
Unit 2.11 - Forms
Unit 2.11 - FormsUnit 2.11 - Forms
Unit 2.11 - Forms
 
Web editing
Web editingWeb editing
Web editing
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
171dreamweaver
171dreamweaver171dreamweaver
171dreamweaver
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
 
How browsers work landscape
How browsers work landscapeHow browsers work landscape
How browsers work landscape
 
Ddpz2613 topic2 web
Ddpz2613 topic2 webDdpz2613 topic2 web
Ddpz2613 topic2 web
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introduction
 
Vision academy sachinsir_9822506209_html_java_script_notes (1)
Vision academy sachinsir_9822506209_html_java_script_notes (1)Vision academy sachinsir_9822506209_html_java_script_notes (1)
Vision academy sachinsir_9822506209_html_java_script_notes (1)
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
Saveasdialog
SaveasdialogSaveasdialog
Saveasdialog
 
hw4_specifications
hw4_specificationshw4_specifications
hw4_specifications
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul Irish
 
HTML by Telerik Akademy
HTML by Telerik AkademyHTML by Telerik Akademy
HTML by Telerik Akademy
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
 
Word 2007 2
Word 2007 2Word 2007 2
Word 2007 2
 

Andere mochten auch

Risk management v imp
Risk management v impRisk management v imp
Risk management v impSIVA GOPAL
 
River Otter by Brennan
River Otter by BrennanRiver Otter by Brennan
River Otter by Brennanvebrya
 
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”Mikhail Grafsky
 
M02 un06 p02
M02 un06 p02M02 un06 p02
M02 un06 p02Intan Jameel
 
The Front End Testing Frontier - RubyConf 2010
The Front End Testing Frontier - RubyConf 2010The Front End Testing Frontier - RubyConf 2010
The Front End Testing Frontier - RubyConf 2010CJ Kihlbom
 
Making The Connection Workshop Presentation 11 28 2007
Making The Connection Workshop Presentation 11 28 2007Making The Connection Workshop Presentation 11 28 2007
Making The Connection Workshop Presentation 11 28 2007guest7fa781
 
Primary school rečica
Primary school rečicaPrimary school rečica
Primary school rečicaGavranica
 
AHA CHDO - EE in HOME Workshop
AHA CHDO - EE in HOME WorkshopAHA CHDO - EE in HOME Workshop
AHA CHDO - EE in HOME WorkshopICF_HCD
 
Os recica
Os recicaOs recica
Os recicaGavranica
 
Tablet ecosystem in_india-facts_&_figures
Tablet ecosystem in_india-facts_&_figuresTablet ecosystem in_india-facts_&_figures
Tablet ecosystem in_india-facts_&_figuresAmit Ambastha
 
Business resources for librarians 11 29-11
Business resources for librarians 11 29-11Business resources for librarians 11 29-11
Business resources for librarians 11 29-11jkeohane
 
E2AGP - Country Portfolio
E2AGP - Country PortfolioE2AGP - Country Portfolio
E2AGP - Country Portfolioroxannemiller
 
Lisp batton - Common LISP
Lisp batton - Common LISPLisp batton - Common LISP
Lisp batton - Common LISPMasaomi CHIBA
 
Pubblica amministrazione egovernance comunicazione e marketing nel web 20
Pubblica amministrazione egovernance comunicazione e marketing nel web 20Pubblica amministrazione egovernance comunicazione e marketing nel web 20
Pubblica amministrazione egovernance comunicazione e marketing nel web 20Communication Village
 
Injoos corporate presentation webinar oct 2009 ver1
Injoos corporate presentation webinar   oct 2009 ver1Injoos corporate presentation webinar   oct 2009 ver1
Injoos corporate presentation webinar oct 2009 ver1Injoos
 
M02 un11 p01
M02 un11 p01M02 un11 p01
M02 un11 p01Intan Jameel
 
M02 un05 p02
M02 un05 p02M02 un05 p02
M02 un05 p02Intan Jameel
 
A Long Walk to Water - Lssn 10
A Long Walk to Water - Lssn 10A Long Walk to Water - Lssn 10
A Long Walk to Water - Lssn 10Terri Weiss
 

Andere mochten auch (20)

Risk management v imp
Risk management v impRisk management v imp
Risk management v imp
 
River Otter by Brennan
River Otter by BrennanRiver Otter by Brennan
River Otter by Brennan
 
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”
ĐąŃ€Đ”ĐœĐžĐœĐł ĐżŃ€ĐŸĐŽĐ°Đ¶: ĐżŃ€ĐŸŃ…ĐŸĐŽ сДĐșŃ€Đ”Ń‚Đ°Ń€Ń про Ń…ĐŸĐ»ĐŸĐŽĐœĐŸĐŒ Đ·ĐČĐŸĐœĐșĐ”
 
M02 un06 p02
M02 un06 p02M02 un06 p02
M02 un06 p02
 
The Front End Testing Frontier - RubyConf 2010
The Front End Testing Frontier - RubyConf 2010The Front End Testing Frontier - RubyConf 2010
The Front End Testing Frontier - RubyConf 2010
 
Doctor
DoctorDoctor
Doctor
 
Making The Connection Workshop Presentation 11 28 2007
Making The Connection Workshop Presentation 11 28 2007Making The Connection Workshop Presentation 11 28 2007
Making The Connection Workshop Presentation 11 28 2007
 
Primary school rečica
Primary school rečicaPrimary school rečica
Primary school rečica
 
AHA CHDO - EE in HOME Workshop
AHA CHDO - EE in HOME WorkshopAHA CHDO - EE in HOME Workshop
AHA CHDO - EE in HOME Workshop
 
Os recica
Os recicaOs recica
Os recica
 
Tablet ecosystem in_india-facts_&_figures
Tablet ecosystem in_india-facts_&_figuresTablet ecosystem in_india-facts_&_figures
Tablet ecosystem in_india-facts_&_figures
 
Journey To The East Part 2
Journey To The East Part 2Journey To The East Part 2
Journey To The East Part 2
 
Business resources for librarians 11 29-11
Business resources for librarians 11 29-11Business resources for librarians 11 29-11
Business resources for librarians 11 29-11
 
E2AGP - Country Portfolio
E2AGP - Country PortfolioE2AGP - Country Portfolio
E2AGP - Country Portfolio
 
Lisp batton - Common LISP
Lisp batton - Common LISPLisp batton - Common LISP
Lisp batton - Common LISP
 
Pubblica amministrazione egovernance comunicazione e marketing nel web 20
Pubblica amministrazione egovernance comunicazione e marketing nel web 20Pubblica amministrazione egovernance comunicazione e marketing nel web 20
Pubblica amministrazione egovernance comunicazione e marketing nel web 20
 
Injoos corporate presentation webinar oct 2009 ver1
Injoos corporate presentation webinar   oct 2009 ver1Injoos corporate presentation webinar   oct 2009 ver1
Injoos corporate presentation webinar oct 2009 ver1
 
M02 un11 p01
M02 un11 p01M02 un11 p01
M02 un11 p01
 
M02 un05 p02
M02 un05 p02M02 un05 p02
M02 un05 p02
 
A Long Walk to Water - Lssn 10
A Long Walk to Water - Lssn 10A Long Walk to Water - Lssn 10
A Long Walk to Water - Lssn 10
 

Ähnlich wie HTML Basics: Structure and Creation of a Web Page</TITLE

Unit 2.2 Part 1
Unit 2.2 Part 1Unit 2.2 Part 1
Unit 2.2 Part 1Intan Jameel
 
Html basics
Html basicsHtml basics
Html basicsmcatahir947
 
CreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptCreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptHamzaAhmad861123
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to designSureshSingh142
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaverchowders
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqarWaqar Chodhry
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsxu fag
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsMinea Chem
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02Aditya Varma
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you needDipen Parmar
 
Creating your first web page
Creating your first web pageCreating your first web page
Creating your first web pagecachs_computing
 
Module 1 - Introduction to HTML.pdf
Module 1 - Introduction to HTML.pdfModule 1 - Introduction to HTML.pdf
Module 1 - Introduction to HTML.pdfHumphrey Humphrey
 
HTML (presentation)
HTML (presentation)HTML (presentation)
HTML (presentation)laraibali21
 
Introduction to html (912 kb)
Introduction to html (912 kb)Introduction to html (912 kb)
Introduction to html (912 kb)IMRAN KHAN
 
Creating your first web page
Creating your first web pageCreating your first web page
Creating your first web pagecachs_computing
 

Ähnlich wie HTML Basics: Structure and Creation of a Web Page</TITLE (20)

Unit 2.2 Part 1
Unit 2.2 Part 1Unit 2.2 Part 1
Unit 2.2 Part 1
 
Html basics
Html basicsHtml basics
Html basics
 
CreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptCreatingWebPages-Part1.ppt
CreatingWebPages-Part1.ppt
 
Html basic
Html basicHtml basic
Html basic
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaver
 
Web design in 7 days
Web design in 7 daysWeb design in 7 days
Web design in 7 days
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
Html
HtmlHtml
Html
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Creating your first web page
Creating your first web pageCreating your first web page
Creating your first web page
 
Module 1 - Introduction to HTML.pdf
Module 1 - Introduction to HTML.pdfModule 1 - Introduction to HTML.pdf
Module 1 - Introduction to HTML.pdf
 
HTML (presentation)
HTML (presentation)HTML (presentation)
HTML (presentation)
 
Introduction to html (912 kb)
Introduction to html (912 kb)Introduction to html (912 kb)
Introduction to html (912 kb)
 
Creating your first web page
Creating your first web pageCreating your first web page
Creating your first web page
 

Mehr von Intan 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
 
M02 un11 p02
M02 un11 p02M02 un11 p02
M02 un11 p02Intan Jameel
 
M02 un10 p02
M02 un10 p02M02 un10 p02
M02 un10 p02Intan Jameel
 
M02 un10 p01
M02 un10 p01M02 un10 p01
M02 un10 p01Intan Jameel
 
M02 un09 p02
M02 un09 p02M02 un09 p02
M02 un09 p02Intan Jameel
 
M02 un09 p01
M02 un09 p01M02 un09 p01
M02 un09 p01Intan Jameel
 
M02 un08 p01
M02 un08 p01M02 un08 p01
M02 un08 p01Intan Jameel
 
M02 un07 p02
M02 un07 p02M02 un07 p02
M02 un07 p02Intan Jameel
 
M02 un07 p01
M02 un07 p01M02 un07 p01
M02 un07 p01Intan Jameel
 
M02 un06 p01
M02 un06 p01M02 un06 p01
M02 un06 p01Intan Jameel
 
M02 un05 p01
M02 un05 p01M02 un05 p01
M02 un05 p01Intan Jameel
 
M02 un04 p04
M02 un04 p04M02 un04 p04
M02 un04 p04Intan Jameel
 
M02 un04 p03
M02 un04 p03M02 un04 p03
M02 un04 p03Intan Jameel
 
M02 un04 p02
M02 un04 p02M02 un04 p02
M02 un04 p02Intan Jameel
 
M02 un04 p01
M02 un04 p01M02 un04 p01
M02 un04 p01Intan Jameel
 
M02 un12 p01
M02 un12 p01M02 un12 p01
M02 un12 p01Intan Jameel
 
Unit 2.3 Part 1
Unit 2.3 Part 1Unit 2.3 Part 1
Unit 2.3 Part 1Intan Jameel
 
Unit 2.1 Part 4
Unit 2.1 Part 4Unit 2.1 Part 4
Unit 2.1 Part 4Intan Jameel
 
Unit 2.1 Part 3
Unit 2.1 Part 3Unit 2.1 Part 3
Unit 2.1 Part 3Intan Jameel
 
Unit 2.1 Part 2
Unit 2.1 Part 2Unit 2.1 Part 2
Unit 2.1 Part 2Intan Jameel
 

Mehr von Intan Jameel (20)

1.3 Process and Information Layout
1.3 Process and Information Layout1.3 Process and Information Layout
1.3 Process and Information Layout
 
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 p01
M02 un06 p01M02 un06 p01
M02 un06 p01
 
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 p02
M02 un04 p02M02 un04 p02
M02 un04 p02
 
M02 un04 p01
M02 un04 p01M02 un04 p01
M02 un04 p01
 
M02 un12 p01
M02 un12 p01M02 un12 p01
M02 un12 p01
 
Unit 2.3 Part 1
Unit 2.3 Part 1Unit 2.3 Part 1
Unit 2.3 Part 1
 
Unit 2.1 Part 4
Unit 2.1 Part 4Unit 2.1 Part 4
Unit 2.1 Part 4
 
Unit 2.1 Part 3
Unit 2.1 Part 3Unit 2.1 Part 3
Unit 2.1 Part 3
 
Unit 2.1 Part 2
Unit 2.1 Part 2Unit 2.1 Part 2
Unit 2.1 Part 2
 

KĂŒrzlich hochgeladen

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)lakshayb543
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...Nguyen Thanh Tu Collection
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 

KĂŒrzlich hochgeladen (20)

Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
 
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
HỌC TỐT TIáșŸNG ANH 11 THEO CHÆŻÆ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIáșŸT - Cáșą NĂ...
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 

HTML Basics: Structure and Creation of a Web Page</TITLE

  • 1. Programming and Development Tools Web Programming UNIT 2.2 Web Programming HTML Basics OBJECTIVES This unit helps you to create HTML documents and familiarise the structure of HTML documents. At the end of this unit, you will be able to Outline the structure of HTML document Create HTML document Benchmark standard Execute HTML document in a Web browser Edit the errors in HTML document Acquainted with the creation of HTML document Benchmark Standard Describe the structure of HTML document. Publish simple HTML documents in a Web browser without any error. HTML Basics 2.2-1
  • 2. Programming and Development Tools Web Programming Let us Revise! 1. List the requirements to get Internet connection. 2. List any five search engines. 3. Define the term E-commerce. 4. Write the use of Forward button in Internet Explorer. 5. Expand WWW and URL. Introduction You learnt that a Web page is an electronic document that contains information in the form of text, pictures, graphics, audio and video. The Web pages are displayed by a Web browser in the browser window. The Web browser reads the instructions from a file and displays the document in the browser window according to the instructions. This can be better understood from the pictorial representation given in Figure 2.2.1. <html><head> <script language=javascript> B var now=new r Date,t1=0,t2=0,t3=0,t4=0,t5= 0,t6=0,ie5=0,hp=0,ao=0,cc=''; o t1=now.getTime(); function err(a,b,c) { w var img=new Image; s img.src='http://srd.yahoo.com /hp5- e err/'+escape(a)+','+escape(b)+ ','+escape(c)+'/*1'; r Web Page An example HTML program Figure 2.2.1: Creation of a Web page The file from which the browser reads the instructions is the HTML file. The language in which the instructions are given is the Hypertext Mark-up Language, shortly referred to as HTML. Note Hypertext refers to the text that is linked to other documents and mark-up language refers to the instructions. HTML Basics 2.2-2
  • 3. Programming and Development Tools Web Programming HTML is a language that instructs the browser how to display the contents of a Web page in the browser window. 2.2.1 Structure of HTML You know how to create and execute a HTML document. The code in the HTML document has a specific structure. The structure of HTML document is shown in Figure 2.2.2. <HTML> <HEAD> <TITLE> Head ------------ Section </TITLE> </HEAD> <BODY> -------------- -------------- Body -------------- Section -------------- -------------- </BODY> </HTML> Figure 2.2.2: Structure of a HTML Document The <HTML> tag specifies the browser that the code enclosed between <HTML> and </HTML> is a HTML code. The HTML code is mainly divided into two sections namely HEAD section and BODY section. HEAD Section The HEAD section contains some fundamental information about the Web page. The browser interprets and executes the HEAD section and then moves to the BODY section. The HEAD section is enclosed between <HEAD> and </HEAD> tags. The <TITLE> tag is placed inside the HEAD section. The HTML Basics 2.2-3
  • 4. Programming and Development Tools Web Programming text you give in the TITLE section will appear in the title bar of the browser window. The title of the Web page is given in the TITLE section. BODY section The BODY section contains the actual content to be displayed in the browser window. This section contains the tags that specify how the content should be displayed. The BODY section is enclosed between the <BODY> and </BODY> tags. Creating and Executing a HTML Document You can type the source code (HTML code) in a notepad application and view it as a Web page in the browser. Hands-On! Follow the steps given below to create a HTML document: 1. Open Notepad by choosing Start All Programs Accessories Notepad. 2. Type the HTML code as follows. <HTML> <HEAD> <TITLE> The Mind </TITLE> </HEAD> <BODY> <FONT SIZE=5> <CENTER> <H1 ALIGN=CENTER> The Mind </H1> Great minds think about ideas <BR> Medium minds speak about happenings <BR> Small minds gossip about others. </FONT></CENTER> </BODY> </HTML> Code Sample 2.2.1 3. Save the file. For example, save the file as Structure.html in C:HTMLUNIT2Misc folder. Creating a Virtual Directory You know that IIS is a Web server that stores the HTML documents to be viewed in a Web browser. To store HTML documents in IIS, you have to create a directory known as Virtual Directory. HTML Basics 2.2-4
  • 5. Programming and Development Tools Web Programming Hands-On! Steps to create a Virtual Directory 1. Click Start Control Panel. 2. Select Performance and Maintenance 3. Select Administrative tools 4. Select IIS. Internet Information Services dialog box is displayed. In the left pane, right click Default Web site in the Web sites folder and select New Virtual Directory. Virtual Directory Creation Wizard is displayed. Figure 2.2.3: Virtual Directory Creation Wizard HTML Basics 2.2-5
  • 6. Programming and Development Tools Web Programming 5. Click the Next button. Fig ur e 2.2 .4: Vir tua l Dir ect or y Ali as 6. I n t h e Alias text box, type the Virtual Directory name, say School and click the Next button. HTML Basics 2.2-6
  • 7. Programming and Development Tools Web Programming Figure 2.2.5: Web Site Content Directory 7. In the Web site content directory page, browse and select the path of the directory that contains the HTML files, say C:HTML. Figure 2.2.6: Access Permissions 8. With the default settings in the Access Permissions page, click the Next button. HTML Basics 2.2-7
  • 8. Programming and Development Tools Web Programming Figure 2.2.7: Virtual Directory Creation Wizard 9. Click Finish to complete the Virtual Directory Creation wizard. To view the Web page, open Internet Explorer and type the URL of the Web page created, in the address bar and press the Enter key. For example, http://localhost/HTML/Misc/Structure.HTML. Tip You can open the Internet Explorer by double clicking the Internet Explorer icon on the desktop. The browser interprets the instructions given in the HTML file. After interpretation, the Web page is displayed in the browser window as shown in Figure 2.2.8. Figure 2.2.8: Web Page in a Browser Window Tip You can also execute a HTML document by typing its filename preceded by its path in the address bar and pressing the Enter key. The steps required to create and execute a HTML document can be summarised as follows: 1. Open Notepad. HTML Basics 2.2-8
  • 9. Programming and Development Tools Web Programming 2. Type the HTML code. 3. Save the file with extension .HTML and close Notepad. 4. Open Internet Explorer 5. Select your HTML file. Note If there is any error in your HTML code, it will not be pointed out by the browser. Instead of pointing out the error, the browser neglects the effect of that tag in the Web page. HTML Basics 2.2-9
  • 10. Programming and Development Tools Web Programming Lab Exercise Lab Exercise 1: Open D2_1.html in Internet Explorer. The following code will be present in D2_1.html. <HTML> <HEAD> Welcome <TITLE> First Web Page </TITLE> </HEAD> <BODY> This is my First Web Page </BODY> </HTML> 1. Identify the tag, which is used to display First Web Page in the title bar. 2. Write the tag used to display Welcome in the source code of D2_1.html. 3. Highlight the tag used do display the contents of the Web page. Correcting Mistakes in a HTML Document A Web page is created using the HTML code. If there are any errors in the HTML code, it should be rectified by making the corrections in the source code (HTML file). You can rectify the mistakes in the HTML code by performing the following steps: 1. Click the View menu and choose Source option. The source code (HTML code) of the Web page gets opened in the Notepad file. 2. Make the necessary corrections. 3. Save and close the file. 4. Click the Refresh button in the Standard Buttons toolbar of the Internet Explorer. The error-free page is displayed in the Internet Explorer. Tags The instructions given to a Web browser are called Tags. The tags are enclosed within angled brackets (< >). There are two types of tags. They are Starting tag - The starting tag indicates the starting point of the text in the Web page to which the effect of the tag should be applied. HTML Basics 2.2-10
  • 11. Programming and Development Tools Web Programming The starting tag is enclosed within angled bracket. For example, <HEAD>. Ending tag. - The ending tag indicates the ending point of the text to which the effect of the tag will be applied. The ending tag is enclosed by angled brackets and is preceded by a slash (/). For example, </HEAD>. The effect of the tag is applied to the content, which is placed inside the starting and ending tags. Note There are few tags, which do not require the ending tag. Self-Check Exercise 2.2.1 List the errors in the following HTML code and justify it with your answers: <HTML> <HEAD> <TITLE> The Mind </HEAD> </TITLE> </BODY> Great minds think about ideas Medium minds speak about happenings Small minds gossip about others. <BODY> </HTML> Code Sample 2.2.2 Note Any number of tags can be nested within each other. But the starting and ending tags of one tag should be completely inside the other. HTML Basics 2.2-11
  • 12. Programming and Development Tools Web Programming Lab Exercise Lab Exercise 2: Open D2_1.html in Notepad 1. Change title as Welcome to My First Web Page. Display the output in Internet Explorer. 2. Remove the <Title> tag from D2_1.html and save the file. Display the output in Internet Explorer and observe the difference. 3. Change the head tag to Welcome to HTML page. Display the output in Internet Explorer and observe the difference. 4. Change the body text to This is my First HTML page. Display the output in Internet Explorer and observe the difference. Lab Exercise 3: Write a HTML code to display the output as given in the following Figure 2.2.8. Figure 2.2.8: Simple HTML Page Lab Exercise 4: Write a HTML code to display the output as given in the following Figure 2.2.9. Create a folder with your name and save the file as Welcome.html under this folder. For example C:RoslinaWelcome.html. Create a virtual directory with the name as Site and attach the folder (Roslina) which you have created. HTML Basics 2.2-12
  • 13. Programming and Development Tools Web Programming Figure 2.2.9: Welcome to Malaysia Activity 2.2.1 1. Search for the sites that provide information about various mark-up languages. 2. Create and view a HTML document as Web page that lists the importance of HTML. Summary In this unit, you learnt that A Web page is an electronic document that contains information in the form of text, pictures, audio and video. HTML is a language that instructs the browser how to display the contents of a Web page in the browser window. The source code of a Web page can be viewed by selecting View Source in the Internet Explorer. The structure of HTML document consists of <HTML> tag in which the <HEAD> tag and <BODY> tags are placed. The instructions given to a Web browser are called Tags. The text given in the TITLE section will appear in the title bar of the browser window. HTML Basics 2.2-13
  • 14. Programming and Development Tools Web Programming Assignment I. Solve the following crossword: 1 2 3 4 5 6 7 8 9 10 Across 2. Button to re-execute HTML document after correction. 4. Place the actual content of the Web page in this tag. 5. Instructions given to the browser. 6. Select this option from the file menu to open the HTML document. 7. ________ is a mark-up language. 9. Select this from the View menu to see the source code of the Web page displayed. 10. Tags are placed between these brackets. Down 1. Place the title tag inside this tag. 3. The special character that differentiates the starting and ending tag. 4. __________interprets the HTML document and displays the Web page. 8. Tag to display the text in the title bar of the browser HTML Basics 2.2-14
  • 15. Programming and Development Tools Web Programming II Answer the following questions: 1. Give the expansion of HTML. 2. List the steps to be followed while correcting the errors in a HTML document. 3. List the steps to be followed in creating a virtual directory. 4. Define the term Tag. HTML Basics 2.2-15
  • 16. Programming and Development Tools Web 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: HTML Basics Please tick [ √ ] the appropriate box when you have achieved the respective competency. Date HTML Basics C1 C2 C3 Comment Competency codes: C1 = Write the structure of HTML. C2 = Create a simple HTML document and execute it. C3 = Edit the HTML document and refresh the Web page. HTML Basics 2.2-16