Wednesday, January 22, 2014

Let's make it prettier!

Alright, so yesterday we created our first web page. Today let's work on the looks and the presentation of the web page!

Here's our code from yesterday:

<html>
<head>
    <title>My First Webpage</title>
</head>
<body>
    <h1>Name's First Webpage!</h1>
    <p>Hello there! Just trying this out.</p>
</body>
</html>

Now we're going code in CSS in order to give it style. Add style like this:

<html>
<head>
    <title>My First Webpage</title>
    <style type="text/css">
        body {
            background-color: #CCFFCC;
            font-family: century gothic;
            padding: 20px;
        }
        h1 {
            color: #3399FF;
            text-align: center;
        }
    </style>
</head>
<body>
    <h1>Name's First Webpage!</h1>
    <p>Hello there! Just trying this out.</p>
</body>
</html>


There! Now it should look much better, like this:











You can change the background-color and the text color to colors of your choice:

0000000000330000660000990000CC0000FF
0033000033330033660033990033CC0033FF
0066000066330066660066990066CC0066FF
0099000099330099660099990099CC0099FF
00CC0000CC3300CC6600CC9900CCCC00CCFF
00FF0000FF3300FF6600FF9900FFCC00FFFF
3300003300333300663300993300CC3300FF
3333003333333333663333993333CC3333FF
3366003366333366663366993366CC3366FF
3399003399333399663399993399CC3399FF
33CC0033CC3333CC6633CC9933CCCC33CCFF
33FF0033FF3333FF6633FF9933FFCC33FFFF
6600006600336600666600996600CC6600FF
6633006633336633666633996633CC6633FF
6666006666336666666666996666CC6666FF
6699006699336699666699996699CC6699FF
66CC0066CC3366CC6666CC9966CCCC66CCFF
66FF0066FF3366FF6666FF9966FFCC66FFFF
9900009900339900669900999900CC9900FF
9933009933339933669933999933CC9933FF
9966009966339966669966999966CC9966FF
9999009999339999669999999999CC9999FF
99CC0099CC3399CC6699CC9999CCCC99CCFF
99FF0099FF3399FF6699FF9999FFCC99FFFF
CC0000CC0033CC0066CC0099CC00CCCC00FF
CC3300CC3333CC3366CC3399CC33CCCC33FF
CC6600CC6633CC6666CC6699CC66CCCC66FF
CC9900CC9933CC9966CC9999CC99CCCC99FF
CCCC00CCCC33CCCC66CCCC99CCCCCCCCCCFF
CCFF00CCFF33CCFF66CCFF99CCFFCCCCFFFF
FF0000FF0033FF0066FF0099FF00CCFF00FF
FF3300FF3333FF3366FF3399FF33CCFF33FF
FF6600FF6633FF6666FF6699FF66CCFF66FF
FF9900FF9933FF9966FF9999FF99CCFF99FF
FFCC00FFCC33FFCC66FFCC99FFCCCCFFCCFF
FFFF00FFFF33FFFF66FFFF99FFFFCCFFFFFF

