Page 76 - DCAP408_WEB_PROGRAMMING
P. 76

Web Programming                                                        Mandeep Kaur,  Lovely Professional University




                    Notes                                Unit 3: Text Formatting


                                     CONTENTS
                                     Objectives
                                     Introduction

                                     3.1  Character Elements
                                     3.2  Look Elements
                                     3.3  Summary

                                     3.4  Keywords
                                     3.5  Review Questions
                                     3.6  Further Readings

                                   Objectives

                                   After studying this unit, you will be able to:

                                      Recognize the character elements
                                      Describe the looking elements

                                   Introduction

                                   Generally, text is unformatted in your Web documents. However, to emphasize specific letters,
                                   words, or phrases which reflects the characteristics about the text. Also, you can use some text
                                   formatting options including boldfacing and italicizing. Depending on your browser, you may
                                   also be able to add underlining to emphasize characters. There are two major classes of text
                                   markup:

                                   (a)  Character Elements (Meaning)
                                   (b)  Look Elements (Formatting)

                                   3.1 Character Elements

                                   The character elements describe the type of the text formatting. It is also the treat as Logical codes
                                   which shows the meaning of the text. For example, if you want to display some programming
                                   code, with the help of <CODE> tag can be display. The same font also used with <PRE>; however,
                                   <PRE> is for formatted text while the browser will format the text associated with the <CODE>.
                                   These elements also called as Phrase elements. These elements require start and end tags. There
                                   are no required HTML attributes for these elements.

                                   <EM> Element

                                   The <EM> element is an HTML tag that is used to specify emphasized text within an HTML
                                   document. The <EM> basic emphasis typically rendered, in an italic font.









          70                                LOVELY PROFESSIONAL UNIVERSITY
   71   72   73   74   75   76   77   78   79   80   81