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>Document</title>
- <!-- CSS Internal -->
- <style>
- /* Globals */
- h1, h2, p, a {
- font-family: Arial, Helvetica, sans-serif;
- }
- /* Classes */
- .pageName {
- text-transform: uppercase;
- color: red;
- font-weight: bold;
- }
- /* IDs */
- #topNavigation {
- background-color: coral;
- text-align: center;
- }
- #topNavigation li, a {
- display: inline;
- text-transform: uppercase;
- font-weight: bold;
- text-decoration: none;
- color: black;
- }
- #main {
- background-color: darkgray;
- }
- </style>
- </head>
- <body>
- <!-- Header -->
- <div id="header">
- <h1>This is a <span class="pageName">main</span> page</h1>
- <h2 class="pageName">This is my second webpage.</h2>
- </div>
- <!-- Navigation -->
- <div id="topNavigation">
- <ul>
- <li> <a href="index.html">home</a> </li>
- <li> <a href="about.html"> about </a></li>
- </ul>
- </div>
- <!-- Main content -->
- <div id="main">
- <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sed nihil quisquam mollitia cumque natus, cupiditate suscipit ratione non quas harum libero optio, a voluptatibus inventore accusamus sequi impedit sit incidunt.</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement