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>About</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;
- }
- img {
- }
- #main {
- background-color: darkgray;
- }
- body {
- background: linear-gradient(to right, blue, red, orange);
- background-size: 400%;
- animation: animate-background 10s ease-in-out infinite;
- }
- @keyframes animate-background {
- 0% {
- background-position: 0 50%;
- }
- 50% {
- background-position: 100% 50%;
- }
- 100% {
- background-position: 0 50% ;
- }
- }
- </style>
- </head>
- <body>
- <!-- Header -->
- <div id="header">
- <h1>This is a <span class="pageName">about</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>This is a <i>content of the second page</i> named <b>"About"</b>.</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement