aboutsummaryrefslogtreecommitdiff
path: root/build/html-like-1999/index.html
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
committerBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
commit16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (patch)
tree11947abb71e38cbe75116871694a44c33d257763 /build/html-like-1999/index.html
parentdcfb172704f3afb68a30425029ec834be2883274 (diff)
Remove incorrectly generated files, fix up markdown articles
Diffstat (limited to 'build/html-like-1999/index.html')
-rw-r--r--build/html-like-1999/index.html30
1 files changed, 5 insertions, 25 deletions
diff --git a/build/html-like-1999/index.html b/build/html-like-1999/index.html
index a9202ea..c853138 100644
--- a/build/html-like-1999/index.html
+++ b/build/html-like-1999/index.html
@@ -3,11 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>Write HTML Like It's 1999</title>
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
<link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
-<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}blockquote{background:rgba(0,0,0,0.1);border-left:4px solid;padding-left:5px;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
@@ -16,57 +17,36 @@
<main>
<h1 id="write-html-like-its-1999">Write HTML Like It&#8217;s 1999</h1>
-
<p>2019-06-06</p>
-
<p>I am sure it&#8217;s safe to say that most developers love to use the latest and greatest web tools available. Helpful resources such as preprocessors, template engines, syntax formatters - you name it - can all make a developer&#8217;s life easier. Unfortunately, this sometimes comes at a cost: the HTML structure.</p>
-
<p>This is why I try my best to write HTML as if I&#8217;m stuck with the constraints of the 90s (within reason). What does this mean exactly? It means that <code>tables</code> are coded with <code>table</code> elements. Navigations are coded with <code>nav</code> and ordered&#47;unordered list-items. Form inputs are not set with <code>display: none</code> and replaced with custom containers. You know, <em>semantic</em> HTML.</p>
-
<p>To be clear, I&#8217;m not advocating for creating projects that <em>look</em> like they belong in the 1990s. I would just prefer developers &#47; designers be more conscious of their HTML <em>skeleton</em>.</p>
-
<h2 id="bad-html-practices">Bad HTML practices</h2>
-
<p>Let&#8217;s do a very simple breakdown of some of the more common HTML no-nos:</p>
-
<h2 id="good-html-practices">Good HTML practices</h2>
-
<p>So what should you do in place of these bad HTML implementations?</p>
-
<h2 id="my-basic-structure-test">My basic &#8220;structure&#8221; test</h2>
-
<p>I&#8217;ve found a pretty simple starting point for testing the <em>bones of a website</em> by using the following single line of CSS:</p>
-
<pre><code>* {
border: 2px dotted black;
}
</code></pre>
-
<p>This property simply outlines all elements on the current page in a dotted border. By placing a border on every HTML element you can instantly see how overly complex or <em>ugly</em> your structure might be under the hood.</p>
-
<h2 id="thanks-captain-obvious">&#8220;Thanks, Captain Obvious!&#8221;</h2>
-
<p>I know, this stuff is pretty basic. The point of this post isn&#8217;t to tell you (developers) something brand new or mind-blowing, but instead should inspire you to keep things simple.</p>
-
<p>Don&#8217;t forget that there is always someone new into the world of design and development. Hopefully this post steers others towards keeping HTML code semantic and clean.</p>
-
<h2 id="update-to-this-article">Update to this article</h2>
-
<p>Since this post received <a href="https://news.ycombinator.com/item?id=20133817">so much more attention</a> than I ever expected, I&#8217;ve decided to touch on a few small points brought up in the comments.</p>
-
<ol>
-<li><p><strong>What is the benefit of semantic HTML?</strong></p>
-
+<li><strong>What is the benefit of semantic HTML?</strong>
<ul>
<li>Accessibility. Programs like screen readers are built around the foundation of proper HTML hierarchy. I highly recommend testing all your projects with a screen reader - it will open your eyes to a lot of issues users with disabilities suffer through.</li>
</ul></li>
-<li><p><strong>Tables not being responsive</strong></p>
-
+<li><strong>Tables not being responsive</strong>
<ul>
<li>This simply isn&#8217;t true. It is much more semantic to layout your tables as you would normally, then for mobile devices you can target specific inner elements and alter them with <code>flexbox</code> etc. (You can see responsive tables in action <a href="/responsive-tables">here</a>)</li>
</ul></li>
-<li><p><strong>Instead of the CSS one-liner, simply use Firefox debugger</strong></p>
-
+<li><strong>Instead of the CSS one-liner, simply use Firefox debugger</strong>
<ul>
<li>Fair point. Firefox is great!</li>
</ul></li>