Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Lesson 3</title>
- <!-- CSS styles -->
- <style>
- /* Globals */
- body {
- background-color: lightblue;
- }
- /* Classes */
- .city {
- background-color: tomato;
- color: yellow;
- font-weight: bold;
- }
- .town {
- font-family: 'Courier New', Courier, monospace;
- font-size: 20px;
- font-weight: bold;
- }
- /* IDs */
- #myHeader {
- background-color: lightgreen;
- color: black;
- padding: 40px;
- text-align: center;
- }
- /* Class */
- .space {
- margin-top: 500px;
- color:orange;
- }
- </style>
- </head>
- <body>
- <div style="background-color: red;">
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet, dolores?</p>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi porro nam, aliquid nulla praesentium veritatis numquam unde assumenda natus officia.</p>
- </div>
- <span>This is the first span text.</span>
- <span>This is the second span text.</span>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni sint, sed possimus, a <span style="color:red;">facilis earum ex beatae</span> adipisci, officia animi eaque asperiores nesciunt. Quas, enim excepturi officiis sit adipisci deserunt?</p>
- <p class="city">This paragraph is styled by CSS class named "city".</p>
- <p id="myHeader">This paragraph is styled by CSS "myHeader" ID.</p>
- <!-- HTML Bookmark -->
- <a href="#C1">Jump to chapter 1</a>
- <div id="C1" class="space">
- <h3>Chapter One</h3>
- <p>This is a text of the chapter one.</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement