Page 206 - DCAP109_GRAPHIC_TOOLS
P. 206

Unit 9: Web Designing




          3.   …………………… is the main markup language for creating web pages and other            Notes
               information that can be displayed in a web browser.

          9.2 Head Elements


          A web page has headings that to inform the search engine of various page attributes.
          Page headings are created with the <hn> tag, in which ‘n’ is a number between 1 and 5 depicting
          the different sizes for the headings. <h1> defines the most important heading. <h6> defines the
          least important heading.


                 Example:
                                Figure 9.2: The Different Heading Styles




















          Source: http://www.blogtechnics.com/wordpress/how-to-use-h1-h2-h3-h4-heading-tags-on-wordpress-
          blog
          We can create a page with headings and sub-headings as shown below:
          <h1>Main Heading</h1> Main Heading

          <p>First paragraph content</p> First Paragraph content.
          <h2>Sub Heading</h2> Sub Heading
          <p>Second paragraph content</p> Second paragraph content.



          Heading tags can have many attributes.

                 Example: <h1 align=”center”>Main Heading</h1>

          Every header leaves a blank line above and below it when displayed in browser.




             Notes  We can view the source of a web page by right-clicking in the page and selecting
             “View Source” (IE) or “View Page Source” (Firefox), or similar for other browsers. This
             will open a window containing the HTML code of the page.







                                           LOVELY PROFESSIONAL UNIVERSITY                                   199
   201   202   203   204   205   206   207   208   209   210   211