<?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 Devon Developer on Medium]]></title>
        <description><![CDATA[Stories by Devon Developer on Medium]]></description>
        <link>https://medium.com/@devondeveloper?source=rss-b1574013fdc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wssnc5ydyT-aqPOm7tqAFQ.png</url>
            <title>Stories by Devon Developer on Medium</title>
            <link>https://medium.com/@devondeveloper?source=rss-b1574013fdc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:33:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devondeveloper/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[Javascript Fundamentals Part 3: Loops]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-3-loops-4aba3e07ce93?source=rss-b1574013fdc7------2"><img src="https://cdn-images-1.medium.com/max/1920/1*0wNoZYmkmQK6ujHDwtPyXw.png" width="1920"></a></p><p class="medium-feed-snippet">Learn everything about loops</p><p class="medium-feed-link"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-3-loops-4aba3e07ce93?source=rss-b1574013fdc7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@devondeveloper/javascript-fundamentals-part-3-loops-4aba3e07ce93?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aba3e07ce93</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Tue, 03 May 2022 18:26:08 GMT</pubDate>
            <atom:updated>2022-05-03T20:41:38.716Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Javascript Fundamentals part 3: Conditionals]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-3-conditionals-708d13d3d447?source=rss-b1574013fdc7------2"><img src="https://cdn-images-1.medium.com/max/600/1*FxS-Y-VoF6GhlI01KUTp5Q.png" width="600"></a></p><p class="medium-feed-snippet">Let&#x2019;s learn all about conditionals</p><p class="medium-feed-link"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-3-conditionals-708d13d3d447?source=rss-b1574013fdc7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@devondeveloper/javascript-fundamentals-part-3-conditionals-708d13d3d447?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/708d13d3d447</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Mon, 02 May 2022 19:03:31 GMT</pubDate>
            <atom:updated>2022-05-03T18:34:21.936Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Javascript Fundamentals Part 2: Variables]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-2-variables-90c9961291e9?source=rss-b1574013fdc7------2"><img src="https://cdn-images-1.medium.com/max/1200/1*Dk_c6Kwi4JaIxYDlvE3NfQ.png" width="1200"></a></p><p class="medium-feed-snippet">Learn everything about variables</p><p class="medium-feed-link"><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-2-variables-90c9961291e9?source=rss-b1574013fdc7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@devondeveloper/javascript-fundamentals-part-2-variables-90c9961291e9?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/90c9961291e9</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 16:36:13 GMT</pubDate>
            <atom:updated>2022-05-03T17:44:03.039Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[CSS From Zero to Advanced Last Part: Design a website]]></title>
            <link>https://medium.com/@devondeveloper/css-from-zero-to-advanced-last-part-design-a-website-63c3348b9c5f?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/63c3348b9c5f</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Tue, 19 Apr 2022 19:53:59 GMT</pubDate>
            <atom:updated>2022-05-03T17:50:52.290Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let’s Learn how to layout a website</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*h5-Ialt1fgmcCzi8QwMXKg.png" /></figure><ol><li><a href="#c0ba">Introduction</a></li></ol><p><a href="#0a0a">2. Reminder block and inline tags</a></p><p><a href="#aca6">3. Width and height</a></p><p><a href="#9a59">4. Margin and Padding</a></p><p><a href="#6998">5. Overflow</a></p><p><a href="#6d8f">6. Word-wrap</a></p><p><a href="#c075">7. FlexBox</a></p><p><a href="#096b">8. Float property</a></p><p><a href="#d5a1">9. Display</a></p><p><a href="#8e7b">10. Vertical-align</a></p><p><a href="#efb2">11. Position: absolute and others</a></p><h3>Introduction</h3><p>What is shown ahead in a general and simple way is the standard of any website. In practice of course this may change a lot, depending of the client needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*-jJ1r5wTTI1Wu-jSAtNrsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*Jt_gaiXsTTPwSVu0VSJNaQ.png" /></figure><h3>Reminder block and inline tags</h3><ul><li>Block tags → always have a jump lines before and after</li><li>Inline tags → always inside a block tag.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dpzx9pHxPX9Hg1rFtmljg.png" /></figure><h3>Width and height</h3><p>Only applicable on block tags; The value is in px or percentage (adaptability with the screen). You can define also min and max for these properties.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*TZiNOkWS5ErRJLaej5TaXQ.png" /></figure><h3>Margin and Padding</h3><p>There are two types of margin:</p><ul><li>Inside → padding with value in px</li><li>Outside → margin with value in px</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*aOfB1iy1-AVmTuk0WkriCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*ywFLwzacmlsq0HOh-Y7FjA.png" /></figure><p>Default margins are different for all block tags, for example there is no margin for &lt;div&gt; tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*5W9OyOGBdj8aPxcbvyi1Kw.png" /><figcaption>Default margin for &lt;di&gt; tag.</figcaption></figure><p>Now let’s give it some space to breed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*tvcTjw3HkQr52jfMDuFRJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*KmZBwtSaLaNwBMc3Dv8A2Q.png" /></figure><p>And now margin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*P9UZsEozkEmlj7uUrljWOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*NNTyas2CFmJt-lmVufRENA.png" /></figure><p>Margin and padding are applying by default at all sides of the block. If you want to specify for particular sides then you have to use:</p><ul><li>margin-top</li><li>margin-bottom</li><li>margin-left</li><li>margin-right</li><li>padding-top</li><li>padding-bottom</li><li>padding-left</li><li>padding-right</li></ul><p>In the first example all the sides are specified, there is a second example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*EUZr3qnZ5A6vXu9XZC0yAA.png" /></figure><p>50px top and bottom and 20px are left and right.</p><p>For center alignment of blocks there are two rules:</p><ul><li>Define a width</li><li>Margin value auto</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*pwBMwRY6j2k7dg7sMZvgYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYTo6ib65GE74m-dDBV3ZQ.png" /></figure><h3>Overflow</h3><p>When you are specifying the size of the blocks sometimes your text inside is going to be bigger than your block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*RIOzgFcznepcntPWqJ8kBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*C0R3IRXEOQ7u2Skq4e11CA.png" /></figure><p>We have four values to face this:</p><ul><li>Hidden: the text is cut and no visible</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*GUqbaMUsABonE1WLUfJiIQ.png" /></figure><ul><li>Auto: (recommended) browser adjust automatically the needs for your block</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*3kyq84Jx923usxNvo7igRw.png" /></figure><ul><li>Scroll : add scrollbar. This one looks pretty much the same as Auto</li><li>Visible (default)</li></ul><h3>Word-wrap</h3><p>If you have to place a very long word in a block, which does not fit in the width of your block word-wrap makes it possible to force the break of very long words.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*52ZFBxhv9MYkE91auwDcLA.png" /><figcaption>The problem</figcaption></figure><p>First solution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*YT8zkA-n0pH1PSnCDfqajg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*PrihIKK1I4ZRQicTmnV_fw.png" /></figure><p>Second solution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*lABzoDgwHpQ_cFWLwbcjBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*zIp8qJywWBsJB22J4Tjc-Q.png" /></figure><h3>Flexbox Concept</h3><p>The principle of layout with Flexbox is simple: you define a container, and inside of it you place several elements. Imagine a box in which you put in several objects: this is the principle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*3deu4oxJJLGr10TIbAA1Uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlDVqDcUxL48V156DVBzRQ.png" /></figure><h3>FlexBox CSS Properties</h3><h4>Display</h4><p>By default your containers, block tags are always vertical because they break the flow of the page. To initialize flexbox you need to apply the following property on the container that is containing the element or elements that you want to align horizontally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*5ceRGWCWQ5_K02SiGKOQvA.png" /></figure><h4>Flex-direction</h4><p>We can control the alignment of the elements within a container within the flex property. Considering the principal axis, in other words the x axis and the secondary axis, the y axis.</p><ul><li>Row</li><li>Column</li><li>Row-reverse</li><li>Column-reverse</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWsgPHg3FyoC7BAbLcGD9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*XZL98OdYhGEUdj3wa16ESA.png" /><figcaption>Instead of column-reverse you can write any of the three other options.</figcaption></figure><h4>Flex-wrap</h4><p>Sometimes you have many elements inside the container, in order to tell them the flow that will follow themselves automatically flex-wrap comes in handy.</p><ul><li>nowrap</li><li>wrap</li><li>wrap-reverse</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*alLa5f_xaZvlOch9Y8Vshg.png" /></figure><h4>Justify-content: For x axis</h4><p>It aligns the elements along the horizontal direction the X-axis:</p><ul><li>Flex-start</li><li>Flex-end</li><li>Center</li><li>Space-between</li><li>space-around</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*Kfqd05l4LRI4cYJPt246sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*9s6T4PuQfBbTsBHppnXuRQ.png" /><figcaption>You may write any other of the 4 options left instead of space-between.</figcaption></figure><h4>Align-Items: For y axis</h4><p>It aligns the elements along the vertical direction. The Y axis also known in some books as the secondary axis.</p><ul><li>Flex-start</li><li>Flex-end</li><li>Center</li><li>Baseline</li><li>Stretch</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*_FdCfr_DJt8a8_e7Am3WZw.jpeg" /></figure><p>Here is an example of everything that we’ve seen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*SKh0DU_3aYyx7Lf0zulN-Q.png" /></figure><p>.box is our container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IqAwoQgq2RLSa1QTnB8R_Q.png" /></figure><p>Now let’s add more advanced values:</p><h4>Align-self</h4><p>Sometimes you need an element to stick out of the group. Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*iBJRfCgybUvUbWJX8hifDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*rEOpnxtgYnvTrzJAVmyuvQ.png" /></figure><p>Remember box is our container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P769RybfOo1QIJu0mcPKfA.png" /><figcaption>Here we take element one and three to place them out of the group.</figcaption></figure><p>We can take one, two or as many elements as we want and place them specifically where we want. As you can see we need to select the container and the specific element to move out of the rest, write align-self and lastly write the instruction that we want.</p><h4>Align-content</h4><p>Remember flex wrap? Sometimes when you have so many elements, you want to control more than the flow that is moving those elements. You want to control the way they arrange on the screen.</p><ul><li>flex-start</li><li>flex-end</li><li>center</li><li>stretch</li><li>space-between</li><li>space-around</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*VmfjtWiRcM1u1MlaPhka0g.gif" /></figure><p>There are also another values for internet explorer 10, but these are very rarely used since internet explorer… Well…</p><h4>Order</h4><p>It’s simply choosing the order organization. By default elements appear the same as they are written on the code.</p><p>Sintaxis:</p><blockquote><em>item { order: number | initial | inherit; }</em></blockquote><p>By default all elements have the value 0. That means again that they will appear as written in the code.</p><p>Example:</p><pre>.flex-item:nth-of-type(3){ order:-1; background-color:yellow;}</pre><p>The third element .flex-item has a -1 value, that means that it will appear ahead of the other elements, as long as the other elements keep their 0 value.</p><p>Second example:</p><pre>.flex-item:nth-of-type(1){ order: 1; background-color:tomato;}</pre><p>The first element .flex-item has a 1 value, that means that (yes what you are thinking is correct) it will appear behind of the other elements.</p><p>So let’s take a look of how it will look:</p><pre>.flex-item:nth-of-type(3){ order:-1; background-color:yellow;}<br>.flex-item:nth-of-type(1){ order:1; background-color:tomato;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*KG5CjdZvpoqnRPLCMOgkbg.png" /><figcaption>Element 2 and 4 have a 0 value.</figcaption></figure><h4>Exercise</h4><p>I know what you are thinking, you’re thinking that, it seems so confusing and troublesome. Believe me, with effort and practice you will find flex-box quite useful. I recommend you to use the following game:</p><p><a href="https://flexboxfroggy.com/">Flexbox Froggy</a></p><p>It’s kinda fun and you will practice without getting too much frustration.</p><h3>Float property</h3><p>Changes the normal flow of an element. It defines how an element should be floating and the place of an element on its container’s right or left side.</p><pre>float: none|inherit|left|right|initial;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ypWaemsUycVccwJ-9eJwhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*KLMwufxtZOkhkGhappYPzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*LJwkUcfNQWZBAkLtCcUMvA.png" /></figure><h3>Display</h3><p>It defines how the components(div, hyperlink, heading, there are many) are going to be placed on the web site. Just like the name suggests the property is used to dictate the display of the different parts of the site.</p><pre>display: value;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*vgdcH4Nfc9bHd7Ht88dK2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*hg5Jfx8gNv32hMOrXQBdNQ.png" /><figcaption>Block is the default div value and places the element one after another vertically.</figcaption></figure><h4><strong>Inline</strong></h4><p>The default property of anchor tags. It is used to place the div inline in a horizontal manner. The inline display property ignores the height and the width that is set by the user.</p><h4><strong>Inline-block</strong></h4><p>Using both properties mentioned above, block and inline, aligns the div inline but the difference is it can edit the height and the width of block. Basically, this will align the div both in block and inline fashion.</p><h4><strong>None</strong></h4><p>It hides the div or the container which uses this property. Using it on one of the div it will make job cleaner.</p><h3>Vertical-align</h3><p>How you would solve the baseline problem here?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*zL0KhMsJuIsOxBAv56YtfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0j6yZJDMzusz4dTuVzc30w.png" /></figure><p>First of all, we can use this property because we changed display property into inline-block.</p><ul><li>Baseline (default) : align the base element with the base of the parent element</li><li>Top : align on the top</li><li>Middle : centered vertical alignment</li><li>Bottom : align on the bottom</li><li>A value in px or percentage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*LArgb2Ruh4NBFdfAG8FL9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LZ-WGUcprYW_rle0V28Mg.png" /></figure><h3>Position: absolute and others</h3><h4>Static</h4><p>Default value that any element has. If you have multiple &lt;div&gt; let’s say one after the other, they will appear on the page directly below one another. When static is used things like top, bottom, left or right have no effect at all. To fix that you have to give position a value:</p><h4><strong>Fixed</strong></h4><p>Identical to the absolute positioning, which will be explained below, but this time, the element remains visible, even if one goes further down the page. It’s a bit like the background-attachment: fixed. The element will be taken out of the normal flow and be placed exactly where you want it to be, even if you scroll down or up it will be there. It must have a top or bottom position set, otherwise it will simply not exist on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*7tMERHEmWlkbEB2i_DLycA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*onKL9veCyMQQ2F8i0GfFbQ.gif" /></figure><h4>Sticky</h4><p>It’s pretty much the same as fixed. But there is a nice aesthetic characteristic. When you scroll up or down fixed simply doesn’t move. Sticky on the other hand at the beginning behaves like relative at the moment the sticky element touches the edge of the viewport this element will become fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*B3f8RtjpdBa4-1IvBKcRQQ.gif" /></figure><h4><strong>Relative</strong></h4><p>It works the same way as static, but it allows you change an element&#39;s position. You are locking the element to be positioned relative to other elements on the page.</p><p>If we have two &lt;div&gt; both with static values, but the second has a top: 50 px value this value won’t work remember? Well if you just add position relative now will work.</p><h4>Parent child</h4><p>Let’s write the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*VIRC0QUfZ0FGLG1VbXnyWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*N4_QXXY5gbED-aBdyqPc0w.png" /></figure><p>Previously maybe you thought “locking? locking to what?” Well here the child is locking its position to its parent. This will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*u-zVVkXrdn7V3zyUEaAsEw.png" /></figure><p>A flat element… It’s just the other element is right behind it! Top is 0 and left is too.</p><h4>Z-index</h4><p>It controls the vertical stacking order of elements that overlap. Affects elements that have a position value other than static which is the default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*AO26izHb4RumHrS7DIRA9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*c3sIvAn8KlUtHLihmm64pw.png" /></figure><p>If you want to fix the pink rectangle from the previous example you have to modify top, left or both and in conjunction with z-index it will start to look like that hard pink and green squares.</p><h4>Absolute</h4><p>Allow us to place an element anywhere on the page (top left, bottom right, center, etc.)</p><p>Once absolute has been stablished, now you have to decide where to put it using one or more of the values below:</p><ul><li>Right : position relative to the right of the page</li><li>Left : position relative to the left of the page</li><li>Top : position in relation to the top of the page</li><li>Bottom : position relative to the bottom of the page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*qdk2NWzBvDjuIZZntQCU8w.png" /><figcaption>Values are in px or %.</figcaption></figure><p>Be careful with absolute since pretty much places the element on another layer different from the natural web site flow. For example if you don’t pay attention enough it may be on top of other elements, yes covering them. For example: you can have two &lt;div&gt; one inside of another, the parent set to relative and the child set to absolute. The child will appear on top of the parent element but only can move within its parent space, considering of course that the parent has its position set, like in this case, because if it doesn’t have it, then the child with look one step back searching for an element that has its position set. In this case because there are no more elements then the child will use the &lt;body&gt; itself as a parent. Let’s say that there are lots of elements, then the child will go back until it finds an element that has its position set.</p><blockquote>The absolute positioning is not necessarily always compared to the top left corner of the window! If you set an absolute block A that is in another block B, itself set to absolute (or fixed or relative), then your block A will have his origin set to the upper left corner of block B.</blockquote><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping me to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/javascript-fundamentals-part-1-intro-460e3f880425">Javascript Fundamentals Part 1: Intro</a></p><p><a href="#5fac">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63c3348b9c5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS From Zero to Advanced Part 1: Getting Started]]></title>
            <link>https://medium.com/@devondeveloper/css-from-zero-to-advanced-part-1-getting-started-7eb646975c3b?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb646975c3b</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 19:46:42 GMT</pubDate>
            <atom:updated>2022-05-03T17:42:40.194Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let’s learn CSS, let’s learn the basics.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uwa_Q67Js5flWHgAXIoXtA.jpeg" /></figure><ol><li><a href="#ddff">Introduction</a></li></ol><p><a href="#913e">2. Where are we writing CSS?</a></p><p><a href="#9e0b">3. CSS tag selection</a></p><p><a href="#cd5b">4. CSS application on attribute class and id</a></p><p><a href="#74ef">5. Using HTML tags</a></p><p><a href="#1b06">6. Advanced Selectors</a></p><p><a href="#e0ac">7. CSS selectors priority</a></p><p><a href="#56d4">8. CSS Text formats</a></p><p><a href="#8385">9. Color</a></p><p><a href="#c41e">10. CSS border</a></p><p><a href="#7ee5">11. CSS outline</a></p><p><a href="#6216">12. CSS shadow</a></p><p><a href="#77b1">13. CSS dynamic appearances</a></p><h3>CSS CASCADING STYLE SHEETS</h3><p>Its role is to manage the layout of your site.</p><p>What is CSS for?</p><p>→ allows you to select the font used on your site</p><p>→ defines the size of the text, the borders, the background …</p><p>→ makes the layout of your site</p><p>→ You will be able to say : I want my menu to be on the left and occupy such a width, that the header of my site is wedged at the top and that it is always visible, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9iLLKr4j0ou9MvRAt2O0g.png" /><figcaption>Left, a site without CSS. Right, with CSS</figcaption></figure><h4>CSS and browsers compatibility</h4><p>There are 4 important versions of CSS : CSS 1 → CSS 2.0 → CSS 2.1 → CSS 3</p><p>Browsers do not know all the CSS properties that exist. The older the browser, the less CSS functionality it knows.</p><p>I strongly recommend that you put the <a href="http://www.caniuse.com/">www.caniuse.com</a> website in your favorites, which offers HTML and CSS functionality compatibility tables on different browsers (and on their different versions).</p><h3>Where are we writing CSS?</h3><p>You can write code in CSS language in three different places:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*ERAHyrCbGESlsliM8SUNcg.png" /><figcaption>In a css file style.css (the <strong>most recommended</strong> method)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*LU2wrHblRG_jf3iG6ncjOw.png" /><figcaption>In the &lt;head&gt; header of the HTML file using &lt;style&gt; tag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*iSGo_WJaVm2XjqASySGB8g.png" /><figcaption>Directly in the tags of the HTML file via an attribute style (the least recommended method)</figcaption></figure><p>Here just the tag where you put the attribute style gonna be modified.</p><h3>CSS tag selection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*b-MiUACuALwDtnUKYSdXAw.png" /></figure><p>li → name of tags to modify</p><p>color → css property to modify</p><p>blue → the value</p><p>So here this code means : “i want all the li tags to be in blue”.</p><p>Multi tags selection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*Lz6VmlsBMpm6CqNDZtCM2A.png" /></figure><h3>CSS application on attribute class and id</h3><p>How to select precisely tags to modify? Using class and Id attributes.</p><h4><strong>Class attribute:</strong></h4><p>→ it can be on every tags with same name of value</p><p>→ try to find a relevant name to your class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*bsMFpYe3IMiGbcDval2uuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*IgxDGLZkWlH1wATKD0JegQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*IsjU1CNO8YdLsiJ02gTIDQ.png" /></figure><h4><strong>Id attribute:</strong></h4><p>It can be on every tag but the <strong>value has to be unique </strong>so<strong> </strong>try to find a relevant name for your id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*NWc_lCsrDdk9Om-UOagcDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*AZnWOyM7e-UCLiq_qKmnxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*7bM_fBhRXZ2lRESRUk-37g.png" /></figure><h3>Using HTML tags</h3><p>Sometimes you will need to highlight words and you will not be able to do that with attributes id or class. Then you will have to use universal html tags:</p><p>&lt;span&gt; &lt;/span&gt; : inline tag, it means that you can insert this tag in text blocks . &lt;p&gt; for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*dMhC8sS-Pcs6WjvlBmGkow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*ILIpQhTgpbj7G97SA6nyBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*1GfGzyLyTrvnRY0wd09rkQ.png" /></figure><p>&lt;div&gt; &lt;/div&gt; : block tag , it will surround a text block like &lt;h1&gt; or &lt;p&gt;. We call a text block every tags which create a jump line before and after him. It’s very useful for design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*oAMGi_FMh4hB_xThuoen8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*-xJHKYP0V3k6B9Root48ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*2E6XpG6rl--zkz1x9nN-4Q.png" /></figure><h3>Advanced Selectors</h3><ul><li>* → universal selector</li><li>A B → select tags B which are in tags A — example :</li></ul><p>&lt;A&gt;Title with &lt;B&gt;text&lt;/B&gt;&lt;/A&gt;</p><ul><li>A + B → select tags B which are following a tag A — example :</li></ul><p>&lt;A&gt; Title &lt;/A&gt;</p><p>&lt;B&gt; Subtitle &lt;/B&gt; → this one gonna be modified.</p><ul><li>A[Attribute=”Value”] → select A tags with this specified attribute which contains the word “value”</li></ul><p>HTML and CSS</p><p>&lt;A title=”My super title”&gt; Title&lt;/A&gt; → A[title*=”super”]</p><p>&lt;B title=”super subtitle”&gt; Title&lt;/B&gt;</p><p>&lt;A title=”My story”&gt; Title&lt;/A&gt;</p><p><em>Note : </em><a href="https://www.w3.org/TR/selectors-3/#context"><em>https://www.w3.org/TR/selectors-3/#context</em></a></p><h3>CSS selectors priority</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D3j_H0KkODNjDDtnTGY-tg.png" /></figure><h3>CSS Text formats</h3><p>Size → font-size</p><p>— Absolute : pixels, centimeters, millimeters</p><ul><li>Be careful with this one because sometimes the size could be too small for readers</li><li>Example : font-size: 16px;</li></ul><p>— Relative : in pourcentage with em ou ex</p><ul><li>More easy to use because of the adaptation of readers preferences</li><li>xx-small ; x-small ; small ; medium ; large ; x-large ; xx-large ;</li><li>Examples : font-size: small;</li><li>Best method is to use em</li><li>Example : font-size : 1.3em; (be careful to use dot instead of coma)</li></ul><p>Font → font-family</p><ul><li>font-family : font1, font2, font3, serif;</li><li>List of font with good integration in browsers : Arial ; Arial Black, Comic Sans MS, Courier New, Georgia, Impact, Times New Roman, Trebuchet MS, Verdana</li><li>Example : font-family: Impact, “Arial Black”, Arial, Verdana, sans-serif;</li></ul><p>Add font-family in CSS3 : <strong>@font-face</strong></p><ul><li><a href="https://fonts.google.com/">https://fonts.google.com</a> or <a href="https://www.fontsquirrel.com/">https://www.fontsquirrel.com</a></li><li>User browser has to download the font</li></ul><p>Format types :</p><ul><li>.ttf: <em>TrueType Font</em>. Ok for IE9 and others browsers</li><li>.eot: <em>Embedded OpenType</em>. Ok for IE only. Product of Microsoft.</li><li>.otf: <em>OpenType Font</em>. Not OK for IE</li><li>.svg: <em>SVG Font</em>. Only format for Apple and Ipads</li><li>.woff: <em>Web Open Font Format</em>. New web format OK for IE9 and all others browsers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*XDYDVgBr9P-Hy1pnCoH8BA.png" /></figure><ul><li>font-style: italic, oblique, normal (default)</li><li>font-weight: bold, normal (default)</li><li>text-decoration: underline, line-through, overline, none (default)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*VfaleB1bWCZL0dnpdqRqkw.png" /></figure><ul><li>Text-align : left, center, right, justify</li></ul><p>You cannot modify the text-alignment of a inline tag as &lt;span&gt; &lt;a&gt; &lt;em&gt; ….Only on block tags as &lt;p&gt; &lt;div&gt; &lt;h1&gt; &lt;h2&gt;</p><ul><li>float : left, right</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*TG0g4FPkYsLdc5M_R4ue7g.png" /></figure><ul><li>we can use float on inline and block tags</li><li>How to stop a float? Clear property : clear : both;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*Bk6g849zb4niFPRZfG22YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*CFyXcCKv_3s9QusZA1k2BA.png" /></figure><h3>Color</h3><p>3 ways to define colors:</p><p>Directly with the name of the colors.</p><p>Using hexadecimal notation:</p><ul><li>Begin with # followed by 6 letters or numbers</li><li>From #000000 (black) to #FFFFFF (white)</li><li>Use Gimp, paint or photoshop</li></ul><p>Using RGB or RGBA colors:</p><ul><li>Combinaison of quantity of Red Green Blue</li><li>rbg(240,96,204) → pink</li><li>Values always between 0 to 255</li><li>Can use paint or colorpicker</li><li>For RGBA — A → Alpha is using to define the opacity</li><li>From 0 (fully transparent) to 1 (fully opaque) as 0% to 100%</li></ul><h4>For background-color</h4><p>Background-image : background-image(‘image_url.jpg’)</p><p>Background-attachment:</p><ul><li>Fixed : background image stay fixed</li><li>Scrolled : background image scroll with the text (default value)</li></ul><p>Background-repeat</p><ul><li>no-repeat image not gonna be repeated as a mosaic</li><li>repeat-x image repetition on X-axe</li><li>repeat-y image repetition on Y-axe</li><li>repeat image repetition (by default)</li></ul><p>Background-position</p><ul><li>Only have interest with the combination of background-repeat : no-repeat;</li><li>You have to give two values in pixels to define the position or using:</li></ul><p>— Top, bottom, left, right, center</p><p>— You can combine these values. Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*OugXK1aRRJjOu6Xup32BiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*0nmzE2TMEdVJf_wyjzNg0Q.png" /></figure><p>Multi images background in CSS3:</p><ul><li>First image on the 2nd one etc…</li><li>Ok on every browsers (KO before IE9)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*RHeUVMyY4intHl9PH7iAag.png" /></figure><p>Opacity:</p><ul><li>Same as a in RGBA</li><li>Value from 0(transparent) to 1(opaque) as 0% to 100%</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*dDb4JzUj-QgfmHacsvuzrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*jB630oEy3vglqwJRukgJSA.png" /></figure><h3>CSS border</h3><p>A lot of properties allow you to modify borders : border-width, border-color, border-style. We will use directly the super property border with these values :</p><ul><li>width</li><li>color</li><li>border type</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*4vo7Z_nHR8-ORiZJcBM0XQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*S_vAEQxyzgpKz40KxFnRYw.png" /><figcaption>The code here represents the third rectangle.</figcaption></figure><h4>Choosing the border side using:</h4><ul><li>border-top , border-left, border-right, border-bottom</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*y7ogvgu0bN3v_vEJYAa7IA.png" /></figure><h4>Border-radius CSS3 property:</h4><ul><li>allow us to easily round the angles of any element</li><li>Indicate as value the importance of the radius in pixels as:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*-s5AKVeEYs9nmjL2wODKOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uLEcYHrhBNXOWncm4uXWQ.png" /></figure><p>You can indicate for each corner the radius following this exactly order:</p><ul><li>Top left</li><li>Top right</li><li>Bottom right</li><li>Bottom left</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*pSwM5roCxJIpBF_JYVs-Bg.png" /></figure><p>You can refine the roundness of our angles by creating elliptic curves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*xLNrBBefq8xFkNaGHdXyMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*ElJZ1CxOXC5oU79F9lIjPQ.png" /></figure><h3>CSS outline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-x0E0vkYq8i6fVCrOIuFpg.png" /></figure><h4>Outline-color:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*B97VQLJD8NGmIEDmgmLu9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*r1eXAZlHdtdcXZL4HgWsYA.png" /></figure><h4>Outline-width:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*MdPDCv-dm-AqK8HU9-8hzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*Clu78vj3H4jFRksk3QYn2w.png" /></figure><h4>Shorthand property:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*wwCX58CEO2L-xVdPRXMWHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*BuK3c6pNETfP5Hib0P6LdQ.png" /></figure><h4>Outline-offset:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*NVOogpN5Dm66PQnXsRA0ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*oVfhHF-hK7W7mf8ehnyW3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*3KGkqaWDzYjBdX9RTuppdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*V-MrUZYRGq3jhhrDyuIwcw.png" /></figure><h3>CSS shadow</h3><p>There are 2 types: box-shadow and text-shadow. Box-shadow CSS3 property is applicable on a block, with values following the next order:</p><ul><li>Horizontal shift of the shadow</li><li>Vertical shift of the shadow</li><li>Gradient smoothing</li><li>Shadow color</li><li>Inset (optional value) : the shadow gonna be inside the box</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*PXU9sJSjcAuAv4xrHJWHew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*BwfJDjaxb4w-39GXzmMJaw.png" /></figure><h4>Text-shadow</h4><p>CSS3 property applicable on text, with same values as box-shadow (without inset).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*-ND0nVa4uzgc6_4zEu8y3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*P-HgTG4HKBdJeCltowV5RA.png" /></figure><h3>CSS Dynamic appearances</h3><p>Shape of elements can be changed once the page is loaded. There are type of events.</p><h4>Hover : mouse hover</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*80l_XA84KfP5oUXhkPVHAA.png" /></figure><h4>Active: mouse click event</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*dQnMjIt9XXgkwl1gJWHxNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*Se0VxgNhZYRYKSaIRPJzhA.png" /></figure><h4>Focus: link selection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*Y54eckIOuiAwnmlU3W9uzA.png" /></figure><h4>Visited : link already visited</h4><ul><li>You can’t modify a lot just the color.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*C1luCKj3IEMO1LjtKIWLWw.png" /></figure><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/css-from-zero-to-advanced-last-part-design-a-website-63c3348b9c5f">CSS From Zero to Advanced Last Part: Design a website</a></p><p><a href="#6238">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb646975c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML From Beginner to Advanced, Last Part: Media Queries]]></title>
            <link>https://medium.com/@devondeveloper/html-from-beginner-to-advanced-media-queries-last-part-e4835613e9e4?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4835613e9e4</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[media-queries]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 18:25:43 GMT</pubDate>
            <atom:updated>2022-05-03T17:49:48.134Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let’s learn everything about Media Queries</h4><p><a href="#e221">1. Media Queries and Responsive Design, Introduction</a></p><p><a href="#c060">2. Apply a Media Queries</a></p><p><a href="#181f">3. Load Media Queries</a></p><p><a href="#8427">4. Media Queries rules</a></p><p><a href="#a3fb">5. Media Queries and mobile browsers</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*iBQW_DXCBVGGX03utXHl2A.jpeg" /></figure><h3>Media Queries and Responsive Design, Introduction</h3><p>Nowadays responsive design is a real concern for every web developer. Mostly because websites need to adapt to a multitude of different devices meaning screen size of resolutions.</p><p>This information is important when create a design: how should your website be displayed for different screen resolutions?</p><p>This is where the media queries are useful. They are CSS rules to apply to change the design of a website according to the characteristics of the screen! With this technique, we can create a design that automatically adapts to the screen of each visitor!</p><p>The media queries are among the new CSS3 features. Soon the CSS full course. These are not new properties but rules that can be applied under certain conditions.</p><p>Concretely, you will be able to say “If the resolution of the visitor’s screen is less than so, then apply the following CSS properties”. This allows you to change the appearance of the site under certain conditions: you can increase the size of the text, change the background color, position your menu differently in certain resolutions, etc.</p><p>The media queries do not concern only screen resolutions. You can change the appearance of your website according to other criteria such as the type of screen (smartphone, TV, projector …), the number of colors, the orientation of the screen (portrait or landscape), etc.</p><h3>Apply a Media Queries</h3><p>Media queries are rules that indicate when to apply a certain CSS property. There are two ways to use them:</p><ul><li>by loading a different css file (ex: “If the resolution is less than 1280px wide, load the file small_resolution.css”);</li><li>by writing the rule directly into the usual.css file (ex: “If the resolution is less than 1280px wide, load the CSS properties below”).</li></ul><h3>Load Media Queries</h3><p>Do you remember the &lt;link /&gt; tag that allows us to load a .css file in our HTML code?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*F909vhNCZDp1dm2OLwNz_Q.png" /></figure><p>We can add a media attribute, in which we will write the rule that must apply for the file to be loaded. We say that we make a “media query”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*2N3CFJYkS9iYoOKF6f62rQ.png" /></figure><p>In the end, your HTML code could offer several CSS files: one default (which is loaded in all cases) and one or two others that will be loaded extra only if the corresponding rule applies:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*DBqap4DiO2WWJ7o8EeYmeQ.png" /></figure><p>Another technique, which we will prefer, is to write these rules in the same CSS file as usual. In this case, we write the rule in the file.css like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*CDZiMj_YEc52Vj0LZpB_bQ.png" /></figure><h3>Media Queries rules</h3><p>There are many rules for building media queries. Here are the main ones:</p><ul><li>color: color management (in bits / pixel).</li><li>height: height of the display area (window).</li><li>width: width of the display area (window).</li><li>device-height: height of the device.</li><li>device-width: width of the device.</li><li>orientation: orientation of the device (portrait or landscape).</li><li>media: type of output screen. Some of the possible values:</li></ul><p>— screen: “classic” screen;</p><p>— handheld: mobile device;</p><p>— print: print;</p><p>— tv: television;</p><p>— projection: projector;</p><p>— all: all types of screens.</p><p>We can add the prefix min- or max- in front of most of these rules. Thus, min-width means “minimum width”, max-height “maximum height”, etc.</p><p>The difference between width and distance-width is perceived above all on the mobile browsers of smartphones.</p><p>The rules can be combined using the following words:</p><ul><li>only</li><li>and</li><li>Not</li></ul><p>Here are some examples of media queries to help you understand the principle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*DQmYI22o4EOETX9wmoRuaw.png" /></figure><h3>Media Queries and mobile browsers</h3><p>As you probably know the screens of smartphones are much smaller than our usual screens (only a few hundred pixels wide). The display area is called the <strong>viewport</strong>: this is the width of the browser window on the mobile.</p><p>In CSS, with media queries, if you target the screen with max-width on a mobile, it will compare the width you specify with that of its viewport. The problem is that the viewport changes depending on the mobile browser used!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdPtYqeuccE_Dz0cqVRbYQ.png" /><figcaption>full list on <a href="https://experienceleague.adobe.com/docs/target/using/experiences/vec/mobile-viewports.html?lang=en">https://experienceleague.adobe.com/docs/target/using/experiences/vec/mobile-viewports.html?lang=en</a></figcaption></figure><p>An iPhone 12 behaves as if the window was 844 px wide, while an Android behaves as if the window was 740 px for a Samsung phone!</p><p>To target smartphones, rather than using <strong>max-width</strong>, it may be interesting to use <strong>max-device-width</strong>: this is the width of the device. Mobile devices up to 480 px wide, we can target only mobile browsers with this media query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*OCZIloABNngkhzLSKAhUug.png" /></figure><p>You can change the viewport width of the mobile browser with a meta tag and insert it in the header (&lt;head&gt;) of the document:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*Yp1Bn1G55X_u6Bjf-HNtVQ.png" /></figure><p>You can use this tag to change the content organization of your page on mobile devices. For easy-to-read rendering without zooming, you can have the viewport the same as the screen width:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*-KYMqiPOj5Qt6u8gokrKTg.png" /></figure><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/css-from-zero-to-advanced-part-1-getting-started-7eb646975c3b">CSS From Zero to Advanced Part 1: Getting Started</a></p><p><a href="#5c53">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4835613e9e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Course part 3]]></title>
            <link>https://medium.com/@devondeveloper/html-course-part-3-88537d579e23?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/88537d579e23</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[forms-prompt]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[forms]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 00:20:49 GMT</pubDate>
            <atom:updated>2022-05-03T17:41:38.854Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML From Beginner to Advanced, Part 3: Forms</h3><h4>Let’s learn everything about forms</h4><ol><li><a href="#2ca8">Introduction</a></li><li><a href="#d327">Creation</a></li><li><a href="#2502">Input</a></li><li><a href="#2e83">Single-line input</a></li><li><a href="#10af">Multi-line input</a></li><li><a href="#b973">Options elements</a></li><li><a href="#b912">Finalize and send</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r0yGrGLbUsAg7oqwBsQb7w.jpeg" /></figure><h3>Introduction</h3><p>Forms are the first real way for you to finally interact with your users. you can ask them to provide informations. Informations are the key for any website, indeed if you want your user to create an account, login, add elements in the page, provide feedback, email your support team forms are everything!</p><p>However, we come to the limits of the HTML language because we must then be able to analyze the information that the user has entered … and this can not be done in HTML. As we will see, the results must be processed in another language, for example PHP. Soon I will be adding the PHP course too.</p><h3>Creation</h3><p>You must first write a &lt;form&gt; &lt;/ form&gt; tag that is a flag that will say my form will start here and all the informations provided by the user in this form needs to be processed.</p><p>Despite the form tag which is a block tag all the rest of the tags that we will discover are inline tags. It means that we have to structure a lot the html inside a form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*sGKsR0616lRFB8IYLlPZOA.png" /></figure><p>The form tag is really important because it will transport 2 important things. How do we want to send the information of our user to the server but also what is the action that we want to trigger when the user presses the submit button.</p><p>You must add two attributes to the <strong>&lt;form&gt;</strong> tag:</p><ul><li><strong><em>method</em></strong>: This attribute indicates how the data will be sent. There are two ways to send data to the server:</li></ul><ol><li><strong>method = “get”</strong>: this is generally a less used method because it is limited to 255 characters. The peculiarity comes from the fact that the information will be sent in the url of the page (http: // …), which is a huge problem in terms of security. But this detail does not really interest us for the moment but soon it will.</li><li><strong>method: “post”</strong> (recommended) this is the most used method for forms because it allows to send a lot of information. The data entered in the form is not transferred through the url which is better for us in terms of security.</li></ol><ul><li><strong><em>action</em></strong>: it’s the address of the page or the program that will process the information.</li></ul><p>This process of the information such as storing it or displaying it cannot be done in HTML or CSS. For that we need a backend. When I say a backend it means that you might need a database to store the information but also a backend programming language to process it.</p><p>For now let’s focus on the HTML part and see how we can complete the &lt;form&gt; tag with the two attributes we have just seen.</p><ul><li>For method, we’ll write the value <strong><em>post</em></strong>.</li><li>For action, we will use a fictional page in PHP (treatment.php). This page will be called when the visitor clicks on the form’s submit button.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*3jpXOsbCigH2vTaPiWpbQw.png" /></figure><p>For treatment.php we need to learn PHP together to get around of what is happening when we process the information. Let’s just consider it works.</p><p>Our priority, for the moment, is to discover in HTML / CSS how to insert inputs, textareas, buttons and check boxes of different kind in your web page.</p><h3>Input</h3><p>You should know that there are two different types of inputs.</p><p>Single-line, basically an input, you see them in website when you have to enter your login for example.</p><p>Multiline, that one is used to enter larger text, an example that you might see are the object part of a contact us page when you want to write a message. the big white box when you can jump to the line mostly.</p><h3>Single-line input</h3><p>We use the tag &lt;input/&gt;. Good thing for us this tag is used for most of the inputs that exists in Web development. This tag in an inline tag is where the structure of the form become important.</p><p>Mostly when doing an input the game is to remember all the different values of the attribute type.</p><p>To create an input:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*Mp58TfYktUNN5KDGemd0Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*65W7YSPKBbISHLGlB3pIDQ.png" /></figure><p>An input alone is complicated for your users in terms of use: they don’t know what they should write in it. For that we can use a new tag named &lt;label&gt;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*XsUKR4uzJ026H6YMlYeayA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*7YXeek-1gQIrznlIS1v8mQ.png" /></figure><p>But this is not enough. You have to link the label to the textbox. Maybe some of you knows that when you click on an input automatically it gives the focus to the input. It’s a nice feature that simplifies the life of users.</p><p>First you need to add a new attribute to your input ( and you know that one already): id</p><p>The id attribute is only here to do that focus feature with the input, nothing else.</p><p>To recap. Attribute name will be for our backend as a marker, attribute id is here to link the label you created to his specific attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*1_lO0UpdJEPUyGNOkkgTkw.png" /></figure><ul><li><strong>size</strong> : enlarge the field</li><li><strong>maxlength</strong> : limit the number of characters that can be typed by the user.</li><li><strong>value</strong> : pre-populate the field with a default value.</li><li><strong>placeholder</strong> : We can give an indication on the contents of the field. This indication will disappear as soon as the visitor clicks inside the field.</li></ul><p>In the following example, the text box contains an indication to understand what to enter; the field is 30 characters long but you can only write 10 characters maximum inside.</p><p>Nowadays we use a lot the placeholder instead of the label. Mostly because of mobile views, we have less space on phones so we try to give informations directly inside the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPsB380-kUa7HMMVSeAy0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*QU8mfpgCJj1QZyUKDXF5YA.png" /></figure><p>You can also change the type of the input if you want the behavior of a password, you know… The black dots that hide the password from malicious eyes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*0ni_0QFrMM51OtfyPkgDew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*y8e9DVhwPXp7zbPNV5Y2Qg.png" /></figure><h3>Multi-line input</h3><p>To create a multiline input we will have to change the tag that we are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*WArMNloIZrgoyRSGX58WOQ.png" /></figure><p>As with any other element of the form, you must give it a name with attribute name and use an attribute label which explains what it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*6KquXOnfBRQTTkRb2DcJFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*SWnTHJBDnaqQZu4cbH6e0Q.png" /></figure><p>There are two options to change the size of &lt;textarea&gt;.</p><ul><li>In CSS: properties <strong>width</strong> and <strong>height</strong> to &lt;textarea&gt;.</li><li>With attributes: add the attributes <strong>rows</strong> and <strong>cols</strong> to the &lt;textarea&gt; tag.</li><li><em>rows</em> : indicates the number of lines of text that can be displayed simultaneously,</li><li><em>cols</em> : indicates the number of columns.</li></ul><p>Why do we open the &lt;textarea&gt; tag to close it just after? first textarea is a pair tag compared to input that is an orphan tag but also textarea has some specificities:</p><ul><li>You can pre-fill the &lt;textarea&gt; with a default value. not really a placeholder really the value that could be sent if the user doesn’t provide any information. But instead of using the value attribute that we could use for the input we will write everything within the tags.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*Oop9lmWTZsq1BRZnuaQWnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*POZPUsHjwHv6sB__vTMz2A.png" /></figure><h3>Options elements</h3><p>HTML offers you a wealth of options items to use in your form. These are elements that ask the visitor to choose from a list of possibilities. We will review:</p><ul><li>the checkboxes;</li><li>radio buttons;</li><li>drop-down lists we call then also select list because of their tag name.</li></ul><p><strong>Checkboxes : </strong>We will reuse the &lt;input /&gt; tag, this time specifying the type checkbox:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*APnwl-LUvksYPT0KExWRvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*WD1WMH_6Xjjz1O2PdgYkuA.png" /></figure><p>Don’t forget to give a <strong>different name to each checkbox</strong>, this will allow you to <strong>identify later</strong> which ones have been checked by the visitor.</p><p>Finally, be aware that you can make sure that a checkbox is checked by default with the attribute checked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*coswVw67ilH2d2Ct62Mp1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*tAmlMbEZlg8ea0-GJGQ23Q.png" /></figure><p><strong>Radio Buttons</strong> : allows you to make a choice (and only one) from a list of possibilities. They kinda look like checkboxes but there is a little extra difficulty: they must be organized into groups. Options in the same group have the same name, but each option must have a different value.</p><p>The tag to use is always an &lt;input /&gt;, this time with the radio value for the attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*J6NaFiJdWIsQiX9wO2Nesw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*6Xd7IYR7gyn5DbZgqvLbVg.png" /></figure><p>Why the same name for each option? With that the browser knows which “group” the button is part of.</p><p>Try to remove the attributes name, you will see that it becomes possible to select all the options items. But that’s not what we want, that’s why we “bind” them together by giving them an identical name.</p><p>If you have two different radio button zones, you must give each group a unique name to make sure they are separated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*n2UHpWs6KxeX3sYObq4nKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhuoDawfRCW73z2-1rNlyQ.png" /></figure><p>The checked attribute is, again, available to select a default value.</p><p><strong>Drop-down lists</strong> are another way to choose from several possibilities. The operation is a little different. We will use the &lt;select&gt; &lt;/ select&gt; tag which indicates the beginning and the end of the drop-down list. The name attribute is added to the tag to give the list a name.</p><p>Inside the &lt;select&gt; &lt;/ select&gt;, we will place several &lt;option&gt; &lt;/ option&gt; tags (one by choice). We add to each of them an attribute value to be able to identify what the visitor has chosen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*c4MU7w6Tvpc8megL-7xGRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*xoKUHceac-ubHScL6Gw3iA.png" /></figure><p>If you want an option to be selected by default, this time use the attribute selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*FEFaMheScSW1BMdq1zc_bA.png" /></figure><p>You can also group your options with the &lt;optgroup&gt; &lt;/ optgroup&gt; tag. In our example, why not to separate countries according to their continent?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*YRWYJNjik69d9lhi2J12Kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*nWxNqs7hWET1sGEJdkhL5Q.png" /></figure><p>Groups can not be selected. So, here, we can’t choose “Europe”, only country names are available for selection.</p><h3>Finalize and send</h3><p><strong>Group fields</strong> : If your form is large and has many fields, it can be useful to group them within several &lt;fieldset&gt; tags. Each &lt;fieldset&gt; can contain a legend with the &lt;legend&gt; tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*zn3TocRJpMRZyGIQkDWzpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqODXfWsV7DgBjLcW6f7FQ.png" /></figure><p>A<strong>utomatically select a field</strong>: You can automatically place the cursor in one of the fields of your form with the <strong>autofocus</strong> attribute. As soon as the visitor loads the page, the cursor will be placed in this field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*YcFmZN7iDzVR7xuWrIC-GA.png" /></figure><p><strong>Make a field mandatory: </strong>You can make a field mandatory by giving it the attribute <strong>required</strong>.The browser will then indicate to the visitor, if the field is empty at the time of sending it, it must imperatively be filled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*fxu6PcmkJcp07KAAzNXeog.png" /></figure><p><em>Note : Older browsers, which do not recognize this attribute, will send the form content without verification. For these browsers, it will be necessary to complete the tests with, for example, JavaScript scripts.</em></p><p><em>Note : We have pseudo-classes in CSS to change the style of the required elements (: required) and invalid (: invalid). Remember also that you have the pseudo format :focus to change the appearance of a field when the cursor is inside.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*bNCpXTNMOxJTv96F7_X9vg.png" /></figure><p><strong>The send button</strong>: Again, the &lt;input /&gt; tag exists in four versions:</p><ul><li>type = “submit”: the main form submit button. This is the one you will use most often. The visitor will be taken to the page indicated in the action attribute of the form.</li><li>type = “reset”: resets the form.</li><li>type = “image”: equivalent of the button submit, presented this time as an image. Add the src attribute to indicate the URL of the image.</li><li>type = “button”: generic button, which will have (by default) no effect. In general, this button is managed in JavaScript to perform actions on the page.</li></ul><p>You can change the text displayed inside the buttons with the attribute value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*yx4ztx_TEJqviL3UGgv1YA.png" /></figure><p>When you click on the “Send” button, the form will take you to the page indicated in the action attribute.</p><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/html-from-beginner-to-advanced-media-queries-last-part-e4835613e9e4">HTML From Beginner to Advanced, Last Part: Media Queries</a></p><p><a href="#cd32">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88537d579e23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Course part 2]]></title>
            <link>https://medium.com/@devondeveloper/html-course-part-2-58956ba43bc0?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/58956ba43bc0</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Sat, 16 Apr 2022 22:30:39 GMT</pubDate>
            <atom:updated>2022-05-03T17:40:01.418Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML From Beginner to Advanced, Part 2: Tables</h3><h4>Now let’s learn everything about tables.</h4><ol><li><a href="#de86">Introduction</a></li><li><a href="#d4c2">Tables</a></li><li><a href="#9a14">Structured tables</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*newXZm5Mk7Lorg6Hdi-DGQ.jpeg" /></figure><h3>Introduction</h3><p>Tables are essential to organize information like Excel in 2 dimensions, that explains why I present them only now, you need to have a full understanding of the HTML tags also you need to know CSS, I will be adding that course very soon too.</p><p>We will start by building a basic table, then use it in a complicated way by doing layouts with them. We will learn how to: fuse/merge cells, dividing them… We will customize them by using their specific CSS properties.</p><h3>Tables</h3><p>The first tag to know is &lt;table&gt; &lt;/ table&gt;. This tag is used to indicate the start and end of a table. This tag is of type block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*35xPXvRNqa_C6wY_UvMATA.png" /></figure><p>Now with tables the thing is that you will have to learn many new tags. The first two are:</p><p>&lt;tr&gt; &lt;/ tr&gt;: indicates a row of the table;</p><p>&lt;td&gt; &lt;/ td&gt;: Indicates the contents of a cell.</p><p>In HTML, a table is constructed line by line like Excel. In each line (&lt;tr&gt;), the contents of the different cells (&lt;td&gt;) are indicated. Schematically, a table is constructed as in the following figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*dcODLtX9wA0VGeWHuk68sA.png" /></figure><p>We have the row (&lt;tr&gt;) that includes a group of cells (&lt;td&gt;).<br>For example, if I want to make a two-row table, with three cells per row (so three columns), I’ll have to write this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*gViMzXEjqH_ymlIuvCsOCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*o_6-y00c2Z_i5BpOM2nfww.png" /></figure><p>You can see that so far it doesn’t look like a table because we don’t have any grid. That’s okay this is something we can add using CSS.</p><p>Adding borders is very simple, you already know the corresponding CSS code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*uCPM-2iLakJmF9lKZf8jJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*WovMjn7H5L0rkTaW0zeCgw.png" /></figure><p>It’s not as perfect as we’d like, we are getting a weird space in between the borders. Indeed, we would like there to be only one border between two cells, To do so there is a table-specific CSS property called border-collapse, which means “collide, collapse the borders”.</p><p>This property can take two values:</p><ul><li>collapse: the borders will be glued together, this is the effect we are looking for here.</li><li>separate: the borders will be dissociated (default value)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*gSETFKB028wWv0Xok5C-xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*IJNmHveXNdTbbW3GiAzhHQ.png" /></figure><h4><strong>The table header tag</strong></h4><p>Now that we have what we wanted, we will add the header line of the table. In the example below, the headings are “Name”, “Age” and “Country”.</p><p>The header line is created with a &lt;tr&gt; as we have done so far, but the cells it contains are, this time, framed by &lt;th&gt; tags and not &lt;td&gt; . The header line is very easy to recognize for two reasons:</p><ul><li>cells are &lt;th&gt; instead of the usual &lt;td&gt;;</li><li>this is the first line of the table.</li></ul><p>Since the names of the cells are a little different for the header, you have to think about updating the CSS by adding the borders also to the th:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*-tz6XX64AqVG494Xvc_T9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/1*ytGoRoz3MDMnfSn4O9sjxQ.png" /></figure><h4><strong>Table title</strong></h4><p>Normally, every table must have a title at the top to understand the content of your table. Our example consists of a list of people but for what , what’s the purpose?</p><p>To do so you can use the &lt;caption&gt; tag . This tag is always at the beginning of the table, just before the table header.</p><p>Be aware that you can change the position of the title with the CSS <strong>caption-side</strong> property that can take two values (even though you wrote it in HTML at the beginning of your table):</p><ul><li>top: the title will be placed at the top of the table (default).</li><li>bottom: the title will be placed after the table.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*rUnHCQSxsq8icvjBBIuPAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*CdXhLL3eYxPEr4xZAka5nQ.png" /></figure><h3>Structured Tables</h3><p>There are two specific techniques:</p><ul><li>For large tables, it is possible to <strong>divide</strong> them into three parts:</li><li>a header</li><li>a body</li><li>a footer</li></ul><p>For some tables, you may need to <strong>merge</strong> cells together.</p><p><strong>Dividing a big table</strong> : If your table is big enough, you will be interested in cutting it into several parts, mostly to organize yourself and the content of your HTML. There are 3 HTML tags that define the 3 “zones” of the table:</p><ul><li>the header (at the top): it is defined with the tag <em>&lt;thead&gt; &lt;/ thead&gt;</em></li><li>the body (in the center): it is defined with the tag <em>&lt;tbody&gt; &lt;/ tbody&gt;</em></li><li>the foot of the table (bottom): it is defined with the tag <em>&lt;tfoot&gt; &lt;/ tfoot&gt;</em></li></ul><p>What is the purpose of the footer in table?</p><p>Generally, if it’s a long chart, you copy the header cells in it. This allows you to see, even at the bottom of the table, what each columns refers to.</p><p>It’s a bit confusing but it is advisable to write the tags in the following order:</p><ul><li>&lt;thead&gt;</li><li>&lt;tfoot&gt;</li><li>&lt;tbody&gt;</li></ul><p>The browser will display each item in the correct space. it is mostly to simplify the life of the developers when they have to maintain, modify the header: they don’t have to scroll untill the end of their HTML to make sure that they are all consistent.</p><p>But considering that these 3 tags are optionals if your table is simple then don’t use it. As I said they are just here to organize more the content of your table if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*SlPGoxLU8gABpYdzfXfgvg.png" /></figure><p>Merge of a table : In some complex tables, you will need to “merge” cells together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*AwqfHun98XsnLn57CGq44g.png" /></figure><p>For the last row, you see that the cells have been merged. To merge, we add an attribute to the &lt;td&gt; tag.</p><p>We can do 2 types of merge of cells: columns or rows</p><ul><li>The merging of columns: this is what we’ve done in the previous example. The merge is done horizontally which means that you visually erase a vertical bar. We use the attribute <strong>colspan</strong>.</li><li>The merging of lines: two lines will be grouped together which means that you delete a horizontal border. We use the attribute <strong>rowspan</strong>.</li></ul><p>You must give a value to the attribute (whether it’s <strong>rowspan</strong> or <strong>colspan</strong>). It is necessary to indicate the number of cells to be fused together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*M0LDGFpF9-c_UYnqRP2eWg.png" /></figure><p>In our example, we want to merge two cells: the column “For children? and “For teenagers? “. We will have to write:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*EXAW5X3VO6xq8DQcPpRVtw.png" /></figure><p>which means: “This cell is the merge of two cells”. It is possible to merge more cells at a time (three, four, five … as many as you want).</p><p>Note: in the code below you will see that the 4th row contains only two cells instead of three (there are only two &lt;td&gt; tags). This is normal because we merged the last two cells together.</p><p>That the complicated part you always need to keep count of your cells merged or not to make sure that your gris and the amount of cells is always matching.</p><p>The &lt;td colspan=”2″&gt; indicates that this cell takes the space of two cells at a time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*9XTFEPHhVkvcePc80xT-QA.png" /></figure><p>For the vertical fusion with <strong>rowspan</strong>:</p><p>In this case, the <strong>colspan</strong> is no more suitable, it is <strong>rowspan</strong> that we should use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*UgFIy8VB01o35ElunGWEXw.png" /></figure><p>Note : that you can change the vertical alignment of the text in each cells table with the <em>vertical-align</em> property that you have already seen.</p><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/html-course-part-3-88537d579e23">HTML Course part 3</a></p><p><a href="#3e6b">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58956ba43bc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Course]]></title>
            <link>https://medium.com/@devondeveloper/html-course-9bc009c81b73?source=rss-b1574013fdc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bc009c81b73</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Devon Developer]]></dc:creator>
            <pubDate>Sat, 16 Apr 2022 19:11:39 GMT</pubDate>
            <atom:updated>2022-05-03T17:37:48.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML From Beginner to Advanced Part 1: Getting Started</h3><h4>Learn the main and more useful HTML tags by learning how to use this markup language.</h4><p><a href="#6d62">1. Hypertext Markup Language</a></p><p><a href="#cfc1">2. Four Markup Languages: SGML, XML, HTML and XHTML</a></p><p><a href="#7992">3. Tags</a></p><p><a href="#4c10">4. Attributes</a></p><p><a href="#34ec">5. Basic Structure of HTML</a></p><p><a href="#6200">6. HTML Tags</a></p><p><a href="#7137">7. Exercise</a></p><p><a href="#73fc">8. HTML Tags part 2</a></p><p><a href="#5768">9. Images formats</a></p><p><a href="#e944">10. Relative vs absolute Paths</a></p><p><a href="#1d2a">11. HTML Tags part 3</a></p><p><a href="#822a">12. Code Comments</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z6rZnUt7e-KCNypj" /><figcaption>Photo by <a href="https://unsplash.com/@jacksonsophat?utm_source=medium&amp;utm_medium=referral">Jackson So</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Hypertext Markup Language</h3><p>A <strong>markup language</strong> is a system for annotating a document in a way that is syntactically distinguishable from the text. […] The whole idea of a mark up language is to avoid the formatting work for the text, as the tags in the mark up language serve the purpose to format the appropriate text like a header or beginning of a next paragraph…etc.</p><figure><img alt="The red parts are indicating that within them text is going to be inserted. See the first pair of brackets." src="https://cdn-images-1.medium.com/max/600/1*Pl93YXtiWcCfQm2EYf634g.png" /><figcaption>See the first pair of brackets, that indicates that everything within is text.</figcaption></figure><h3>Four Markup Languages: SGML, XML, HTML and XHTML</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*X33rJ9ZkxNZZ7AIibZ34TA.png" /></figure><h4>SGML</h4><p>Standard Generalized Markup Language (1986) From IBM’s 1969 GML: Generalized Markup Language. The markup is <strong><em>declarative</em></strong>. The markup is <strong><em>rigorous</em></strong>. Have to use Document Type Definitions (DTD).</p><h4>XML</h4><p>Extensible Markup Language (1996): simplicity, generality and usability across the Internet.</p><h4>HTML</h4><p>Hypertext Markup Language (1993). A markup language that web browsers use to interpret and compose text, images, and other material into visual or audible web pages.</p><p>The first publicly available description of HTML was a document called “HTML Tags”, first mentioned on Internet by Tim Berners-Lee in late 1991, and considered to be an application of SGML. In 2004, development began on HTML5 in the Web Hypertext Application Technology Working Group (WHATWG).</p><h4>XHTML</h4><p>Extensible Hypertext Markup Language (2000). An application of XML, a more restrictive subset of SGML.</p><p>XHTML 1.0 is “a reformulation of the three HTML 4 document types as applications of XML 1.0”. Developed to make HTML more extensible and increase interoperability with other data formats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Fj4LNgAmpZWrhHw6S0feg.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfWzp5lZ5CEA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfWzp5lZ5CEA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfWzp5lZ5CEA%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/ddba92a978837ac269a104694c101689/href">https://medium.com/media/ddba92a978837ac269a104694c101689/href</a></iframe><h3>Tags</h3><p>Non visible on screen for the users of WebSites. The tags explain to your computer what it has to show on the screen.</p><p>Surrounded by &lt; &gt; like → &lt;tag&gt;</p><p>→ indicate the text nature which they are surrounding : this is the title, an image, a paragraph,… of our page</p><p><em>2 types of tags :</em></p><ul><li>Pairs tags</li></ul><p>Need and <strong>open tag</strong> and <strong>ending tag</strong> : &lt;title&gt; This is a title &lt;/title&gt;</p><p>Indicate to the computer that everything which is not between these 2 tags is not a title</p><p>→ <strong>This is not a title &lt;title&gt;This is a title&lt;/title&gt; This is not a title</strong></p><ul><li>Orphan tags</li></ul><p>Used for insertion of elements at the precise place (for example a picture — &lt;picture/&gt;)</p><p>There is no need to open a tag and placing an end tag, we just want to say to the computer “add a picture here”</p><p>The / is optional but it’s recommended to had since it as a good practice between developers.</p><h3>Attributes</h3><p>Used in order to add options and provide more informations about the tag. Always placed after the name of the open tag. Most of the time has a value.</p><p><strong>&lt;tag attribute=”value”&gt;</strong></p><p>Example :</p><p><strong>&lt;quote writer=”Neil Armstrong” date=”21/07/1967”&gt;</strong></p><p><em>That’s one small step for man, one giant leap for mankind</em></p><p><strong>&lt;/quote&gt;</strong></p><h3>Basic Structure of HTML</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*MfezjpW1Yk86Rq3adXGaNQ.png" /></figure><h4>&lt;!DOCTYPE html&gt;</h4><blockquote>The DOCTYPE is retained in HTML5 as a mostly useless, but required header only to trigger “standards mode” in common browsers. <a href="https://en.wikipedia.org/wiki/Document_type_declaration">Type declaration</a></blockquote><h4>&lt;html&gt; … &lt;/html&gt;</h4><p>&lt;html&gt; tag is the first tag that we have to open and the last one to close.</p><p>&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt; this is good.</p><p>&lt;html&gt;&lt;body&gt;&lt;/html&gt;&lt;/body&gt; : this is not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*rvA24u_rFuoqxv4GdKuKng.png" /></figure><h4>&lt;head&gt; … &lt;/head&gt;</h4><p>There is <strong>no</strong> attributes for this tag. The start and end tag can always be omitted as they can be readily inferred by the parser. In the head element the information corresponds to the top part of a memo or mail message. It describes properties of the document such as the <strong>title</strong>, the document toolbar, and additional <strong>meta-information</strong>. All the informations in this section are hidden for the user.</p><h4>&lt;title&gt; … &lt;/title&gt;</h4><p>The &lt;title&gt; element is always required. The title should identify the contents of the document in a global context, and may be used in a history lists and as a label for the window displaying the document. The TITLE element must occur within the head of the document, and may not contain anchors, paragraph tags, or highlighting. There is only one TITLE tag.</p><p>The length of the title is unlimited, however, long title may be truncated in some applications. To minimize this possibility, keep titles to fewer than 64 characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*i2yXsaV0qT1ePTaDeurNyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*Wh4Rv0y3XvJ4nUqy2s08-Q.png" /></figure><h4>&lt;meta … /&gt;</h4><p>Meta information can be extracted by servers/clients for use in identifying, indexing and cataloging specialized document meta-information.</p><p>The META element attributes:</p><h4>Charset</h4><p>You need to specify the encode of your page with : &lt;meta charset=”utf-8″ /&gt; — indicate the way your file gonna be saved.</p><p>Example with it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*VvLKGHdCBrAt5zTu2RzSMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*BqZctlixSBtCg40SenzQJg.png" /></figure><p>Example without it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*XXFqld8jGL7Q3M-V_J_r6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*J7hLW0C_dWVX967Rbn_Trw.png" /></figure><h3>HTML Tags</h3><h4>&lt;body&gt; … &lt;/body&gt;</h4><p>This is where you will write all of your HTML code. The document body is composed from zero or more of the following elements:</p><ul><li>DIV — used for hierarchical containers and static banners</li><li>Headings (H1, to H6) — a set of headers of varying levels of importance</li><li>Block elements — paragraphs, lists, forms, tables, figures and other elements</li><li>Horizontal rules, and the ADDRESS element</li><li>Text and character level markup including emphasis, images, math, hypertext links and miscellaneous elements.</li></ul><h4>&lt;p&gt; … &lt;/p&gt;</h4><p>Used to create paragraphs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*JcJ5aHmx_6NQd6lVihDIVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*SooEPoWT17WHmmynFrgFEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*f7cNzH1I6pBloUmJCooRMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*FLhQm3cVft0IDaBHFJq56w.png" /></figure><p>The jump to the line that you do in visual code are not interpreted as it is by the browser. Everything will be written in one line. that’s why we use the &lt;p&gt; tag for example in order to separate our text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*gV1hCQedb-8EDdHQjLLRNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*CY76l6Cco55HJOG-nWvKQQ.png" /></figure><h4>&lt;br/&gt;</h4><p>As you saw with &lt;p&gt; if you just want go to the next line without the creation of a new paragraph, then you have to use &lt;br/&gt;. &lt;br /&gt; has to be in a paragraph section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*SzGUXEt3SHBoBlxa8gkWhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*fmKAbAMytBiPQDZOoZ6Htw.png" /></figure><p>If you want to do multiple jump to the line then is better to use CSS.</p><h3>Exercise</h3><p>Create your first Website as follow :</p><p>In order to do that :</p><ol><li>Create a folder named <strong>MyFirstWebSite</strong></li></ol><p>2. Then create 3 folders :</p><ul><li>MyFirstWebSite/MyResume</li><li>MyFirstWebSite/MyAdventure</li><li>MyFirstWebSite/Images</li></ul><p>3. In MyFirstWebSite/MyResume create your file aboutMe.html using visualStudio.</p><p>4. Complete your file aboutMe.html to look like the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*qQ-EVnfELOvFUojnCC-vVg.png" /></figure><h3>HTML Tags part 2</h3><h4>&lt;h1&gt; …. &lt;h6&gt;</h4><p>Used to highlight part as a title/header in your document. Each of them has a particular style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*QduZOKolV6E5Fe_B0XdC2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*hEHDaNd5duKJju1uOu4aCw.png" /></figure><h4>&lt;strong&gt;, &lt;em&gt; and &lt;mark&gt;</h4><p>Used to indicate important words/sentences in your page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*MYItnKS0HJ0Ed_AZNRE8Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*lpaoUyapI1VkPO-J_ZGINw.png" /></figure><h4>List</h4><p>Used to order your website.</p><p>2 types of lists :</p><p>Non-ordered &lt;ul&gt;</p><ul><li>Item1</li><li>Item2</li><li>Item3</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*6q1XtqbsbTSq4cRUwerj7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*LppdQRw5nudkTrdhpuLu6A.png" /></figure><p>Ordered &lt;ol&gt;</p><ol><li>Item1</li><li>Item2</li><li>Item3</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*g0b6whSeI3HgDXDDYMNKZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/131/1*AQ8EYlQufdzknupbPmlOfQ.png" /></figure><h3>Images formats</h3><p>Jpeg <em>(Joint Photographic Expert Group) .jpg or .jpeg</em></p><p>Used to lightening the weight of your image using algorithms based on the human sight. Very useful when you want to add pictures (users can’t see the difference).</p><p>Png (<em>Portable Network Graphics</em>)</p><p>No deterioration of your image but is heavier.</p><p>2 assets : you can use transparency and no deterioration of the quality of your image.</p><p>2 encodings :</p><ul><li>PNG 8 bits : 256 colors ;</li><li>PNG 24 bits : 16 millions de colors (as much as JPEG).</li></ul><p>Naming images :</p><p>lowercases, no accentuation and no spaces (use underscore instead).</p><h3>Relative vs absolute Paths</h3><p><strong>Relative</strong> : No initial ‘/’ — browser looking for file in the current folder</p><p>folder/page.html → browser will looking for page.html directly in the folder named “folder”.</p><p>./folder/page.html → ./ browser look for the file in the current repertory folder</p><p>../folder/page.html → ../ browser look for the file in the parent folder</p><p>You can add ‘../’ as ../../../folder/page.html → parent3/parent2/parent/folder/page.html</p><p><strong>Absolute</strong> : ‘/’ as a prefix of the path — browser looking for file at the root</p><p>/folder/page.html → browser will looking for <a href="http://www.mywebsite.com/folder/page.html">http://www.myfirstwebsite.com/folder/page.html</a></p><p>Absolute is the safest convention name but if you modify your folder tree then you have to modify everything.</p><h3>HTML Tags part 3</h3><h4>Orphan tag : &lt;img /&gt;</h4><p>With this tag you can add images . First tag where you will need attributes.</p><p>Attribute <strong><em>src</em></strong> explain where your computer will find the good image to insert in your website.</p><p>Attribute <strong><em>alt</em></strong> give an alternate sentence/keywords (used by browsers to index your image too).</p><p>Attribute <strong><em>title</em></strong> add informations like a tooltip on mouse over of your image.</p><p>In order to add a tag &lt;img /&gt; you have to add it between &lt;p&gt;…&lt;/p&gt; tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*XU27gRZ1j0ZojG6Di6yVNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2_S1T4Xqk93402aYccle7g.png" /></figure><h4>&lt;figure&gt;….&lt;/figure&gt;</h4><p>What is exactly roles of <strong>&lt;figure&gt;</strong> vs <strong>&lt;img/&gt;</strong> ?</p><p>If the image gives no informations and it’s just a decoration of your Website then use &lt;img/&gt;.</p><p>If the image gives informations then use &lt;figure&gt; :</p><ul><li>&lt;figure&gt; first role is semantical, indicate to computer that this image has meaning for your Website and it helps to understand your text.</li><li>With this tag you can use a program to generate a figure summary</li><li>A figure can have multiple images and usually one figcaption</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*he43bJO9WfY1lLlya3OmMg.png" /></figure><h4>&lt;a/&gt;</h4><p>Can define a command, an action to do, this tag needs also attributes as follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*nZ6HHJe3yp3EIO4mEZrZ6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xYPh7G91x8Ziv94aOohvQ.png" /></figure><h4>A link which displays a tooltip on mouseover:</h4><p>Using optional attribute title, you can use it to warn or inform the user before he clicks on your link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*Q_J4hVF7XolDkccf0OkQrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*r6C_HQ7W7EbFl3qZQ6Fxwg.png" /></figure><h4>A link which open a new window</h4><p>You can force the opening of a new window using attribute target = “_blank” with &lt;a&gt; tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*ZG_iBadh89uHOn5-J7R-Mg.png" /></figure><p>Depending on the browser configuration, the page will be displayed in a new window or tab. You can’t choose between window or tab. Don’t abuse of this technique as it disrupts navigation. The visitor himself can decide if he wants to open the link in a new window. It will Shift + Click on the link to open in a new window or Ctrl + Click to open in a new tab.</p><h4>Link to send an email</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*CxJYVImqn8omU4Ug30xi6w.png" /></figure><h4>Link to download a file</h4><p>Add this file directly in the same folder or another folder and do a link to this file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*20p2sOdJPCmezsk5O1nRcA.png" /></figure><h4>Landmark that you can put in your HTML pages when they are very long</h4><p>Useful to make a link leading down the same page so that the visitor can jump directly to the part that interests him. To create an anchor, just add the id attribute to a tag that will serve as a reference. It can be any tag, a title for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*oEiwcJfqY8duNkm7gbD3nQ.png" /></figure><p>This <strong>id</strong> will serve as an identifier in order to make a link to this title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*AoDdwaAhbTnOaWVUxswcFw.png" /></figure><p>If you click on the link, it will take you further down the same page (when provided enough text for the scrollbars to move automatically).</p><p><strong>Every attribute id in your browser have to be named by an unique name</strong></p><p>Link to an anchor in another web page:</p><p>The idea is to make a link that opens another page AND that leads directly to an anchor located lower on this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*8ld4Jyk0asX_KT9c8YeKMA.png" /></figure><h3>Code Comments</h3><p>In order to communicate about your code between developers every code languages own is method to do comments. You can place comments everywhere in order to explain what you are doing for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*4iRa6m8iGG_uVpTsA0vq0A.png" /></figure><p>If you find my content helpful please consider making a donation at:</p><p><a href="https://ko-fi.com/devondeveloper">https://ko-fi.com/devondeveloper</a></p><p>This content it’s free but believe me, if you take a coding bootcamp or web development course there is no real difference with the information you just read. By making a donation You are helping to keep creating Great Quality content for You, so you can become the Best web developer you can be.</p><p><a href="https://medium.com/@devondeveloper/html-course-part-2-58956ba43bc0">HTML Course part 2</a></p><p><a href="#ff4e">Back to the top.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bc009c81b73" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>