Advertisement
goalCreateSupremeBot

4.SemanticArticlePage

Jan 21st, 2022
1,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.11 KB | None | 0 0
  1.                                         <!---------- HTML ---------->
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5.  
  6. <head>
  7.     <meta charset="UTF-8">
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10.     <link rel="stylesheet" href="semantic-article-page.css">
  11.     <title>Semantic Article Page</title>
  12. </head>
  13.  
  14. <body>
  15.     <article>
  16.         <header>
  17.             <h1>Apple</h1>
  18.             <p>Published: 9th October, 2009</p>
  19.         </header>
  20.         <p>An <b>apple</b> is a sweet, edible fruit produced by an apple tree (Malus pumila). Apple trees are cultivated
  21.             worldwide and are the most widely grown species in the genus Malus.</p>
  22.         <p>The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. Apples
  23.             have been grown for thousands of years in Asia and Europe and were brought to North America by European
  24.             colonists.</p>
  25.         <p>Apples have religious and mythological significance in many cultures, including Norse, Greek and European
  26.             Christian traditions.</p>
  27.     </article>
  28.     <section>
  29.         <article>
  30.             <h2>Comments</h2>
  31.             <p><time>~1 hour ago</time></p>
  32.             <p>
  33.                 <comment>I love apples, my favourite kind are Granny Smiths</comment>
  34.             </p>
  35.         </article>
  36.         <article>
  37.             <h2>Posted by: Oranges are king</h2>
  38.             <p><time>~1 hour ago</time></p>
  39.             <p>
  40.                 <comment> Urgh, apples!? you should write about ORANGES instead!!1!</comment>
  41.             </p>
  42.         </article>
  43.     </section>
  44. </body>
  45.  
  46. </html>
  47.  
  48.                                         <!---------- CSS ---------->
  49.  
  50. <!-- body {
  51.    padding: 5px 15px;
  52.    background-color: #e4e978;
  53. }
  54. article {
  55.    padding: 5px 15px;
  56.    border: 1px solid #b2ad7d;
  57.    margin: 15px 10px;
  58.    background-color: #f2f4c0;
  59. }
  60. section article {
  61.    font-style: italic;
  62.    color: #4c7658;
  63.                                            
  64. } -->
  65.                                        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement