<?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 Nelson Muchonji on Medium]]></title>
        <description><![CDATA[Stories by Nelson Muchonji on Medium]]></description>
        <link>https://medium.com/@nelsoncodes?source=rss-1e884174de39------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oje_ngxZEkxTlq_yuWpX4A.jpeg</url>
            <title>Stories by Nelson Muchonji on Medium</title>
            <link>https://medium.com/@nelsoncodes?source=rss-1e884174de39------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:58:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nelsoncodes/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[CSS Layout — Why do you need to learn how to display content?]]></title>
            <link>https://nelsoncodes.medium.com/css-layout-why-do-you-need-to-learn-how-to-display-content-12ef00300fa1?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ef00300fa1</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[css-layout]]></category>
            <category><![CDATA[introduction-to-c]]></category>
            <category><![CDATA[css-positioning]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Sat, 20 Feb 2021 13:25:09 GMT</pubDate>
            <atom:updated>2021-02-20T13:25:09.279Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS Layout — Why do you need to learn how to display content?</h3><p>If you are new to web design, you might be wondering how to make your website look like that website you like. HTML provides for the structuring of the content and giving it a semantic meaning. If you have been following me, by now you know how to make your<a href="https://nelsoncodes.medium.com/styling-text-90343fd5f160"> text look presentable</a> with padding, margin, font, etc. This article introduces a series of how to make your website look more appealing with the CSS Layout.</p><h4>Display Property</h4><p><em>Display </em>property plays a critical role in controlling layout. All elements by default have a display value. In most cases, the elements layout is usually <strong><em>block</em></strong> or <strong><em>inline</em></strong>. Block display usually starts on a new line and stretches out to the left and right as far as it can ( if you put padding or margin, it might be pushed a little inside). Block level elements include &lt;footer&gt;,&lt;header&gt;&lt;form&gt;,&lt;div&gt; and &lt;p&gt; among many other elements. On the other hand, inline display doesn’t start on a new line. For example, if you add &lt;a&gt; (link) on a paragraph, it won’t start on a new line, it will be inline to the previous element.</p><h4>Page Layout Techniques</h4><ol><li><strong>Normal flow</strong>: This is the default layout, how the browser lays out the pages. For example;</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVIqc95FjMyhLT9AhC28PA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95-bePNGmoauvNDJsXYKJg.jpeg" /><figcaption>This is normal flow</figcaption></figure><p>In normal flow, the elements on the browser appear in the exact order they appear on the source code. In the example above, the headline, paragraph and then lastly the lists.</p><p>You can alter the default behavior of the normal flow with the following:</p><p>a.) <strong>Floats</strong>: Traditionally, this was used to give the website the magazine feel. An example is having text wrap around the images.</p><p>b.) <strong>The position property</strong>: This allows the placement of boxes ( elements) into each other. The default position is static. The other position values include fixed which makes the content fixed to the top, relative, absolute, and sticky.</p><p>2. <strong>Flexbox</strong>: This displays content as either row or column, it is one dimensional.</p><p>3. <strong>Grid Layout</strong>: This is two dimensional, it lays content both on rows and columns.</p><p>In this article, I will focus on positioning and the future I will handle the other layout properties.</p><p><strong>Positioning</strong></p><p>This allows you to move the elements from where it is usually placed in a normal flow to a new location. In reality, this doesn’t help with page layout.</p><p><strong>Positioning types</strong></p><ol><li><strong>Sticky positioning</strong>: It acts as static positioning until it hits the defined viewport offset, then it acts as fixed positioning.</li><li><strong>Absolute positioning</strong>: The final position depends on the values of top, right, left and bottom. This positioning removes the element from the document normal flow, and no space is created for the element in the page layout.</li><li><strong>Relative positioning</strong>: This moves an element’s position relative to the position in the normal flow. The offset position (top, bottom, right and left) does not affect the position of the other elements.</li><li><strong>Fixed positioning</strong>: This fixes an element relative to the browser viewport, not another element. If you have been on a website and noticed that the menu doesn’t scroll when you scroll the content, it is because of this.</li><li><strong>Static positioning</strong>: This is positioned according to the normal flow of the page. It is not affected by the top, bottom, right or left property values.</li></ol><h4>Tutorial</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPvDpRUanqu8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPvDpRUanqu8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPvDpRUanqu8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/45d252186e47d10047dea13e00a5b58a/href">https://medium.com/media/45d252186e47d10047dea13e00a5b58a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ef00300fa1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Styling text]]></title>
            <link>https://nelsoncodes.medium.com/styling-text-90343fd5f160?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/90343fd5f160</guid>
            <category><![CDATA[links-styling]]></category>
            <category><![CDATA[paragraphs-styling]]></category>
            <category><![CDATA[css-text-styling]]></category>
            <category><![CDATA[headlines-styling]]></category>
            <category><![CDATA[text-styles]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 10:51:27 GMT</pubDate>
            <atom:updated>2021-02-02T10:51:27.002Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine if website texts were simply a markup HTML element with no styling at all, how would that look like? We love when we visit a website and a text is centered, or has a different font-size or color or has background color or image among other styling types. When styling texts, two things are critical that is the Font styles and Text layout styles.</p><h4>1. Font</h4><p>a.) <strong>Color</strong>: This sets the color of the text itself. For example, if you have the paragraph below;</p><p>&lt;p&gt; This is my paragraph for color testing &lt;/p&gt;</p><p>To apply the color property, you will use the below format;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1N0iO3uBixiYSiNxeTJYMw.png" /><figcaption><strong>Format of a CSS Selector</strong></figcaption></figure><p>b.) <strong>Font Families</strong>: To set a different font, you use the font-family property. The browser selects from a list of specified fonts to apply on the text.</p><p>i. <strong>Web Safe Fonts</strong></p><p>These are fonts that are available across different systems. When you purchase an operating system, it comes with a set of fonts accessible on the system, these are the web safe fonts. Below is a list of web safe fonts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*gQyV8LVZzYg3ML7z23t-Wg.png" /><figcaption>Web Safe Fonts</figcaption></figure><p>ii. <strong>Web Fonts</strong></p><p>These are usually fonts provided by a third party that download with the website every time a user visits your website. They include Online Font Service e.g <a href="https://fonts.google.com/">Google Fonts</a> and the fonts you generate using third party sites such as <a href="https://www.fontsquirrel.com/tools/webfont-generator">Font Squirrel</a>.</p><p>c. <strong>Font size</strong>: To set a font-size, you use units such as pixels, ems and rems. The image below explains more about the different units and when to use them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*vCwdPrAM8b1G3_Et3rsCsQ.jpeg" /><figcaption><strong>Image from MDN (Mozilla Developers Network)</strong></figcaption></figure><h4>2. Text Layout Style</h4><p>The common property for laying out your text is text-alignment property. Text-align property control how a given text aligns itself within its content box for example a headline (h1). The text-align property takes the values of center, left, justify and right.</p><p>Other layout property include;</p><ul><li>Letter and word spacing</li><li>Line height</li></ul><p>Let me know if you have any questions about text styling. I have only covered the common text-styling properties.</p><h4>Tutorial</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fw8STKgGZaVQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dw8STKgGZaVQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fw8STKgGZaVQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a20d36143644fa0d3e8653e085e03385/href">https://medium.com/media/a20d36143644fa0d3e8653e085e03385/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90343fd5f160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Media — What you need to know about Video, Audio and Image Tags]]></title>
            <link>https://nelsoncodes.medium.com/html-media-what-you-need-to-know-about-video-audio-and-image-tags-5493e71cf0a2?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/5493e71cf0a2</guid>
            <category><![CDATA[html-media-types]]></category>
            <category><![CDATA[html-for-beginners]]></category>
            <category><![CDATA[image-tag]]></category>
            <category><![CDATA[html-audio-video-tags]]></category>
            <category><![CDATA[beginning-html5-media]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Thu, 21 Jan 2021 10:55:54 GMT</pubDate>
            <atom:updated>2021-01-21T10:55:54.396Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML Media — What you need to know about Video, Audio and Image Tags</h3><p>Can you imagine how websites would look like without images, videos or audio? Images, Videos and Audios not only improve the appeal of the website, they also help in conveying message in an indelible way. Haven’t you heard that a picture is worth a thousand words, what of a video or audio?</p><p>Today, there are millions of websites specifically for various media types such as <em>spotify </em>and <em>sound cloud</em> for audio, <em>Vimeo</em> and <em>YouTube </em>for videos and countless other sites for either images, video or audio.</p><p>In reality, you can’t insert media on a web page, rather you link them and based on the media tag (<em>&lt;img&gt;, &lt;figure&gt;, &lt;picture&gt;, &lt;video&gt;, &lt;audio&gt;</em>) used, a holding space is created for the referenced media. When referencing a media type, you have to ensure that the <strong><em>path is correct</em></strong>, otherwise it won’t display.</p><h4>Images</h4><p>The addition of the ability to embed images on web pages brought a new perspective to how web pages are displayed.</p><ol><li><strong>img element</strong>: When you want to put a simple image on the web page, you use the &lt;img&gt; tag. The img tag doesn’t have a closing tag.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JVwJGkQRxva5loyzf1Vg_A.jpeg" /><figcaption>the image tag structure</figcaption></figure><p>The img tag has the following attributes:</p><p><em>src:</em> specifies the source/ path to the image.</p><p><em>alt</em>: specifies the alternate text for the image. This comes handy when the image fails to load or the user has a screen reader.</p><p>Other attributes not a must to use include the<em> </em><strong><em>height</em></strong> and <strong><em>width</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3QNalvpHSNp2-aPuz6xVog.png" /><figcaption>Uses of alt text in an image</figcaption></figure><p><strong>Free image sites:</strong></p><p>i. <a href="https://unsplash.com/">unsplash.com</a></p><p>ii. <a href="https://www.pexels.com/">pexels.com</a></p><p>iii. You can also make use of Search Engines, under images with authority to reuse images.</p><p>2. <strong>figure element</strong>: This is used when you want to add a caption to an image. The figure element marks up the photo while the figcaption element defines the photo caption.</p><p>An example</p><blockquote>&lt;figure&gt;<br> &lt;img src=”me.jpg” alt=”Selfie”&gt;<br> &lt;figcaption&gt;My picture at school&lt;/figcaption&gt;<br>&lt;/figure&gt;</blockquote><p>3. <strong>picture element</strong>: There are different viewports (screen sizes) and the best thing to do is to have different image sizes for different viewports. The &lt;picture&gt; element allows web developers to have the flexibility in designing responsive pages through the ability of specifying different image resources. The &lt;picture&gt; element nests a &lt;source&gt; element or an &lt;img&gt; element. Each &lt;source&gt; element is accompanied with a media attribute that specifies when it is suitable for an image to be used. Also there is a <strong><em>srcset</em></strong> attribute that points to the image path.</p><p>An example:</p><blockquote>&lt;picture&gt;<br> &lt;source media=”(min-width: 650px)” srcset=”beautiful_city.jpg”&gt;<br> &lt;source media=”(min-width: 465px)” srcset=”beautiful_city_small.jpg”&gt;<br> &lt;img src=”beautiful_city_normal.jpg”&gt;<br>&lt;/picture&gt;</blockquote><p><strong>Why should you use &lt;picture&gt; element?</strong></p><ol><li>Some browsers or devices may not support all image formats or sizes.</li></ol><p>2. For the sake of bandwidth, there is no need for small screen devices to load large images.</p><h4>Video</h4><p>If you want to embed a movie clip or other video streams on a web page, you use the &lt;video&gt; tag. The &lt;video&gt; tag can have one or more source tags with different video formats and source. The common video formats are MP4, WebM, and OGG. Not all browsers support the common format ( MP4), therefore it is recommended to use other formats as well.</p><p>An example:</p><blockquote>&lt;video width=”320&quot; height=”240&quot; controls&gt;<br> &lt;source src=”theatre.mp4&quot; type=”video/mp4&quot;&gt;<br> &lt;source src=”theatre.ogg” type=”video/ogg”&gt;<br>Your browser does not support the video tag.<br>&lt;/video&gt;</blockquote><p><strong>&lt;video&gt; tag attributes</strong>: The &lt;video&gt; tag has several attributes which include:</p><p>a. <strong>controls</strong>: displays video controls such as play, pause, etc.</p><p>b. <strong>loop</strong>: specifies that a video will play again every time it is over.</p><p>c. <strong>autoplay</strong>: the video starts to play once a page is loaded or is ready. Not advisable to use unless it is reasonable.</p><p><strong>Audio</strong></p><p>The &lt;audio&gt; tag is used to embed sound files to a document. It behaves in the same manner as the &lt;video&gt; tag with same attributes.</p><p>Example:</p><blockquote>&lt;audio controls&gt;<br> &lt;source src=”efy.ogg” type=”audio/ogg”&gt;<br> &lt;source src=”efy.mp3&quot; type=”audio/mpeg”&gt;<br>Your browser does not support the audio element.<br>&lt;/audio&gt;</blockquote><p><strong>Free videos and audio sites:</strong></p><p>i. <a href="https://www.pexels.com/videos/">Pexels.com</a></p><p>ii. <a href="https://mixkit.co/free-stock-video/">MixKit</a></p><p>iii.<a href="https://www.videvo.net/"> Videco</a></p><p>iv. <a href="https://www.videezy.com/">Videezy</a></p><h4>Tutorial</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVBJx2j8ZKPM&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVBJx2j8ZKPM&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FVBJx2j8ZKPM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f56402627921c4c4bb7d4ff51519d611/href">https://medium.com/media/f56402627921c4c4bb7d4ff51519d611/href</a></iframe><p>You can also join the whatsapp group for Learning web development link below</p><p><a href="https://chat.whatsapp.com/CQ7WGyVkVzN1a2QEEUIjh9">https://chat.whatsapp.com/CQ7WGyVkVzN1a2QEEUIjh9</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5493e71cf0a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to CSS [The Box Model)]]></title>
            <link>https://nelsoncodes.medium.com/introduction-to-css-the-box-model-6c9ea9c43528?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c9ea9c43528</guid>
            <category><![CDATA[the-box-model]]></category>
            <category><![CDATA[getting-started-with-css]]></category>
            <category><![CDATA[introduction-to-c]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 10:43:27 GMT</pubDate>
            <atom:updated>2021-01-18T11:21:11.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to CSS [The Box Model]</h3><p>I have mentioned several times what <a href="https://nelsoncodes.medium.com/getting-started-with-html-d52c416fcd26">HTML</a> does and definitely what CSS does. HTML plays a big role in how your text is structured and gives a meaning to it so that when the browser displays the content to the user, it is either an image, a video, table or just text.</p><p>However, the web would be so blunt and unappealing if not for <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps">Cascading Style Sheets</a>. Cascading Style Sheets (CSS) help with the presentation of your content. Whether it is the blue background, or large text, or a text wrapped image or any form of styling, all these is possible because of CSS.</p><h4>The Box Model</h4><p>You can’t really get CSS well unless you understand that each HTML element, is in the form of a box. Every box has four areas, content, padding ( edge around content), border ( edge around padding) and margin (space between elements or edge around border).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*12GV9jL2JQDYC0Eu7OqlqQ.png" /><figcaption>Image of the Box Model</figcaption></figure><h4>Margin area</h4><p>Each elements margin has four parts, margin-top, margin-right, margin-bottom and margin-left. It separates an element from its neighboring elements.</p><h4>Border</h4><p>This property extends the padding. It is always written as follows:</p><ol><li>border-style</li></ol><p>2. border-width</p><p>3. border-color</p><p>Like margins, it has four areas, top, right, bottom and left. It is usually written in the shorthand format with the width, style and color. You can check the YouTube Video attached at the end of this article for clarity.</p><h4>Padding</h4><p>Just like margin, it has padding-top, padding-right, padding-bottom, padding-left. It surrounds the content. Check the box model image above and the video at the end of this article.</p><h4>Content</h4><p>This is the actual content which can either be a text, image, video, table or any other thing you’d like to share. It has the content width and height. The content can be displayed as inline or block. We’ll discuss about inline and block more when we’ll be covering layout.</p><p><strong>Inline</strong>: This is when content/ text displays as if in a line for example, &lt;span&gt; &lt;img&gt; instead of a new element starting on a new line. Applying <strong>height</strong> or <strong>width</strong> on these elements won’t work unless you change the layout to block or inline-block.</p><p><strong>Block</strong>: This display covers 100% width and starting a new element will start on a new line. Examples include paragraphs, headlines, articles, etc.</p><h4>Important to know</h4><p>When writing CSS, you do so by using a selector which is accompanied by a property and value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPthnQK0u06P6VRe59XGpw.jpeg" /><figcaption>Example of CSS structure/ skeleton</figcaption></figure><h4>CSS Specificity</h4><p>When applying styling on an element, the browsers depend on specificity. There are certain selectors that have more value than the other and will be considered over the other.</p><p><strong>id selectors</strong>: They rank high and will always take precedence of the other selectors. You can’t use an id name twice.</p><p><strong>class selectors</strong>: They come next to id selectors and will take second precedence. They are commonly used as you have the freedom to use the same name for different elements as it pleases you.</p><p><strong>element selectors</strong>: They have the lowest precedence.</p><p><strong>Types of CSS</strong></p><p><strong>Inline CSS</strong>: This CSS is applied directly to the element. An example below:</p><p>&lt;h1 style=”color:blue; font-size: 16px”&gt;</p><p>Using this CSS makes it hard to edit your files in future as it means each element will have its own rules applied to it. It makes it hard to reuse a CSS rule. It is not recommended to use this type of CSS.</p><p><strong>Embedded/ Internal CSS</strong></p><p>This CSS usually comes in the head of the html document. Its format as follows:</p><p>&lt;style&gt;</p><p>css selectors in here</p><p>&lt;/style&gt;</p><p><strong>External CSS</strong></p><p>The link to the source of the external file is usually in the head of your html file where you want the rules to be applied. Format:</p><p>&lt;link rel=”stylesheet” href=”cssfilelinkofthesourcewith.cssextension”&gt;</p><p><strong><em>You have to be careful with CSS because if you miss a rule, it may affect the display of your entire page. Unlike html, CSS isn’t forgiving.</em></strong></p><p><strong>Tutorial</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmZ5YnJayYBs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmZ5YnJayYBs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmZ5YnJayYBs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c7c4627cf40328fda877ee21139ce7e/href">https://medium.com/media/0c7c4627cf40328fda877ee21139ce7e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c9ea9c43528" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forms, Tables and HTML Semantics]]></title>
            <link>https://nelsoncodes.medium.com/forms-tables-and-html-semantics-4e9f0b89ab69?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e9f0b89ab69</guid>
            <category><![CDATA[html-form]]></category>
            <category><![CDATA[html-fundamental]]></category>
            <category><![CDATA[html-table]]></category>
            <category><![CDATA[html-structure]]></category>
            <category><![CDATA[semantic-html]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 08:56:41 GMT</pubDate>
            <atom:updated>2021-01-14T08:56:41.128Z</atom:updated>
            <content:encoded><![CDATA[<p>People visit different brand websites for different reasons. There are websites that offer news, some sell products online, some are a community for individual contributions and some just provide information. Whichever site it is, digital marketing has moved the focus to two way engagement. Instead of just visiting a site and afterwards doing nothing, there are forms for collecting information for member subscription or purchase or enquiry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fZWwuuJbMNu8u6v_jFnvw.jpeg" /><figcaption>An example of a form</figcaption></figure><h4>Forms</h4><p>HTML Forms play a vital role in helping you gather or collect information from your site visitor. The information entered by the site visitor is usually posted to the backend application such as the PHP script. According to <a href="https://www.tutorialspoint.com/html/html_forms.htm">Tutorialspoint</a>, “The back-end application will perform required processing on the passed data based on defined business logic inside the application.”</p><h4>Form attributes</h4><p><strong>action</strong>: The URL that processes the form submission.</p><p><strong>enctype: </strong>This is the <strong><em>ENC</em></strong>ode type attribute that specifies how the form-data should be encoded when submitting it to the server.</p><p><strong>method</strong>: This attribute specifies how to send form-data. This can be post, get or dialog.</p><h4>Form controls</h4><ol><li>Text input controls: textarea, input type (passwords, text etc)</li><li>Submit and reset buttons</li><li>Radio Box Controls</li><li>File Select Controls</li><li>Checkboxes Controls</li><li>Clickable Buttons</li><li>Select Box Controls</li><li>Hidden Controls</li></ol><h4>Tables</h4><p>HTML Tables allow data to be presented in rows and columns. Tables make it easier for Information to be interpreted by making visual associations between row and column headers.</p><p><strong><em>Warning:</em></strong> Do not use HTML Tables for your website layout. Tables are meant for presenting tabular data.</p><p>Tables are created using <strong>&lt;table&gt; </strong>tag. It is followed by <strong>&lt;tr&gt;</strong> for rows, <strong>&lt;th&gt;</strong> for headings and <strong>&lt;td&gt;</strong> for actual data cell. The caption tag serves as the title for the table and is usually at the top.</p><p><strong>HTML Semantics</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ZUrp6zV8A4uJkvE2D_V17w.jpeg" /><figcaption>HTML Structure</figcaption></figure><p>HTML Semantics help in describing their meaning in a human-readable and machine-readable manner. Using semantics makes the browser to understand the meaning of the content rather than just displaying it. It reinforces the structural of the content within the tags. The above image shows different HTML Semantics for structuring your content and explains it.</p><h4>Tutorial</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAzteHlGyc7c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAzteHlGyc7c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAzteHlGyc7c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2ecf326ba66319b75b06b610b18f850/href">https://medium.com/media/e2ecf326ba66319b75b06b610b18f850/href</a></iframe><p><strong>Practice</strong></p><ol><li>Design a Table to a capture the following information;</li></ol><p>Title: Highly populated cities in the world</p><p>City, Country, Size, Population, Landmark (image)</p><p>2. Forms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xO0Aw4Jw2BhPiq6rqwoag.jpeg" /><figcaption>Follow the instructions above</figcaption></figure><blockquote>Let me know if you have any questions in the comment section below.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e9f0b89ab69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Fundamentals]]></title>
            <link>https://nelsoncodes.medium.com/html-fundamentals-e0b3f742e540?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b3f742e540</guid>
            <category><![CDATA[html-fundamental]]></category>
            <category><![CDATA[introduction-to-html]]></category>
            <category><![CDATA[learning-html-2021]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 18:06:45 GMT</pubDate>
            <atom:updated>2021-01-11T18:06:45.536Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML is meant for semantics ( give meaning to your text). There are common tags used often when designing a website. This article discusses about these tags.</p><h4><strong>&lt;!DOCTYPE html&gt;</strong></h4><p>This is the document type declaration used to inform the browser about the version of the HTML used in the document. You should always start your html document with this.</p><p>P.S: DOCTYPE is not a HTML element, it is simply how the document <strong>should</strong> be interpreted by the browser.</p><h4>&lt;html&gt;</h4><p>This is the root or the top level element. All the other elements are the descendants of this element.</p><h4>&lt;head&gt;</h4><p>This comes after the opening html tag. This is the container for meta data ( provides additional information about HTML document.) The &lt;meta&gt; elements contain name and content attributes.</p><p>The title also goes in here. Anything within the head won’t appear in the body of the web page.</p><h4>&lt;body&gt;</h4><p>This defines the document’s body. This is where all the contents that one reads on the website goes. Lists, images, headlines, paragraphs and all the tags that display content go in here.</p><h4>Displaying text</h4><p>Tags that help in displaying text include;</p><p><strong>Paragraphs</strong>. &lt;p&gt; is for paragraphs.</p><p><strong>Headlines</strong>. There are six headlines and each has a number after h to show the level of the headline. h1 is the most important headline and should only be used once on a page.</p><p><strong>Lists</strong>. There are two types of lists, ordered lists and unordered lists. For ordered lists, you always start with &lt;ol&gt; tag and for unordered list you start with &lt;ul&gt;. After the opening tag, is always followed with &lt;li&gt; for list item. There are also description lists, which are most used for writing long definitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*Fx4i-Noe7DU0hEWi_lxbEw.jpeg" /></figure><p><strong>Hyperlinks</strong>. Hyperlinks allow us to link documents to other documents or resources, link to specific parts of documents, or make apps available at a web address.</p><h3>Media</h3><p><strong>Images</strong>. &lt;img&gt; tag is mostly used when an image is being attached to a site. However, there are times when &lt;figure&gt; or &lt;picture&gt; element is used.</p><p><strong>Video</strong>. You can include video to your page using the &lt;video&gt; element. The video element has several attributes that you need to know such as <em>controls</em> to be able to markup well. You can also embed videos from other sites such as YouTube. YouTube will provide you with the needed embed link.</p><p>If you haven’t yet installed the editor you can check previous videos below:</p><ol><li><a href="https://nelsoncodes.medium.com/getting-started-with-html-d52c416fcd26">Getting started with HTML</a></li><li><a href="https://nelsoncodes.medium.com/getting-started-with-web-design-1e63c00a12b">Getting started with web design</a></li><li>This week’s tutorial below</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3jHuS-T9O8g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3jHuS-T9O8g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3jHuS-T9O8g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ee521a3e8ccb50360366cc5d96ed3a0/href">https://medium.com/media/7ee521a3e8ccb50360366cc5d96ed3a0/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b3f742e540" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with HTML]]></title>
            <link>https://nelsoncodes.medium.com/getting-started-with-html-d52c416fcd26?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52c416fcd26</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[html-best-practices]]></category>
            <category><![CDATA[introduction-to-html]]></category>
            <category><![CDATA[getting-started-with-html]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Thu, 07 Jan 2021 08:35:33 GMT</pubDate>
            <atom:updated>2021-01-07T08:35:33.940Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML is the language of the web. Now, HTML is not a programming language, rather it is a <em>markup language</em> that tells web browsers how to structure the web pages you visit. HTML is acronym for Hypertext Markup Language. HTML is made up of a series of <a href="https://developer.mozilla.org/en-US/docs/Glossary/Element">elements</a>, which you use to enclose, wrap, or <em>mark up</em> different parts of content to make it appear or act in a certain way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*H_axj5zWsABmx1IeJozL-w.png" /></figure><h3><strong>Best HTML Practices</strong></h3><p>When writing a HTML code, there are no set rules, as the browser is more lenient with you. However, it is critical to know the various best practices that will help you if you are working in a team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*1DMyssCcUnCtDapRht6wUA.png" /></figure><p><strong>Use proper document structure</strong>. When you write a HTML document and save it with an extension of .html, whether you have used the right markups or not, there is a chance it will still display. The browser will try to make sense of your code. It is imperative that you use the right document structure. Don’t worry about what you see in the picture for illustration, you’ll understand what each means as time goes by.</p><ol><li><strong>Declare the correct doctype</strong>. Sometimes HTML is referred as the declarative language. When writing a HTML document, the first thing to write is the doctype which is the Document Type. The DOCTYPE tells the browser the standards you are using to render your markup correctly.</li><li><strong>Close tags</strong>. Before implementing your code, you’ll have to validate it using the <a href="https://validator.w3.org/">HTML Validator</a>. If you haven’t used the tags correctly, you’ll have validation errors.</li><li><strong>Validate frequently</strong>. When your code isn’t complex, it is easier to debug and correct any syntax errors.</li><li><strong>Semantics</strong>. Semantics mean meaningful tags. Avoid excessive usage of generic tags and use more descriptive tags such as &lt;section&gt; instead of &lt;div&gt;.</li><li><strong>Lowercase markup</strong>. When HTML was invented, a lot of markup was written in uppercase. However over time, lowercase has been preferred. However, HTML is not case sensitive and it won’t matter to the browser.</li><li><strong>External files</strong>. There are files that might be needed for the website such as external stylesheets, place these files in the head of your html document.</li><li><strong>ALT attribute</strong>. When displaying an image, always have the alt attribute in there. This is for screen readers and SEO. Will learn more about this as time goes by.</li><li><strong>Avoid inline styles</strong>. We’ll learn more about different types of styling your html code and why you should avoid using inline styles.</li></ol><h4><strong>HTML Element</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*PHrGbCGm-Zk7_1bDBI_9CA.png" /><figcaption>The anatomy of HTML element</figcaption></figure><p>An <strong>HTML element</strong> is defined by a starting tag. If the <strong>element</strong> contains other content, it ends with a closing tag. Take your time to familiarize with the picture above of the anatomy of HTML element. It is important noting that there are elements that don’t need a closing tag and are called Empty Elements such as the image element &lt;img&gt;.</p><h4><strong>Attributes</strong></h4><p>Attributes contain extra information about the element that won’t appear in the content. An example is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ltvb0uDHVPq_WlGVDTPWlA.png" /></figure><h4><strong>Practice</strong></h4><p>I hope by now you have installed the editor will be writing the code on. If you haven’t check my earlier article on <a href="https://nelsoncodes.medium.com/getting-started-with-web-design-1e63c00a12b">Getting started with web development</a> or <a href="https://youtu.be/fNiLTWnLSuQ">YouTube Video</a> on the same.</p><ol><li>Open your installed editor, type in anything, it could be your <em>name</em> or just the word <em>hello world</em>.</li><li>Save the file with any name with an extension of .html.</li><li>Go to the folder where you have saved the file, click on it to open on the browser.</li></ol><blockquote>You can see that it displays on the browser despite not using any html elements. Even though whatever you wrote displays, the browser can’t make sense of what you just did so it tries to make meaning of your text.</blockquote><p>4. Right click on your browser and click on inspect element. What opens up is the Developers Tool. All browsers have an inbuilt developers tool, that will play a significant role as you continue learning web development. Alternatively, you can use the shortcut to open the developers tool. If you are using windows, press CTRL + Shift + I, that opens the developers tool.</p><p>When the developer tool opens, you’ll notice that your text has been marked up by the browser. Unfortunately, the browser won’t know whether your text was meant to be a paragraph, a headline, a list or a link. This is why it is important to use HTML Elements to give meaning to your code.</p><h4><strong>Exercise</strong></h4><p>Visit different websites and inspect their elements, what do you see in the developers tool? Even though much of what you see now won’t make sense, with time it will.</p><p>If you have any questions, post it here in the comments or under the YouTube comments section or in the <a href="https://chat.whatsapp.com/CQ7WGyVkVzN1a2QEEUIjh9">Whatsapp group</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52c416fcd26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with web design]]></title>
            <link>https://nelsoncodes.medium.com/getting-started-with-web-design-1e63c00a12b?source=rss-1e884174de39------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e63c00a12b</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Nelson Muchonji]]></dc:creator>
            <pubDate>Mon, 04 Jan 2021 09:21:06 GMT</pubDate>
            <atom:updated>2021-01-04T09:21:06.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9dDfyGa44iUG3Gy-M9cwA.jpeg" /></figure><p>A few years ago, people needed to have a physical office where customers would come by to shop or order an item they were interested in. Things have changed and today, at the comfort of your home, you can purchase an item you are interested in. Websites have made this possible, as there are millions of them today, competing for the top spot on the search engines such as Bing, Google, e.t.c.</p><p>Learning the web fundamentals, is not only critical for web designers and developers, but as well to any individual who wishes to run an eCommerce business in future.</p><p>In this article, I describe a little about the history of web development, the tools you need, and the building process.</p><p><strong>Web Design v.s web development</strong></p><p>You might have heard about web designers and web developers, and wondered, what’s the difference. Even though the two are totally different, the term <strong><em>web designer</em></strong> over time has been used interchangeably to mean both a developer and designer. However, when we talk of a web design, we refer to the aesthetic portion of the website and it’s usability. It is more of what the website will look like.</p><p>On the other hand, <strong><em>web development</em></strong> refers to the actual functionality of a website. This involves using web languages such as HTML, CSS and JavaScript for the frontend, and Python, PHP, e.t.c for the backend.</p><p><strong>History of the web</strong></p><p>In 1989, British scientist Tim Berners-Lee invented the WorldWideWeb (www). The web was then developed to meet the demands of information sharing between institutes and universities around the globe.</p><p>Then, the aim was to share information using hyperlinks thus the name hypertext markup language, that is interconnected links of text. HTML was then made the easiest language that anyone could possibly learn and that hasn’t changed. Even though we use the word code and coding in HTML, it isn’t a programming language, it is a markup language for the web.</p><p>The web was then consisting of texts and links without any layout or interactivity. Over time, Cascading Stylesheet (CSS) was invented for styling and displaying the content while JavaScript for interactivity.</p><p>Tools</p><p>A <strong><em>computer</em></strong>. You can still code using your phone, however, it is recommended you get a desktop or laptop.</p><p><strong><em>Text editor</em></strong>. If you want to tabulate data, what do you do? Of course you won’t open a publisher for that, you need an excel for that. There are millions of text editors that you could possibly use, both offline and online. I’d suggest you download one of them and have it installed on your computer. Recommended text editors you can download include; <a href="https://www.sublimetext.com/">Sublime Text</a> ( I recommend you use this), <a href="https://code.visualstudio.com/">Visual Studio Code</a> ( Personally I use this for my projects) and <a href="https://notepad-plus-plus.org/">Notepad ++</a>. For online editors, <a href="https://codepen.io/">Codepen</a>, <a href="https://jsbin.com/?html,output">JS Bin</a>, and <a href="https://glitch.com/">Glitch</a>( I love this, but you don’t have to). If you will be working online, you will have to create an account with the editor of your choice. There are millions of them out there, if you feel like trying something different, the internet is at your disposal.</p><p><strong><em>Web browsers</em></strong>. You will need the browser to display your results/ outcome/ output. Personally, I love using Chrome. It really doesn’t matter what browser you are using as long as it isn’t Internet Explorer :).</p><p><strong>Web Development Process</strong></p><p>We will learn more about this in due time. For now, you need to know about the basics of web development. Web development involves the following processes:</p><ol><li>Research/ Information Gathering</li><li>Planning</li><li>Design</li><li>Content Writing</li><li>Testing, Review and Launch</li><li>Maintenance</li></ol><p>Unfortunately, these steps are skipped and that is why many have websites that are not converting. If a client isn’t willing to pay for all the 6 steps, no doubt the final website will be a mediocre as the budget. This is why, everyone needs to learn about web fundamentals.</p><p><strong>Resources</strong></p><ol><li><a href="https://developer.mozilla.org/en-US/docs/Learn">MDN</a> ( Mozilla Developer Network). This is your go to place, not only for learning web development, but other languages as well.</li><li><a href="https://www.w3schools.com/">WWW3Schools</a>.</li><li>Docs. When a programming language is developed, there is a detailed document with various terms, elements, functionalities, e.t.c.</li></ol><p>If you have any questions, let me know in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e63c00a12b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>