<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bryce Robert Crist on Medium]]></title>
        <description><![CDATA[Stories by Bryce Robert Crist on Medium]]></description>
        <link>https://medium.com/@staticcoffee?source=rss-3353554d3101------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3B3PJ-CGgKHArnlxArlFIw.jpeg</url>
            <title>Stories by Bryce Robert Crist on Medium</title>
            <link>https://medium.com/@staticcoffee?source=rss-3353554d3101------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:10:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@staticcoffee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A crash course in HTML]]></title>
            <link>https://medium.com/@staticcoffee/a-crash-course-in-html-4c0edb6eb6ce?source=rss-3353554d3101------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0edb6eb6ce</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Bryce Robert Crist]]></dc:creator>
            <pubDate>Tue, 15 Nov 2016 21:58:01 GMT</pubDate>
            <atom:updated>2016-11-15T21:58:01.658Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>HTML (Hypertext Markup Language) is a series of elements that define the structure of a web page.</blockquote><p>In this lesson, we will ignore HTML5 for the time being, since this will be a simple introduction to the world of HTML. If you would like to learn about the new features of HTML5 after this article, check out <a href="http://www.w3schools.com/html/html5_intro.asp">w3schools’ course</a>, or follow my upcoming postings.</p><p>An <em>element</em>, sometimes referenced as a <em>tag</em>, is a small piece of code that wraps around text, or other elements, and defines how they function on a web page. An example of this is the <strong><em>&lt;a&gt;</em></strong> tag. The purpose of this tag is to create links to other pages. Without CSS styling, these links show as the standard, underlined, blue text.</p><p>There is a large series of HTML tags, and even more so with the advancement of <a href="https://en.wikipedia.org/wiki/HTML5">HTML5</a>. However, from my experience, I’ve only ever used a dozen or two of these tags, so don’t fret about remembering all of them. Here’s a list of HTML tags that we will be using:</p><pre>&lt;div&gt;...&lt;/div&gt;<br>&lt;p&gt;...&lt;/p&gt;<br>&lt;a&gt;...&lt;/a&gt;<br>&lt;ul&gt;...&lt;/ul&gt;<br>&lt;li&gt;...&lt;/li&gt;</pre><p>As you can see, this is not a long list of elements. If you would like to view a full list of elements, check out this page from <a href="http://www.w3schools.com/TAGs/">w3schools</a>’.</p><p>Now that we have seen some basic HTML tags, let’s explain them a little bit, along with other general concepts in terms of crafting an HTML sheet. Web pages should be thought as a series of <em>boxes</em> stacked together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*P9lmN7-rS9qJSYaoTbhzkQ.png" /><figcaption>Web page broken into separate <strong><em>boxes.</em></strong></figcaption></figure><p>As you can see above, I have broken a small piece of a web page into several <em>boxes</em>, outlining different items that make up a web page. A good way to manage and separate these <em>boxes</em> is with the <strong><em>&lt;div&gt;</em></strong> tag. Inside of these <strong><em>&lt;div&gt;</em></strong> tags, lies a multitude of <strong><em>&lt;p&gt; </em></strong>and <strong><em>&lt;a&gt;</em></strong> tags that host plain text and links to other web pages, respectively. The navigation links towards the top of the image, e.g. <em>newest, frequent, votes, etc.</em>, could be written as a list — which uses the <strong><em>&lt;ul&gt;</em></strong> tag to wrap around the list, much like how<strong><em> &lt;div&gt; </em></strong>tags wrap around other elements, and a <strong><em>&lt;li&gt;</em></strong> tag to dignify the list elements.</p><p>Now that we have learned about basic HTML tags, and how they collaborate with each other, let’s write our first HTML sheet!</p><p>In a text editor of choice, create a file named <strong><em>`index.html`</em></strong>. For our sake, it does not matter much what you <em>name</em> the file, as long as it ends with the <strong><em>.html</em></strong> file extension.</p><p>On the first line of the file, it is extremely important that one declares the document type.</p><pre>&lt;!DOCTYPE html&gt;</pre><p>This must be done in order to let a web browser know what version of HTML the page is written in. The declaration above is used for HTML 5 documents, but it can be used for our example as well.</p><p>Next, you must include the <strong><em>&lt;html&gt; </em></strong>tag, and wrap that around the chunk of your code, like so:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;/html&gt;</pre><p>As you can see, nearly all elements have <em>opening </em>and <em>closing</em> tags. This is because elements are generally <em>nested</em>, or rather, they wrap around one another.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>    &lt;head&gt;&lt;/head&gt;<br>    &lt;body&gt;&lt;/body&gt;<br>&lt;/html&gt;</pre><p>HTML sheets are broken into a couple parts. The <em>h</em>ead<em> </em>contains information about the document, namely its character sets, title of the page, links to CSS style sheets, author accreditation, and more. The <em>body</em> contains the rest of our web page, including a majority of our elements.</p><p>We now have a HTML sheet, but it still doesn’t do anything. Let’s have it read out “<em>Hello World!”</em> for us.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>    &lt;head&gt;&lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;div&gt;<br>            &lt;p&gt;Hello World!&lt;/p&gt;<br>        &lt;/div&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><p>As you can see above, we added a <strong><em>&lt;div&gt;</em></strong> element to wrap around our text, which is the standard practice, and a <strong><em>&lt;p&gt;</em></strong> element nested inside to display our text. It is not 100% necessary to include the paragraph tag to display text, simply writing <em>“Hello World!” </em>in between your <strong><em>&lt;div&gt;</em></strong> tags will show the message as well. However, if you want to specify styling for the text, and not the container around it, you should use the <strong><em>&lt;p&gt;</em></strong> tag.</p><p>Navigate to the folder in which you have saved this file, double click it, and it will open to your default web browser. You should be seeing something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxDg4Tn4L_056zk-bY6rsQ.png" /><figcaption>Your first web page!</figcaption></figure><p>You may notice the address is the local route to your HTML file; obviously this is not live on the web.</p><p>Let’s finish up our page by adding a list of our favorite colors. The document should read:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>    &lt;head&gt;&lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;div&gt;<br>            &lt;p&gt;Hello World!&lt;/p&gt;<br>        &lt;/div&gt;<br>        &lt;div&gt;<br>            &lt;p&gt;My favorite colors:&lt;/p&gt;<br>            &lt;ul&gt;<br>                &lt;li&gt;Blue&lt;/li&gt;<br>                &lt;li&gt;Red&lt;/li&gt;<br>                &lt;li&gt;Green&lt;/li&gt;<br>            &lt;/ul&gt;<br>        &lt;/div&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><p>We’ve added another <strong><em>&lt;div&gt;</em></strong> tag to wrap around our list, a <strong><em>&lt;p&gt; </em></strong>tag to identify a title to our list, a <strong><em>&lt;ul&gt;</em></strong> tag to wrap around our list elements, and a few <strong><em>&lt;li&gt; </em></strong>tags to mark our list items.</p><p>Our page now looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrNUE9ZYsxG7Gwg2uRbUzw.png" /></figure><p>In my next post, we will be putting together a more comprehensive, and in-depth, tutorial into HTML. We will also be introducing the use of CSS style sheets. If you have <strong>any</strong> questions, feel free to contact me through the email listed on my profile page: “<strong>staticcoffee@programmer.net</strong>”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0edb6eb6ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>