public_html it238 index.htmlAnswer: use this URL:
https://studentweb.cdm.depaul.edu/esaldan5/it238/index.html
public_html it238 index.html page2.html styles.css images puppy.jpg
#ff00ff #800080 #0000ff #000080 #800000 #008080 #c0c0c0 #e0e0ff #e0ffffHint: Here is a color wheel to help you.
#ff00ff magenta or fuschia #800080 purple #0000f0 blue #000080 navy #800000 maroon #008080 teal #c0c0c0 silver #e0e0ff pastel blue #e0ffff pastel aqua or cyan (blue green)
<!-- This is an HTML comment --> /* This is a CSS comment */ // This is a JavaScript comment
public_html it238 index.html <-- index of proj1a and proj1b styles.css proj1a index.html <-- stub file script.js <-- omit for Project 0 styles.css <-- if needed proj1b index.html <-- stub file script.js <-- omit for Project 0 styles.css <-- if needed
p { font-weight: bold; font-size: 200%; font-family: arial, sans-serif; }The shorthand abbreviation for the preceding line is
p { font: bold 200% arial, sans-serif; }Test both styles.
font-style: normal (default), italic font-variant: normal, Small-caps font-weight: normal (default) bolder lighter 100 (light) 200 300 400 500 600 700 800 900 (bold) font-size/line-height: available units are pt, px, %, in, cm, mm font-family: check fonts that are available on computerThe font-size and font-family styles are required. If any of the other properties are omitted, the default values are used.
p { font: italic small-caps bold 12pt/30px Georgia, serif; } Answer: p { font-style: italic; font-variant: small-caps; font-weight: bold; font-size: 12pt; line-size: 30px; font-family: Georgia, serif; }Test the shorthand and non-shorthand versions.
img { padding-top: 10px; padding-right: 15px; padding-bottom: 20px; padding-left: 25px; } Answer: img { padding: 10px 15px 20px 25px; } img { padding-top: 10px; padding-right: 25px; padding-bottom: 20px; padding-left: 25px; } Answer: img { padding: 10px 25px 20px; } img { padding-top: 10px; padding-right: 25px; padding-bottom: 10px; padding-left: 25px; } Answer: img { padding: 10px 25px; } img { padding-top: 25px; padding-right: 25px; padding-bottom: 25px; padding-left: 25px; } Answer: img { padding: 25px; }
img { border-width: 200%; border-style: solid; border-color: red; } Answer: img { border: 200% solid red; }
h1 { color: navy; } body { color: maroon; }The color of the h1 tag will be navy because h1 is more specific than body.
h1 { color: navy; } body { color: maroon; }The color of the h1 tag will be navy because h1 is more specific than body.
h1 { color: navy; } h1 { color: maroon; }In this case, the maroon color is applied last to the h1 tag will be maroon.