<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eddy Chung</title>
    <description>The latest articles on DEV Community by Eddy Chung (@rising_block).</description>
    <link>https://dev.to/rising_block</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F456504%2F6948e89c-ad47-4402-b245-044c38e07f03.jpg</url>
      <title>DEV Community: Eddy Chung</title>
      <link>https://dev.to/rising_block</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rising_block"/>
    <language>en</language>
    <item>
      <title>Setup Your Computer For Web Development</title>
      <dc:creator>Eddy Chung</dc:creator>
      <pubDate>Sat, 29 Aug 2020 20:30:35 +0000</pubDate>
      <link>https://dev.to/rising_block/setup-your-computer-5fan</link>
      <guid>https://dev.to/rising_block/setup-your-computer-5fan</guid>
      <description>&lt;p&gt;Let’s set up your computer so it’s ready to code.&lt;/p&gt;

&lt;p&gt;I recommend the &lt;a href="https://atom.io/"&gt;Atom text editor&lt;/a&gt; for coding.&lt;/p&gt;

&lt;p&gt;Watch this video to see how to get yourself setup.&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/452898775" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Explained
&lt;/h2&gt;

&lt;p&gt;HTML stands for HyperText Markup Language. It’s used to create every webpage. It defines the structure and the content of a page.&lt;/p&gt;

&lt;p&gt;Tags are what HTML uses to define these structures. Tag names are surrounded by &amp;lt;&amp;gt;, also known as angle brackets.&lt;/p&gt;

&lt;p&gt;Angle brackets are the greater than and less than signs, above the period (.) and comma button (,) on most keyboards.&lt;/p&gt;

&lt;p&gt;Tags typically have an opening tag and a closing tag (there are some exceptions to this rule).&lt;/p&gt;

&lt;p&gt;All HTML files must start and end with an &lt;strong&gt;html&lt;/strong&gt; tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Closing tags in HTML have a ‘/’ after the first angled bracket.&lt;/p&gt;

&lt;p&gt;To display something in the browser, you should enclose the content inside &lt;strong&gt;body&lt;/strong&gt; tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
  &amp;lt;body&amp;gt;
    Hello HTML! 
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Notice how we start to &lt;em&gt;indent&lt;/em&gt; our HTML code here. This makes it easier to read. The indents represent what tag we are “inside”. It’s clear that the body tag is inside the html tag here, and that our sentence “Hello HTML!” is inside the body tag.&lt;/p&gt;

&lt;p&gt;The last tag that was used in the video was a heading 1 tag. There are 6 heading tags in HTML from h1 all the way to h6. We’ll look into this more in the next lesson.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Heading 1!&amp;lt;/h1&amp;gt;
    Hello HTML! 
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Hotkeys
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;CMD + S / CTRL + S to save &lt;/li&gt;
&lt;li&gt;CMD + R / CTRL + R to refresh your browser &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Action Items
&lt;/h2&gt;

&lt;p&gt;Before proceeding you should have completed the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installed Atom on your computer &lt;/li&gt;
&lt;li&gt;Opened Atom and created a &lt;em&gt;website.html&lt;/em&gt; file &lt;/li&gt;
&lt;li&gt;Added the code in this lesson to your &lt;em&gt;website.html&lt;/em&gt; file&lt;/li&gt;
&lt;li&gt;Loaded &lt;em&gt;website.html&lt;/em&gt; in your browser (Google Chrome is recommended) &lt;/li&gt;
&lt;li&gt;Modified the code (simply change the text), saved it and refreshed your browser to see the change. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you’ve completed these steps and are comfortable with how everything works, you’re ready to move on to the &lt;a href="https://www.risingblock.com/html-basics-with-cheatsheet"&gt;next lesson&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have any questions, please let me know – email me &lt;a href="mailto:eddy@risingblock.com"&gt;eddy@risingblock.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>html</category>
    </item>
    <item>
      <title>HTML Basics With Cheatsheet</title>
      <dc:creator>Eddy Chung</dc:creator>
      <pubDate>Fri, 28 Aug 2020 02:05:13 +0000</pubDate>
      <link>https://dev.to/rising_block/html-basics-with-cheatsheet-1b4e</link>
      <guid>https://dev.to/rising_block/html-basics-with-cheatsheet-1b4e</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r-odQQJf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.risingblock.com/wp-content/uploads/2020/08/html-basics-1024x734.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r-odQQJf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.risingblock.com/wp-content/uploads/2020/08/html-basics-1024x734.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this post, we’re going to cover HTML basics. Download the &lt;a href="https://www.risingblock.com/html-basics-with-cheatsheet"&gt;cheatsheet for HTML basics here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is HTML?
