diff --git a/2_HTML5/stylehtml5.html b/2_HTML5/stylehtml5.html index 94f91eb..cc8a0f3 100644 --- a/2_HTML5/stylehtml5.html +++ b/2_HTML5/stylehtml5.html @@ -1,78 +1,99 @@ - -
- - -
-
-
This text has the - font-size style applied to it, making it 20pt. -
+ em { + font-weight: 600; + color: pink; + } -- This text has the font-size and - color styles applied to it, making it - 20pt and deep sky blue.
- - + h1 { + font-family: 'Roboto', sans-serif; + position: absolute; + top: 20px; + left: 200px; + z-index: 3; + font-size: 20pt; + color: purple; + } + + h2 { + font-family: Tahoma, Helvetica, sans-serif; + position: absolute; + top: 60px; + left: 150px; + z-index: 3; + font-size: 20pt; + color: blue; + } + + p { + font-size: 12pt; + font-family: Arial, sans-serif; + } + + .background_image { + position: absolute; + top: 0; + left: 0; + z-index: 1; + width: 100%; + height: auto; + } + + .foreground_image { + position: absolute; + top: 25px; + left: 100px; + z-index: 2; + max-width: 100%; + height: auto; + } + + .text1 { + position: absolute; + top: 120px; + left: 150px; + z-index: 3; + font-size: 20pt; + font-family: Tahoma, Geneva, sans-serif; + } + .text2 { + position: absolute; + top: 150px; + left: 150px; + z-index: 3; + font-size: 40pt; + font-family: Tahoma, Geneva, sans-serif; + color: red; + } + + + +
+
+
+ + This text has the font-size style applied to it, making it 20pt. +
+ ++ This text has the font-size and color styles applied to it, making it 20pt and deep sky blue. +
+ + +