Page 73 - Code & Click - 7
P. 73

Experiential Learning
              Lab Activity 3
             To style a web page using margins and borders.
              1.  Open Notepad and create the HTML document as shown below.
























              2.  Open the HTML document in Microsoft Edge.



















            INLINE STYLES
            Inline Styles are used to specify a style for a specific HTML element in a web page. An Inline style is
            specified by adding the style attribute to the HTML tag. Inline styles are useful for formatting specific
            elements in different styles. The various properties with the style attribute need to be enclosed
            within double quotes (“ ”).
                                                                                                 Experiential Learning
              Lab Activity 4

             To use inline styles in a HTML document.
              1.  Open Notepad and create the HTML document as shown below.


















                                                                                                                 71
   68   69   70   71   72   73   74   75   76   77   78