&lt;/h2&gt;

&lt;p&gt;HTML is the structure &amp;amp; content of the webpage.&lt;/p&gt;

&lt;p&gt;This includes the words, buttons, images, lists, forms and more.&lt;/p&gt;

&lt;p&gt;It does not include styling like padding, sizing, grids, margins, fonts, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML Tags
&lt;/h2&gt;

&lt;p&gt;Let’s do a deep dive into the basic HTML tags.&lt;/p&gt;

&lt;h3&gt;
  
  
  HTML &amp;amp; Body Tag
&lt;/h3&gt;

&lt;p&gt;All your HTML code should be enclosed in html tags. &lt;/p&gt;

&lt;p&gt;Anything visible on the screen should be enclosed inside a body tag. Otherwise, you could run into some unexpected bugs on some browsers.&lt;/p&gt;

&lt;p&gt;So let’s make our basic website like this:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/wvGdYLB?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Remember to save your file in your text editor &amp;amp; refresh your page in your browser after every change.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Headings
&lt;/h3&gt;

&lt;p&gt;There are 6 heading tags in HTML. They go from h1 all the way to h6. H1 is the largest heading, think of it as the page title. H2 is the subtitle and so on for h3, h4, h5, h6.&lt;/p&gt;

&lt;p&gt;Try adding these headers to your website:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/RwaVqbO?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Divs
&lt;/h3&gt;

&lt;p&gt;Dividers or divs separate your page into different sections. They act as containers to group together HTML elements.&lt;/p&gt;

&lt;p&gt;By themselves, they don’t have any visual effect.&lt;/p&gt;

&lt;p&gt;Divs can contain any kind or combination of HTML elements. I would say divs are the most used element in HTML.&lt;/p&gt;

&lt;p&gt;Let’s modify our website to include some divs.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/ZEWKmbJ?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Notice how the spacing of our HTML file now. We do this so it’s easy to read and we can easily tell what’s inside each div. It is recommended you do the same. Atom even has a &lt;a href="https://atom.io/packages/atom-beautify"&gt;beautify plugin&lt;/a&gt; to do this for you automatically.&lt;/p&gt;

&lt;p&gt;You may think this kind of useless, the website looks the exact same. So I’m going to &lt;em&gt;cheat a little&lt;/em&gt; and add some background color so you can visually see why this would be important.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/wvGdQMK?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Don’t worry too much about the colors right now – I’ll be teaching you that in the CSS posts.&lt;/p&gt;

&lt;p&gt;The main takeaway is that divs allow us to break our web page into different sections.&lt;/p&gt;

&lt;h3&gt;
  
  
  Paragraphs
&lt;/h3&gt;

&lt;p&gt;Paragraphs can be created by using the p tag. They have some space before and after – like a paragraph in word document.&lt;/p&gt;

&lt;p&gt;Try adding some paragraphs to your website.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/zYqwMqW?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Spans
&lt;/h3&gt;

&lt;p&gt;Spans are inline elements, unlike paragraphs there is no space before and after them.&lt;/p&gt;

