Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 60 - 2609_Logiccode
P. 60

    Code 9.  Write the HTML code to present the given web page using CSS properties to style the
                               background, text and lists.

                      <!DOCTYPE HTML>
                      <HTML>

                      <HEAD>
                      <TITLE>Programming Languages</TITLE>

                      <STYLE>
                      LI{COLOR:#990000; BACKGROUND-COLOR:#ffdddd;}

                      </STYLE>
                      </HEAD>

                      <BODY STYLE="BACKGROUND-COLOR:#fffaf0;">
                      <H1 STYLE="COLOR:#444;">Popular Programming Languages</H1>

                      <UL STYLE="BACKGROUND-COLOR:#ffe;">
                      <LI>Python</LI>

                      <LI>Java</LI>
                      <LI>C++</LI>
                      <LI>JavaScript</LI>

                      </UL>
                      </BODY>

                      </HTML>

                           Tick ( ) if you know this.

                           ▶  The description or definition list is defined using the <DL> tag.
                           ▶  An unordered list is a bulleted list created with the <UL> tag and closed with </UL>.

                                TABLES IN HTML

                      Another way to arrange data in HTML is with a table using the <TABLE> tag, which organises
                      information in rows and columns.
                      The following are the advantages of using tables:

                         Tables allow you to summarise content in one of the easiest ways.

                         Tables enable you to present data in a tabular format rather than in the default paragraph
                        style.

                         Tables help you easily compare different sets of data by placing them side by side.

                       58   Premium Edition-VII

| 55 56 57 58 59 60 61 62 63 64 65 |