(Source: http://www.w3schools.com/cssref/css_colors.asp)

You can also change the font-family to whatever font you want:

the following 12 fonts are installed on both pc and mac and are considered as 'safe'
arialarial blackcomic sans mscouriercourier newgeorgia,
helveticaimpactpalatinotimes new romantrebuchet msverdana


note: most browsers prefer font names to be lower case

lower caseUPPER CASE
  1. academy engraved let
  2. algerian
  3. amaze
  4. arial
  5. arial black
  6. balthazar
  7. bankgothic lt bt
  8. bart
  9. bimini
  10. comic sans ms
  11. book antiqua
  12. bookman old style
  13. braggadocio
  14. britannic bold
  15. brush script mt
  16. century gothic
  17. century schoolbook
  18. chasm
  19. chicago
  20. colonna mt
  21. comic sans ms
  22. commercialscript bt
  23. coolsville
  24. courier
  25. courier new
  26. cursive
  27. dayton
  28. desdemona
  29. fantasy
  30. flat brush
  31. footlight mt light
  32. futurablack bt
  33. futuralight bt
  34. garamond
  35. gaze
  36. geneva
  37. georgia
  38. geotype tt
  39. (*above: Geotype TT)
  40. helterskelter
  41. helvetica
  42. herman
  43. highlight let
  44. impact
  45. jester
  46. joan
  47. john handy let
  48. jokerman let
  49. kelt
  50. kids
  51. kino mt
  52. la bamba let
  53. lithograph
  54. lucida console
  55. map symbols
  56. marlett
  57. (*above: Marlett)
  58. matteroffact
  59. matisse itc
  60. matura mt script capitals
  61. mekanik let
  62. (*above: mekanik let)
  63. monaco
  64. monospace
  65. monotype sorts
  66. ms linedraw
  67. new york
  68. olddreadfulno7 bt
  69. (*above: OldDreadfulNo7 BT)
  70. orange let
  71. palatino
  72. playbill
  73. pump demi bold let
  74. puppylike
  75. roland
  76. sans-serif
  77. scripts
  78. scruff let
  79. serif
  80. short hand
  81. signs normal
  82. (*above: Signs Normal)
  83. simplex
  84. simpson
  85. stylus bt
  86. superfrench
  87. surfer
  88. swis721 bt
  89. swis721 blkoul bt
  90. symap
  91. (*above: Symap)
  92. symbol
  93. (*above: symbol)
  94. tahoma
  95. technic
  96. tempus sans itc
  97. terk
  98. times
  99. times new roman
  100. trebuchet ms
  101. trendy
  102. txt
  103. verdana
  104. victorian let
  105. vineta bt
  106. vivian
  107. webdings
  108. (*above: Webdings)
  109. wingdings
  110. (*above: Wingdings)
  111. western
  112. westminster
  113. westwood let
  114. (*above: Westwood LET)
  115. wide latin
  116. zapfellipt bt
  1. ACADEMY ENGRAVED LET
  2. ALGERIAN
  3. AMAZE
  4. ARIAL
  5. ARIAL BLACK
  6. BALTHAZAR
  7. BANKGOTHIC LT BT
  8. BART
  9. BIMINI
  10. COMIC SANS MS
  11. BOOK ANTIQUA
  12. BOOKMAN OLD STYLE
  13. BRAGGADOCIO
  14. BRITANNIC BOLD
  15. BRUSH SCRIPT MT
  16. CENTURY GOTHIC
  17. CENTURY SCHOOLBOOK
  18. CHASM
  19. CHICAGO
  20. COLONNA MT
  21. COMIC SANS MS
  22. COMMERCIALSCRIPT BT
  23. COOLSVILLE
  24. COURIER
  25. COURIER NEW
  26. CURSIVE
  27. DAYTON
  28. DESDEMONA
  29. FANTASY
  30. FLAT BRUSH
  31. FOOTLIGHT MT LIGHT
  32. FUTURABLACK BT
  33. FUTURALIGHT BT
  34. GARAMOND
  35. GAZE
  36. GENEVA
  37. GEORGIA
  38. GEOTYPE TT
  39. (*above: Geotype TT)
  40. HELTERSKELTER
  41. HELVETICA
  42. HERMAN
  43. HIGHLIGHT LET
  44. IMPACT
  45. JESTER
  46. JOAN
  47. JOHN HANDY LET
  48. JOKERMAN LET
  49. KELT
  50. KIDS
  51. KINO MT
  52. LA BAMBA LET
  53. LITHOGRAPH
  54. LUCIDA CONSOLE
  55. MAP SYMBOLS
  56. MARLETT
  57. (*above: Marlett)
  58. MATTEROFFACT
  59. MATISSE ITC
  60. MATURA MT
  61. MEKANIK LET
  62. (*above: mekanik let)
  63. MONACO
  64. MONOSPACE
  65. MONOTYPE SORTS
  66. MS LINEDRAW
  67. NEW YORK
  68. OLDDREADFULNO7 BT
  69. (*above: OldDreadfulNo7 BT)
  70. ORANGE LET
  71. PALATINO
  72. PLAYBILL
  73. PUMP DEMI BOLD LET
  74. PUPPYLIKE
  75. ROLAND
  76. SANS-SERIF
  77. SCRIPTS
  78. SCRUFF LET
  79. SERIF
  80. SHORT HAND
  81. SIGNS NORMAL
  82. (*above: Signs Normal)
  83. SIMPLEX
  84. SIMPSON
  85. STYLUS BT
  86. SUPERFRENCH
  87. SURFER
  88. SWIS721 BT
  89. SWIS721 BLKOUL BT
  90. SYMAP
  91. (*above: Symap)
  92. SYMBOL
  93. (*above: symbol)
  94. TAHOMA
  95. TECHNIC
  96. TEMPUS SANS ITC
  97. TERK
  98. TIMES
  99. TIMES NEW ROMAN
  100. TREBUCHET MS
  101. TRENDY
  102. TXT
  103. VERDANA
  104. VICTORIAN LET
  105. VINETA BT
  106. VIVIAN
  107. WEBDINGS
  108. (*above: Webdings)
  109. WINGDINGS
  110. (*above: Wingdings)
  111. WESTERN
  112. WESTMINSTER
  113. WESTWOOD LET
  114. (*above: Westwood LET)
  115. WIDE LATIN
  116. ZAPFELLIPT BT

(Source: http://www.angelfire.com/fl5/html-tutorial/fontlist.htm)

Have fun customizing! Note that sometimes the fonts of the big list might not show up. The 12 fonts considered safe are the safest (no duh).

No comments:

Post a Comment