&lt;p&gt;It’s used to group elements &lt;em&gt;inline&lt;/em&gt; – kind of like an inline div. There is no visual representation of a span by itself.&lt;/p&gt;

&lt;p&gt;Try it out:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/vYGmQKw?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Like the div, I’m going to cheat a bit and add a background color so you can “see” the span.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/wvGdQzM?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Don’t worry, we’ll be covering how to add colors soon.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bold
&lt;/h3&gt;

&lt;p&gt;The bold tag is a simple b. It makes text bold.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/NWNjEyd?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Italics
&lt;/h3&gt;

&lt;p&gt;The italics tag is a simple i. Makes text italics.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/QWNvJJq?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Line break
&lt;/h3&gt;

&lt;p&gt;The line break tag is a br. This adds a new line. &lt;strong&gt;This is a special tag because it is “self-closing”&lt;/strong&gt;. The opening tag and the closing tag are the same! That’s why we have the slash after the “br”. Note: The self-closing slash is optional. &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/OJNmarb?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Lists
&lt;/h2&gt;

&lt;p&gt;In HTML, there are two kinds of lists, ordered and unordered lists.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ordered List
&lt;/h3&gt;

&lt;p&gt;You can think of ordered lists as numbered lists. Just like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;One&lt;/li&gt;
&lt;li&gt;Two&lt;/li&gt;
&lt;li&gt;Three&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ordered lists use the tag ol. Lists in HTML must contain list items, which we represent with the li tag.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/XWdRyGy?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Unordered List
&lt;/h3&gt;

&lt;p&gt;You can think of unordered lists as bullet points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Just&lt;/li&gt;
&lt;li&gt;Like&lt;/li&gt;
&lt;li&gt;This&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unordered lists use the tag ul. They also contain list items, which use the same tag li.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/oNxWQOv?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi-media
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Images
&lt;/h3&gt;

&lt;p&gt;They say an image is worth a thousand words…&lt;/p&gt;

&lt;p&gt;Here’s how you add them in HTML. Use the img tag but then set the &lt;strong&gt;attribute src&lt;/strong&gt; to the URL. I’m going to use an image I uploaded to &lt;a href="https://imgur.com/"&gt;imgur.com&lt;/a&gt; (a free image uploading website).&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/mdPmQYP?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Notice that the image tag is also self-closing, we add a “/” to the end of the tag.&lt;/p&gt;

&lt;p&gt;The direct URL to the image is surrounded in quotes (“”) and set to the src with an equal sign (=).&lt;/p&gt;

&lt;p&gt;Note that the image location must be direct and end in an image extension (for example: .jpg, .png, .gif).&lt;/p&gt;

&lt;p&gt;To get the direct image link to any image the internet, right click it in your browser and select &lt;em&gt;Copy Image Address&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JgG9_PGz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.risingblock.com/wp-content/uploads/2020/08/image-2-1024x590.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JgG9_PGz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.risingblock.com/wp-content/uploads/2020/08/image-2-1024x590.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Videos
&lt;/h3&gt;

&lt;p&gt;To add a video, use the video tag. You’ll have to set the &lt;strong&gt;src&lt;/strong&gt; to a direct link to the video. Also, remember to add the &lt;strong&gt;controls&lt;/strong&gt; attribute, otherwise, the user will not be able to play the video.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/ExKmOBM?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Not all browsers support the video tag. You’ll want to change the video tag from a self-closing one to a normal tag. Inside this video tag, you’ll write an error message if the browser cannot play the video.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/rising_block/embed/vYGmQoL?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge
&lt;/h2&gt;

&lt;p&gt;Try making a website with all of the HTML elements listed on this page!&lt;/p&gt;

&lt;p&gt;Make it about whatever you want, your favorite hobby, or something work-related.&lt;/p&gt;

&lt;p&gt;Download the &lt;a href="https://www.risingblock.com/html-basics-with-cheatsheet"&gt;cheatsheet for HTML basics here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>html</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
