|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | + <link rel="stylesheet" href="blog.css" /> |
7 | 8 | <title>The Basic Language of the Web: HTML</title> |
8 | 9 | </head> |
9 | 10 | <body> |
10 | 11 | <header> |
11 | | - <h1>📘 The Code Magazine [DEMO]</h1> |
12 | | - <nav> |
| 12 | + <h1>📘 The Code Magazine</h1> |
| 13 | + <nav class="main_nav"> |
13 | 14 | <a href="#">Blog</a> |
14 | 15 | <a href="#">Challenges</a> |
15 | 16 | <a href="#">Flexbox</a> |
16 | 17 | <a href="#">Flexbox</a> |
17 | 18 | </nav> |
18 | 19 | </header> |
19 | 20 | <main> |
20 | | - <article> |
21 | | - <section> |
22 | | - <h2>The Basic Language of the Web: HTML</h2> |
23 | | - <img src="./images/laura-jones.jpg" /> |
24 | | - <p>Posted by <strong>Laura Jones</strong> on Monday,June 21st 2027</p> |
25 | | - </section> |
26 | | - <section> |
27 | | - <div> |
28 | | - <img src="./images/post-img.jpg" alt="picture of code" /> |
29 | | - <p> |
30 | | - All modern websites and web applications are built using three |
31 | | - <em>fundamental</em> technologies: HTML, CSS and JavaScript. These |
32 | | - are the languages of the web. |
33 | | - </p> |
34 | | - <p> |
35 | | - In this post, let's focus on HTML. We will learn what HTML is all |
36 | | - about, and why you too should learn it. |
37 | | - </p> |
38 | | - </div> |
39 | | - <div> |
40 | | - <h2>What is HTML?</h2> |
41 | | - <p> |
42 | | - HTML stands for |
43 | | - <strong>H</strong>yper<strong>T</strong>ext<strong>M</strong>arkup |
44 | | - <strong>L</strong>anguage. It's a markup language that web |
45 | | - developers use to structure and describe the content of a webpage |
46 | | - (not a programming language). |
47 | | - </p> |
48 | | - <p> |
49 | | - HTML consists of elements that describe different types of |
50 | | - content: paragraphs, links, headings, images, video, etc. Web |
51 | | - browsers understand HTML and render HTML code as websites. |
52 | | - </p> |
53 | | - </div> |
54 | | - <div> |
| 21 | + <header id="post_header"> |
| 22 | + <h2 id="post_title">The Basic Language of the Web: HTML</h2> |
| 23 | + <img class="thumbnail" src="./images/laura-jones.jpg" /> |
| 24 | + <p id="post_data"> |
| 25 | + Posted by <strong>Laura Jones</strong> on Monday,June 21st 2027 |
| 26 | + </p> |
| 27 | + </header> |
| 28 | + <section> |
| 29 | + <article class="content"> |
| 30 | + <img src="./images/post-img.jpg" alt="picture of code" /> |
| 31 | + <p> |
| 32 | + All modern websites and web applications are built using three |
| 33 | + <em>fundamental</em> technologies: HTML, CSS and JavaScript. These |
| 34 | + are the languages of the web. |
| 35 | + </p> |
| 36 | + <p> |
| 37 | + In this post, let's focus on HTML. We will learn what HTML is all |
| 38 | + about, and why you too should learn it. |
| 39 | + </p> |
| 40 | + </article> |
| 41 | + <article> |
| 42 | + <h3>What is HTML?</h3> |
| 43 | + <p> |
| 44 | + HTML stands for |
| 45 | + <strong>H</strong>yper<strong>T</strong>ext<strong>M</strong>arkup |
| 46 | + <strong>L</strong>anguage. It's a markup language that web |
| 47 | + developers use to structure and describe the content of a webpage |
| 48 | + (not a programming language). |
| 49 | + </p> |
| 50 | + <p> |
| 51 | + HTML consists of elements that describe different types of content: |
| 52 | + paragraphs, links, headings, images, video, etc. Web browsers |
| 53 | + understand HTML and render HTML code as websites. |
| 54 | + </p> |
| 55 | + <aside> |
55 | 56 | <p>In HTML, each element is made up of 3 parts:</p> |
56 | 57 | <ol> |
57 | 58 | <li>The opening tag</li> |
58 | 59 | <li>The closing tag</li> |
59 | 60 | <li>The actual element</li> |
60 | 61 | </ol> |
61 | 62 | <p>You can learn more at the <a href="#">MDN Web Docs</a>.</p> |
62 | | - </div> |
63 | | - <div> |
64 | | - <h2>Why should you learn HTML?</h2> |
65 | | - <p> |
66 | | - There are countless reasons for learning the fundamental language |
67 | | - of the web. Here are 5 of them: |
68 | | - </p> |
69 | | - <ul> |
70 | | - <li>To be able to use the fundamental web dev language</li> |
71 | | - <li> |
72 | | - To hand-craft beautiful websites instead of relying on tools |
73 | | - like Worpress or Wix |
74 | | - </li> |
75 | | - <li>To build web applications</li> |
76 | | - <li>To impress friends</li> |
77 | | - <li>To have fun 😃</li> |
78 | | - </ul> |
79 | | - <p>Hopefully you learned something new here. See you next time!</p> |
80 | | - </div> |
81 | | - </section> |
82 | | - </article> |
| 63 | + </aside> |
| 64 | + </article> |
| 65 | + <article> |
| 66 | + <h3>Why should you learn HTML?</h3> |
| 67 | + <p> |
| 68 | + There are countless reasons for learning the fundamental language of |
| 69 | + the web. Here are 5 of them: |
| 70 | + </p> |
| 71 | + <ul> |
| 72 | + <li>To be able to use the fundamental web dev language</li> |
| 73 | + <li> |
| 74 | + To hand-craft beautiful websites instead of relying on tools like |
| 75 | + Worpress or Wix |
| 76 | + </li> |
| 77 | + <li>To build web applications</li> |
| 78 | + <li>To impress friends</li> |
| 79 | + <li>To have fun 😃</li> |
| 80 | + </ul> |
| 81 | + <p>Hopefully you learned something new here. See you next time!</p> |
| 82 | + </article> |
| 83 | + </section> |
83 | 84 | <section> |
84 | | - <h3>Related posts</h3> |
85 | | - <ul> |
86 | | - <li> |
87 | | - <img src="./images/related-1.jpg" alt="guy coding" /> |
88 | | - <a href="#">How to Learn Web Development</a> |
89 | | - <p>By Jonas Schmedtmann</p> |
| 85 | + <h4>Related posts</h4> |
| 86 | + <ul id="related_posts"> |
| 87 | + <li class="post_card"> |
| 88 | + <img |
| 89 | + class="thumbnail" |
| 90 | + src="./images/related-1.jpg" |
| 91 | + alt="guy coding" |
| 92 | + /> |
| 93 | + <div> |
| 94 | + <a href="#">How to Learn Web Development</a> |
| 95 | + <p>By Jonas Schmedtmann</p> |
| 96 | + </div> |
90 | 97 | </li> |
91 | | - <li> |
92 | | - <img src="./images/related-2.jpg" alt="ligtning" /> |
93 | | - <a href="#">The Unkown Powers of CSS</a> |
94 | | - <p>By Jim Dillon</p> |
| 98 | + <li class="post_card"> |
| 99 | + <img |
| 100 | + class="thumbnail" |
| 101 | + src="./images/related-2.jpg" |
| 102 | + alt="ligtning" |
| 103 | + /> |
| 104 | + <div> |
| 105 | + <a href="#">The Unkown Powers of CSS</a> |
| 106 | + <p>By Jim Dillon</p> |
| 107 | + </div> |
95 | 108 | </li> |
96 | | - <li> |
97 | | - <img src="./images/related-3.jpg" alt="code" /> |
98 | | - <a href="#">Why JavaScript is Awesome</a> |
99 | | - <p>By Matilda</p> |
| 109 | + <li class="post_card"> |
| 110 | + <img class="thumbnail" src="./images/related-3.jpg" alt="code" /> |
| 111 | + <div> |
| 112 | + <a href="#">Why JavaScript is Awesome</a> |
| 113 | + <p>By Matilda</p> |
| 114 | + </div> |
100 | 115 | </li> |
101 | 116 | </ul> |
102 | 117 | </section> |
103 | | - <footer>Copyright © 2027 by The Code Magazine</footer> |
| 118 | + <footer> |
| 119 | + <p id="copyright">Copyright © 2027 by The Code Magazine</p> |
| 120 | + </footer> |
104 | 121 | </main> |
105 | 122 | </body> |
106 | 123 | </html> |
0 commit comments