Using HTML And CSS Properly — Part 2 of 3 — Example Site Markup

<p><a href="https://medium.com/codex/what-i-mean-by-using-html-and-css-properly-part-1-of-3-44804722e33a" rel="noopener">In the first article of this series</a>&nbsp;I outlined the history, reasoninng, and logic behind HTML that it seems most people never seem to grasp. This time around I want to from scratch code a simple &ldquo;personal website&rdquo; homepage to show the &ldquo;you don&rsquo;t need classes on everything&rdquo; semantic markup approach.</p> <p>Note that when I talk about &ldquo;DIV for nothing&rdquo; or &ldquo;classes for nothing&rdquo; I am&nbsp;<strong>not saying you don&rsquo;t need classes or DIV!</strong>&nbsp;What I&rsquo;m saying is don&rsquo;t use so blasted many of them.</p> <p>Again not to go back to the gormless inanity that are frameworks, but when I see code like this:</p> <pre> &lt;footer class=&quot;mt-32 flex-none&quot;&gt; &lt;div class=&quot;sm:px-8&quot;&gt; &lt;div class=&quot;mx-auto w-full max-w-7xl lg:px-8&quot;&gt; &lt;div class=&quot;border-t border-zinc-100 pb-16 pt-10 dark:border-zinc-700/40&quot;&gt; &lt;div class=&quot;relative px-4 sm:px-8 lg:px-12&quot;&gt; &lt;div class=&quot;mx-auto max-w-2xl lg:max-w-5xl&quot;&gt; &lt;div class=&quot;flex flex-col items-center justify-between gap-6 sm:flex-row&quot;&gt; &lt;div class=&quot;flex flex-wrap justify-center gap-x-6 gap-y-1 text-sm font-medium text-zinc-800 dark:text-zinc-200&quot;&gt; &lt;a class=&quot;transition hover:text-teal-500 dark:hover:text-teal-400&quot; href=&quot;/about&quot;&gt;About&lt;/a&gt; &lt;a class=&quot;transition hover:text-teal-500 dark:hover:text-teal-400&quot; href=&quot;/projects&quot;&gt;Projects&lt;/a&gt; &lt;a class=&quot;transition hover:text-teal-500 dark:hover:text-teal-400&quot; href=&quot;/speaking&quot;&gt;Speaking&lt;/a&gt; &lt;a class=&quot;transition hover:text-teal-500 dark:hover:text-teal-400&quot; href=&quot;/uses&quot;&gt;Uses&lt;/a&gt; &lt;/div&gt; &lt;p class=&quot;text-sm text-zinc-400 dark:text-zinc-500&quot;&gt;&copy; &amp;copy; somebody, All Rights Reserved &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/footer&gt;</pre> <p>Doing the job of</p> <p><a href="https://medium.com/codex/using-html-and-css-properly-part-2-of-3-example-site-markup-f1fb7b374bc2">Click Here</a></p>
Tags: CSS HTML Markup