<?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 Ian J Sikes on Medium]]></title>
        <description><![CDATA[Stories by Ian J Sikes on Medium]]></description>
        <link>https://medium.com/@ianjsikes?source=rss-67ba298d6b58------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kWVVzSkUXGn8ANo2qxsnAg.jpeg</url>
            <title>Stories by Ian J Sikes on Medium</title>
            <link>https://medium.com/@ianjsikes?source=rss-67ba298d6b58------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 09:50:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ianjsikes/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[Get Started with Rust, WebAssembly, and Webpack]]></title>
            <link>https://medium.com/@ianjsikes/get-started-with-rust-webassembly-and-webpack-58d28e219635?source=rss-67ba298d6b58------2</link>
            <guid isPermaLink="false">https://medium.com/p/58d28e219635</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[webassembly]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ian J Sikes]]></dc:creator>
            <pubDate>Thu, 22 Jun 2017 19:02:31 GMT</pubDate>
            <atom:updated>2017-11-27T01:49:24.338Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p><strong>Update:</strong> The Rust compiler now has <em>native</em> support for compilation to WebAssembly without Emscripten! This simplifies the process significantly. I may write an updated guide soon. For now, see <a href="https://www.hellorust.com/demos/add/index.html">this page</a> for a minimal example of Rust and WebAssembly (without Webpack).</p><p>I’ve been seeing a lot of really cool <a href="https://twitter.com/search?q=%23wasm&amp;src=typd">#wasm</a> <em>(WebAssembly)</em> stuff on <a href="https://twitter.com/jose_pedro_dias/status/876592025881251840">Twitter</a> and <a href="https://news.ycombinator.com/item?id=14341623">Hacker News</a> lately, but I didn’t know much about what it is exactly, or how to start using it. Because it is so new — only being enabled in Chrome last March — up-to-date guides are few and far between. After struggling through getting something to run, here’s what I’ve learned:</p><p><a href="http://webassembly.org/">WebAssembly</a> is a <em>cool new binary format</em> and compile target for the web. That means you can compile languages like C, C++, and Rust to .wasm files and execute that code in your browser. In most cases, the resulting code is significantly <a href="https://hacks.mozilla.org/2017/03/why-webassembly-is-faster-than-asm-js/">faster <em>and</em> smaller</a> than Javascript.</p><p>This guide will walk you through setting up Rust, WebAssembly, and Webpack in a typical JS web app. The goal is to be able to execute low-level Rust code in the browser alongside the Javascript you know and love <em>(or hate)</em>.</p><p><strong><em>Note:</em></strong> These technologies are constantly changing. This guide is using:</p><ul><li>webpack 3.0.0</li><li>cargo 0.19.0</li><li>emcc 1.37.13</li></ul><p><a href="https://github.com/ianjsikes/rust-wasm-webpack-tutorial">Here is the finished project</a>. If you notice something is out-of-date, let me know with an <a href="https://github.com/ianjsikes/rust-wasm-webpack-tutorial/issues/new">issue</a> or <a href="https://github.com/ianjsikes/rust-wasm-webpack-tutorial/compare">PR</a> 😊.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aFsLoH0D8wk-kXxAuaZreA.jpeg" /></figure><h4>What you will need</h4><p>Follow these links to install:</p><ul><li><a href="https://nodejs.org/en/download/">Node</a></li><li><a href="https://www.rust-lang.org/en-US/install.html">Rust</a></li></ul><h4>Install the Emscripten Rust compiler</h4><p>Install the WebAssembly <a href="http://kripken.github.io/emscripten-site/">Emscripten</a> compile target for Rust:</p><pre> rustup target add wasm32-unknown-emscripten</pre><p>Install <a href="https://cmake.org/">cmake</a>. This varies depending on your platform, choose the option right for you or see the <a href="https://cmake.org/install/">install page</a> for more options:</p><pre>brew install cmake                  # MacOS, brew<br>sudo port install cmake             # MacOS, MacPorts<br>sudo apt-get install cmake          # Debian Linux</pre><p>Install the Emscripten SDK. This is going to take a while (<em>~2 hours for me</em>).</p><blockquote>Note: If ./emsdk update or ./emsdk install give you errors, it may be that Python3 is your default Python. Try installing Python 2.7 and replacing ./emsdk ... with python2.7 emsdk ...</blockquote><pre> cd ~<br> wget <a href="https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz">https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz</a><br> tar -xvf emsdk-portable.tar.gz<br> cd emsdk-portable<br> ./emsdk update<br> ./emsdk install sdk-incoming-64bit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*J-1MC3QGbIuwq4tb-yr-iA.png" /><figcaption><a href="https://xkcd.com/303/">https://xkcd.com/303/</a></figcaption></figure><p>Next, we’ll need to add the following directories to our PATH environment variable:</p><pre>~/emsdk-portable<br>~/emsdk-portable/clang/fastcomp/build_incoming_64/bin<br>~/emsdk-portable/emscripten/incoming</pre><p>Reload the terminal, then run emcc -v to check that the Emscripten compiler is installed.</p><h4>Compile and load Rust with Webpack</h4><p>Let’s create a Rust/Javascript hybrid project:</p><pre>cargo new tutorial --bin --vcs none<br>cd tutorial<br>npm init        # You can just hit enter for every option</pre><p>We need to install <a href="https://webpack.js.org/">webpack</a>, <a href="https://www.npmjs.com/package/http-server">http-server</a> to serve our content, and <a href="https://www.npmjs.com/package/rust-wasm-loader">rust-wasm-loader</a> to compile and load Rust code as .wasm modules.</p><pre>npm install --save-dev webpack http-server rust-wasm-loader</pre><p>Add a few helpful scripts to our package.json:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5b035c84f7d2fb7aa52c5a457039154/href">https://medium.com/media/e5b035c84f7d2fb7aa52c5a457039154/href</a></iframe><p>Create an index.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbe1aa51388c105f5829957a0187e4e8/href">https://medium.com/media/bbe1aa51388c105f5829957a0187e4e8/href</a></iframe><p>Create a webpack.config.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17236e692e30d157f0b2a6b871d3987c/href">https://medium.com/media/17236e692e30d157f0b2a6b871d3987c/href</a></iframe><p>Let’s add a function to our src/main.rs that we will call from Javascript:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1629485b4e4f24e18283a8132926ed3/href">https://medium.com/media/b1629485b4e4f24e18283a8132926ed3/href</a></iframe><p>Finally, we’ll write some code in src/index.js to load and use the WebAssembly module:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4c46b606e24a707ff8edf70e8358df3/href">https://medium.com/media/e4c46b606e24a707ff8edf70e8358df3/href</a></iframe><p>Run these commands to compile and serve the project:</p><pre>npm run compile<br>npm run serve</pre><p>Navigate the browser to localhost:8080, open the Javascript console, and rest your weary eyes on the glorious output of our WebAssembly compiled Rust code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*U_gGGdZpNd7sQfxBkeuHhg.png" /><figcaption>It’s happening!</figcaption></figure><p><strong>We did it! </strong><a href="https://github.com/ianjsikes/rust-wasm-webpack-tutorial">Here is the finished project</a>. I hope this tutorial helps you explore the <em>exciting new world of WebAssembly</em>. Below are some resources that I’ve found useful. Contact me on <a href="https://twitter.com/ianjsikes">Twitter</a> if you have any questions/comments/feedback/hate-mail.</p><h4>Resources</h4><ul><li><a href="http://www.hellorust.com/emscripten/">Compiling Rust to your Browser</a></li><li><a href="http://kripken.github.io/emscripten-site/docs/index.html">Emscripten Docs</a></li><li><a href="http://asquera.de/blog/2017-04-10/the-path-to-rust-on-the-web/">The Path to Rust on the Web</a> — This post has more in-depth usage examples.</li><li><a href="https://crates.io/crates/webplatform">webplatform</a> — A Rust crate for interacting with the DOM.</li><li><a href="https://developer.mozilla.org/en-US/docs/WebAssembly">WebAssembly — MDN</a></li><li><a href="https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627">Compiling to the web with Rust and emscripten</a></li><li><a href="https://github.com/mrdziuban/rust-emscripten-loader">mrdziuban/rust-emscripten-loader</a> — <a href="https://www.npmjs.com/package/rust-wasm-loader">rust-wasm-loader</a> is a fork of this awesome project with small changes to the way modules are initialized. Check this loader out if you want the flexibility of choosing between asm.js and WebAssembly targets.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58d28e219635" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Personal Website with HTML and CSS (Part 3)]]></title>
            <link>https://medium.com/@ianjsikes/build-a-personal-website-with-html-and-css-part-3-7b722bc4fbea?source=rss-67ba298d6b58------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b722bc4fbea</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ian J Sikes]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 02:05:17 GMT</pubDate>
            <atom:updated>2016-10-11T02:05:17.650Z</atom:updated>
            <content:encoded><![CDATA[<p>In the final part of this guide, we are going to use Github Pages to host our site for free.</p><blockquote><strong>Note:</strong> This tutorial was made for a workshop for Santa Monica College Computer Programming Club. Some information may be missing from the text.</blockquote><h4>Get on Github</h4><p>Create an account on <a href="https://github.com/">Github</a>, or sign in if you already have an account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*18ZfDJhwkhpDYl3Z63kT8g.png" /></figure><p>Go <a href="https://github.com/new">here</a>, or click the <em>“New repository”</em> button to create a new repository. Name your repository username.github.io, where username is your Github username. Check the box that says “Initialize this repository with a README”. Add a description if you’d like, then click “Create repository”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*nksG6ESqQ8Tpn2Nhf5a4Dg.png" /></figure><p>You will be taken to your new repository. Click the “Upload files” button. Drag the contents of your project folder into Github, or select the files from the file browser. The files you need to upload are:</p><pre>img<br>└── profile.jpg<br>index.html<br>style.css</pre><p>Click “Commit changes” to save your files to your repository. If you look at your repository now, you should see all your files.</p><p>That’s it! Go to username.github.io in your browser to see your new website. Here’s <a href="https://ianjsikes.github.io/">mine</a> for example. Congratulations on getting through this guide. Be sure to check out the <strong>What’s Next?</strong> section of each part for additional resources and next steps you can take to learn more about web development.</p><h3>What’s Next?</h3><p>We used Github’s web interface to directly upload our files. A much more powerful way to use Github to host our code is with Git. With Git, you can track changes and history of your project files and collaborate with others. <a href="https://try.github.io/">Github</a>, <a href="https://www.codecademy.com/learn/learn-git">Codecademy</a>, and <a href="https://www.freecodecamp.com/challenges/save-your-code-revisions-forever-with-git">Free Code Camp</a> all have excellent free courses for learning Git. Try using Git to clone your repository, make a change, and push the change back up to Github to see your hosted site change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b722bc4fbea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Personal Website with HTML and CSS (Part 2)]]></title>
            <link>https://medium.com/@ianjsikes/build-a-personal-website-with-html-and-css-part-2-a12ca00f5c1b?source=rss-67ba298d6b58------2</link>
            <guid isPermaLink="false">https://medium.com/p/a12ca00f5c1b</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ian J Sikes]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 01:13:42 GMT</pubDate>
            <atom:updated>2016-10-11T02:39:20.659Z</atom:updated>
            <content:encoded><![CDATA[<p>In part 2 of this guide, we’ll use CSS to style our website.</p><blockquote><strong>Note:</strong> This tutorial was made for a workshop for Santa Monica College Computer Programming Club. Some information may be missing from the text.</blockquote><h3>Style</h3><p>Let’s create a new css file called style.css. Our folder now looks like this:</p><pre>website<br>├── img<br>│   └── profile.jpg<br>├── index.html<br>└── style.css</pre><p>Now, in our index.html, we need to <em>link</em> our css file to our html, so the browser knows to use style.css to style our page. For this, we use a &lt;link&gt; tag in the &lt;head&gt; of the file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e413808cb25b8b0fdc6be844ca485c9/href">https://medium.com/media/9e413808cb25b8b0fdc6be844ca485c9/href</a></iframe><p>Open up the style.css folder. The first thing we’ll do is turn our square image into a circle.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5df2bea80467490be36d7f2075794036/href">https://medium.com/media/5df2bea80467490be36d7f2075794036/href</a></iframe><p>CSS consists of <em>rules</em> (statements that change the style of an element), and <em>selectors</em> (identifiers that dictate what element to apply those rules to). In the above code, the .profile-picture selector is used to target our image. We apply the border-radius rule to create a rounded image.</p><blockquote>We are going to use a lot of different rules and selectors here. I won’t go over all of them. A great reference to look up CSS rules is <a href="http://www.w3schools.com/cssref/default.asp">W3Schools</a></blockquote><p>Next, we’re going to add a bunch of style rules for positioning the page. I’ll also add in some background-color rules just to illustrate the boundaries of each div.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/abda101bfa4f63d02f5cfe7ad0dee900/href">https://medium.com/media/abda101bfa4f63d02f5cfe7ad0dee900/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Cknx2mxkSAxGDYYeWb5EAQ.png" /></figure><h4>Fonts and Links</h4><p>The default browser fonts aren’t terrible, but let’s change them to make our site look more unique. We can use another &lt;link&gt; tag to get some fonts from <a href="https://fonts.google.com/">Google Fonts</a>. Add the following link tag to index.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/526bd80f7805d34175f90cdca8868de6/href">https://medium.com/media/526bd80f7805d34175f90cdca8868de6/href</a></iframe><p>Now we can use the <strong>Roboto</strong> and <strong>Open Sans</strong> fonts in our CSS.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8acc130ab81795d7e3f0b58767e6ebd6/href">https://medium.com/media/8acc130ab81795d7e3f0b58767e6ebd6/href</a></iframe><p>Almost there! Now let’s add some styling to our social media links. Add the following to style.css:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e1505fb926335f24c0fd7f6da329a2e/href">https://medium.com/media/8e1505fb926335f24c0fd7f6da329a2e/href</a></iframe><p>To put the finishing touch on our site, let’s add a nice gradient background color.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5523ba78f20d6c12afe5dfd9270c1107/href">https://medium.com/media/5523ba78f20d6c12afe5dfd9270c1107/href</a></iframe><p>You can experiment with different colors for your gradient. Check out <a href="https://coolors.co/app">Coolers.co</a> or <a href="http://paletton.com/">Paletton</a> for nice color combinations.</p><p>We’re finished! If everything worked out, your site should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*7dsQrPrexJrVy6boXUwq8Q.png" /></figure><p>Check out <a href="https://medium.com/@ianjsikes/build-a-personal-website-with-html-and-css-part-3-7b722bc4fbea#.8q01585ke">Part 3</a> to see how to host this site for free on Github!</p><h3>What’s Next?</h3><p><a href="https://www.codecademy.com/learn/web">Codecademy</a> and <a href="https://www.freecodecamp.com/">Free Code Camp</a> also have excellent guides on CSS. <a href="http://www.w3schools.com/css/default.asp">W3Schools</a> is good for researching new CSS rules and selectors.</p><p>Try using different CSS to reposition the elements of your page without changing the HTML. You can change the text styles, add borders to the images and links, or adjust the spacing between things.</p><p>For an extra challenge, research <em>responsive design</em> and <em>media breakpoints</em> and try changing the layout of the site to be more mobile-friendly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a12ca00f5c1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Personal Website with HTML and CSS (Part 1)]]></title>
            <link>https://medium.com/@ianjsikes/build-a-personal-website-with-html-and-css-part-1-3013fb5dacd4?source=rss-67ba298d6b58------2</link>
            <guid isPermaLink="false">https://medium.com/p/3013fb5dacd4</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Ian J Sikes]]></dc:creator>
            <pubDate>Sun, 09 Oct 2016 00:46:22 GMT</pubDate>
            <atom:updated>2016-10-11T02:30:35.593Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide will show you how to build a simple website, with no previous HTML or CSS experience. The final product will look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*7dsQrPrexJrVy6boXUwq8Q.png" /></figure><blockquote><strong>Note:</strong> This tutorial was made for a workshop for Santa Monica College Computer Programming Club. Some information may be missing from the text.</blockquote><h3>Content</h3><p>The first thing we’ll do is create a folder to hold our project, and the base file of our site, called index.html. Here is what your folder should look like:</p><pre>website/<br>  index.html</pre><p>Next, open index.html in our text editor. If you’re not sure what program to use as a text editor, you can use <a href="https://www.sublimetext.com/3">Sublime Text 3</a>, <a href="https://code.visualstudio.com/download">Visual Studio Code</a>, or <a href="https://atom.io/">Atom</a>.</p><p>Let’s start with the basic structure for a HTML page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db413d104239a21ebf10236e90bd78cf/href">https://medium.com/media/db413d104239a21ebf10236e90bd78cf/href</a></iframe><p>HTML is made up of “tags” (the things surrounded by &lt; &gt;). I won’t discuss every tag used here, but the most important thing is that the content of the website goes between the &lt;body&gt; and &lt;/body&gt; tags.</p><p>If you double-click on the index.html file on your computer, it will open in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*ebmDRFaMunbgqI8BF8DxiA.png" /><figcaption>It’s something!</figcaption></figure><p>We’ve created a functioning website! It’s pretty empty though. Let’s add some more content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee79472863de8c32c12aa4ea8f2c7de3/href">https://medium.com/media/ee79472863de8c32c12aa4ea8f2c7de3/href</a></iframe><p>These are called header tags. They indicate topics or important info. Headers range from &lt;h1&gt; to &lt;h6&gt;.</p><h4>Links</h4><p>What’s a website without links? We want to add some links to our various social media accounts. We can use the &lt;a&gt; tag to create a link, like this:</p><pre>&lt;a href=”https://github.com/ianjsikes”&gt;Github&lt;/a&gt;</pre><p>The href property in the tag holds the URL the link goes to. The text between the tags will be what appears as clickable, like <a href="https://github.com/ianjsikes">this</a>.</p><h4>Lists</h4><p>We want to list multiple links on our site, so we will use an HTML list. The code for a list looks like this:</p><pre>&lt;ul&gt;<br>  &lt;li&gt;Item 1&lt;/li&gt;<br>  &lt;li&gt;Item 2&lt;/li&gt;<br>&lt;/ul&gt;</pre><p>Our list will be wrapped in &lt;ul&gt; (unordered list) tags. Each item of the list will be wrapped in a &lt;li&gt; (list item) tag.</p><p>Let’s combine what we know about <strong>links</strong> and <strong>lists</strong> to create a list of social media links on our site.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5545a9cfe5b5ba9fa638c56979e20aa4/href">https://medium.com/media/5545a9cfe5b5ba9fa638c56979e20aa4/href</a></iframe><p>So we have an unordered list, and each list item contains a link. We can easily add more links to our list.</p><p>Next, we’ll add to the content of our site is a short bio. We’ll use the &lt;p&gt; tag (short for paragraph) to contain it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7407f7df7da9d057d7bd80f7a4e32383/href">https://medium.com/media/7407f7df7da9d057d7bd80f7a4e32383/href</a></iframe><h4>Images</h4><p>All that text is a little boring. Let’s add a profile picture to mix it up. Take a picture file you have and put it inside an img folder in your project, like this:</p><pre>website/<br>  img/<br>    profile.jpg<br>  index.html</pre><p>We can display that image on the page using a &lt;img /&gt; tag. Let’s put one at the top of our page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/849537cf76f4a1a2a6a942827cd52596/href">https://medium.com/media/849537cf76f4a1a2a6a942827cd52596/href</a></iframe><p>The src attribute tells the browser where the image is in relation to our index.html file. The width attribute forces the image to be 200 pixels wide. &lt;img /&gt; tags do not need closing tags. They are <em>self-closing</em>.</p><p>Here is what our site looks like now that we’ve finished adding all of the content:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*Rcvkdy6SXTSBc2ZgRikJ0Q.png" /></figure><h3>Structure</h3><p>Before we can start styling our page, we need to group certain elements together. Here is an illustration of what I mean:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*C1MuEqpzLFSBnsT65oJVsw.png" /></figure><p>We’ll use the &lt;div&gt; element to divide our HTML into logical groupings. We need to add three divs to achieve that.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1154aa85c005581ace41a17513dd209e/href">https://medium.com/media/1154aa85c005581ace41a17513dd209e/href</a></iframe><p>This won’t actually change the appearance of our site at all, but it will allow us to later reposition sections of content.</p><h4>Classes</h4><p>It’s hard to keep track of what each element does. Later, when we style the page, we want to give names to our elements to specify which ones to style. This is what the class attribute is for. A class attribute can go on any tag. Let’s add classes to our file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d985539dc8cf9c9192e309c00c5de38e/href">https://medium.com/media/d985539dc8cf9c9192e309c00c5de38e/href</a></iframe><p>We’re finally ready to get to styling with CSS! I’ll cover that in <a href="https://medium.com/@ianjsikes/build-a-personal-website-with-html-and-css-part-2-a12ca00f5c1b">Part 2</a>.</p><h3>What’s Next?</h3><p>Check out <a href="https://www.codecademy.com/">Codecademy</a> and <a href="https://www.freecodecamp.com/">Free Code Camp</a> for some great free guides on HTML <em>(and many other topics)</em>. <a href="http://www.w3schools.com/tags/default.asp">W3Schools</a> is also a great quick reference.</p><p>Experiment with adding more social links, rearranging the order of your content, or adding more images.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3013fb5dacd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>