Page 49 - DCAP408_WEB_PROGRAMMING
P. 49

Unit 2: Creating Static Web Pages




          Result: The visual result for the above code is shown below:                          Notes

           A heading


           A paragraph.






          Self Assessment

          Fill in the blanks:
          1.   The “…………………” contains  all of the document’s header information like the web
               document’s title and information about the document itself.

          2.   The container “…………………” is placed within the head structure.
          3.   Be aware that if the user viewing the page doesn’t have the font installed, it will not be
               …………………
          4.   When using the decimal numbers, you write “…………………”, followed by a triplet of
               numbers, in parentheses and separated by commas.

          2.2 Singular and Paired Tags


          HTML Tags

          Tags are instructions that are embedded directly into the text of a HTML document. Each HTML
          tag describes that the browser should do something instead of simply displaying the text. In
          HTML, the tags begin with (<) and end with (>)
          HTML tags can be of two types. They are:
          1.   Paired Tags
          2.   Unpaired Tags
          Paired Tags: A tag is said to be a paired tag if the text is placed between a tag and its companion
          tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as
          Closing Tag.


                 Example:
          <i>This  text  is  in  italics.  </i>




             Notes  Note: Here <i> is called opening tag. and </i> is called closing tag.
          Unpaired Tags: An unpaired tag does not have a companion tag. Unpaired tags are also known
          as Singular or Stand-Alone Tags.


                 Example:  <br> , <hr> etc. These tags does not require any companion tag.




                                           LOVELY PROFESSIONAL UNIVERSITY                                   43
   44   45   46   47   48   49   50   51   52   53   54