Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DOCTYPE html>
- <html>
- <head>
- <title> Hello World! </title>
- <style>
- header{
- /*border:1px solid;*/
- width: 100%;
- background: orange;
- line-height: 90px;
- text-align: center;
- display:block;
- }
- nav{
- background: lightblue;
- height: 40px;
- display: block;
- }
- nav li{
- display:inline-block;
- color: white;
- width:33%;
- height: 100%;
- text-align: center;
- font-size: large;
- font-weight: bold
- vertical-align:middle;
- line-height: 35px;
- }
- nav li:hover{
- background: green;
- }
- section{
- margin-top: 1px;
- /*border: 1px solid;*/
- width:80%;
- height:80%;
- float:left;
- /*display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;*/
- background: lightgreen;
- }
- aside{
- margin-top: 1px;
- float:right;
- background: rgb(233,43,22);
- height:80%;
- width:20%;
- }
- aside ul{
- list-style-type: none;
- }
- article{
- height:48%;
- width: 100%;
- display: block;
- background: lightgreen;
- font-size: 100%;
- overflow:auto;
- text-align:justify;
- }
- body{
- background: purple;
- }
- article img{
- width:100%;
- }
- footer{
- background: brown;
- display:block;
- text-align: center;
- font-style: italic;
- }
- @media screen and (max-width: 870px){
- body{
- background: black;
- }
- nav li{
- width: 25%;
- }
- section{
- width:100%;
- }
- aside{
- width:0%;
- }
- }
- </style>
- </head>
- <body>
- <header>
- <h1>HTML5 Semantics</h1>
- </header>
- <nav>
- <ul>
- <li>Home</li>
- <li>About Us</li>
- <li>Contact Us</li>
- <ul>
- </nav>
- <section>
- This section has great articles
- <article>
- <h3>This is a great article.</h3>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
- </article>
- <article>
- <h3>Yet another awesome article.</h3>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
- </article>
- </section>
- <aside>
- <ul>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- <li> More Links </li>
- </ul>
- </aside>
- <footer>
- <p>Copyright Shail R. Shah 2015. All rights reservered under IT Act 2000.
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement