Page 38 - Learn To Use HTML and CSS
P. 38

So You Want to Learn to Use HTML and CSS – Version 2020-06-12a                        Page 28
               Chapter 2 — Adding Images, Media, Color, and Font Effects

                    </body>
             Free
                </html>







             eBook









             Edition








            Please support this work at
                               Illustration 8: Changing Fonts


               Be sure to note in the above example how multiple style attributes can be contained in one tag,
                                  http://syw2l.org
               and how CSS hierarchy can be used to specify fonts in child tags.

               Advanced Topics for Exploration
                                                                               Free
               There are ways to display the exact font that you want on your page without requiring the user to
               already own the font on their computer. Web Fonts can be used to download fonts you want, and
                                                                        46 47
               are placed in external style sheets with the @font-face rule.
               Vocabulary


                   •   Uniform Resource Locator (URL)             •  encoding
                                                                     fantasy
                   •   alt                                        • eBook
                   •   audio                                      •  font
                   •   background-color                           •  font-family
                   •   color                                      •  font-size
                   •   cursive                                    •  generic font
               46     http://www.w3schools.com/css/css3_fonts.asp   Edition
               47    https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face

               Copyright 2020 — James M. Reneau PhD — http://www.syw2l.org — This work is
               licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
   33   34   35   36   37   38   39   40   41   42   43