<?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 Caio Martins on Medium]]></title>
        <description><![CDATA[Stories by Caio Martins on Medium]]></description>
        <link>https://medium.com/@caiochrm?source=rss-277795fb36c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3EBeIlZ68y2kBuRzqg_OhA.jpeg</url>
            <title>Stories by Caio Martins on Medium</title>
            <link>https://medium.com/@caiochrm?source=rss-277795fb36c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:46:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@caiochrm/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[HTML Entities]]></title>
            <link>https://medium.com/@caiochrm/html-entities-6c6717ba3711?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c6717ba3711</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[encoding]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 14:12:03 GMT</pubDate>
            <atom:updated>2018-01-05T14:14:17.177Z</atom:updated>
            <content:encoded><![CDATA[<p>Some characters are reserved in HTML.</p><p>If you use the less than (&lt;) or greater than (&gt;) in your text, the browser might mix them with tags.</p><p>Character entities are used to display reserved character in HTML.</p><p>A character entity looks like this:</p><p>&amp;<em>entity_name</em>;</p><p>OR</p><p>&amp;#<em>entity_number</em>;</p><p>To display a less than sign (&lt;) we must write: <strong>&amp;lt;</strong> or <strong>&amp;#60;</strong></p><h3>Non-breaking Space</h3><p>A common character entity used in HTML is the non-breaking space <strong>&amp;nbsp;</strong></p><p>A non-breaking space is a space that will not break into a new line.</p><p>Two words separated by a non-breaking space will stick together (not break into a new line). This is handy when breaking wordks might be disruptive.</p><p>Examples:</p><ul><li>§ 10</li><li>10 km/h</li><li>10 PM</li></ul><p>Another common use of the non-breaking space is to prevent that browsers truncate spaces in HTML pages.</p><p>If you write 10 spaces in your text, the browser will remove 9 of them. To add real spaces yo your text, you can use the <strong>&amp;nbsp; </strong>character entity.</p><h3>Combining Diacritical Marks</h3><p>A diacritical mark is a “glyph” added to a letter.</p><p>Some diacritical marks, like grave (`) and acute (´) are called accents.</p><p>Diacritical marks can appear both avoce and below a letter, inside a letter , and bettwen two letters.</p><p>Diacritical marks can be used in combination with alphanumeric characters, to produce a character that is not present in the character set (encoding) used in the page.</p><h3>HTML Symbol Entities</h3><p>HTML entities were described in the previous chapter.</p><p>Many mathematical, technical, and currency simbols, are not present, on a normal keyboard.</p><p>To add such symbols to an HTML page, you can use an HTML entity name.</p><p>If no entity name exists, you can use an entity number, a decimal, or hexadecimal reference.</p><p>&lt;p&gt;I will display &amp;euro;&lt;/p&gt;<br>&lt;p&gt;I will display &amp;#8364;&lt;/p&gt;<br>&lt;p&gt;I will display &amp;#x20AC;&lt;/p&gt;</p><h3>What is Character Encoding?</h3><p>ASCII was the first character encoding standard (also called character set). ASCII defined 128 different alphanumeric character that could be use on the internet: numbers(0–9), English letters (A-Z), and some special characters like ! $ + — ( ) @ &lt; &gt; .</p><p>ANSI (Windows-1252) was the original Windows character set, with suppoprt for 256 diferent character codes.</p><p>ISO-8859–1 was the default character set form HTML 4. This charachter set also supported 256 different character codes.</p><p>Because ANSI and ISO-8859–1 were so limited, HTML 4 also suport UTF-8</p><p>The default character encoding for HTML5 is UTF-8</p><h3>The HTML charset Attribute</h3><p>To display an HTML page correctly, a web browser must know the character set used in the page.</p><p>This is specified in the &lt;meta&gt; tag:</p><p><strong>For HTML4</strong></p><p>&lt;meta http-equiv=”Content-Type” content=”text/html;charset=ISO-8859–1&quot;&gt;</p><p><strong>For HTML5:</strong></p><p>&lt;meta charset=”UTF-8&quot;&gt;</p><h3>The ASCII Character Set</h3><p>ASCII uses the values from 0 to 31 (and 127) for control characters.</p><p>ASCII uses the values from 32 to 126 for letters, digits, and symbols.</p><p>ASCII does not use the values from 128 to 255.</p><h3>The ANSI Character Set (Windows-1252)</h3><p>ANSI is identical to ASCII for the values from 0 to 127.</p><p>ANSI has a proprietary set of characters for the values from 128 to 159.</p><p>ANSI is identical to UTF-8 for the values from 160 to 255.</p><h3>The ISO-8859–1 Character Set</h3><p>8859–1 is identical to ASCII for the values from 0 to 127.</p><p>8859–1 does not use the values from 128 to 159.</p><p>8859–1 is identical to UTF-8 for the values from 160 to 255.</p><h3>The UTF-8 Character Set</h3><p>UTF-8 is identical to ASCII for the values from 0 to 127.</p><p>UTF-8 does not use the values from 128 to 159.</p><p>UTF-8 is identical to both ANSI and 8859–1 for the values from 160 to 255.</p><p>UTF-8 continues from the value 256 with more than 10 000 different characters.</p><h3>HTML Uniform Resource Locators</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c6717ba3711" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Computer Code Elements]]></title>
            <link>https://medium.com/@caiochrm/html-computer-code-elements-210710b08543?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/210710b08543</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 13:51:24 GMT</pubDate>
            <atom:updated>2018-01-05T13:51:24.958Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>HTML &lt;kbd&gt; For Keyboard Input</strong></p><p>The HTML &lt;kbdb&gt; element represents user input, like keyboard input or voice commands.</p><p>Text surrouded by &lt;kbd&gt; tags is typically displayed in the browser’s default monospace font:</p><p>&lt;p&gt;Save the document by pressing &lt;kbd&gt;Ctrl + S&lt;/kbd&gt;&lt;/p&gt;</p><h3>HTML &lt;samp&gt; For Program Output</h3><p>The HTML &lt;samp&gt; element represents output from a program or computing system.</p><p>Text surrounded by &lt;samp&gt; tags is typically displayed in the browser’s default monospace font:</p><p>&lt;p&gt;If you input wrong value, the program will return &lt;samp&gt;Error!&lt;/samp&gt;&lt;/p&gt;</p><h3>HTML &lt;code&gt; For Computer Code</h3><p>The HTML &lt;code&gt; element defines a fragment of computer code.</p><p>Text surrounded by &lt;code&gt; tags is typically displayed in the browser’s default monospace font:</p><p>&lt;code&gt;<br>x = 5;<br>y = 6;<br>z = x + y;<br>&lt;/code&gt;</p><p>Result;</p><p>x = 5; y = 6; z = x + y;</p><p>Notice that the &lt;code&gt; element does not preserve extra withesace and line-breaks.</p><p>To fix this, you can ut the &lt;code&gt; element inside a &lt;pre&gt; element:</p><p>&lt;pre&gt;<br>&lt;code&gt;<br>x = 5;<br>y = 6;<br>z = x + y;<br>&lt;/code&gt;<br>&lt;/pre&gt;</p><p>Result:</p><p>x=5;</p><p>y=6;</p><p>z=x+y;</p><h3>HTML &lt;var&gt; For Variables</h3><p>The HTML &lt;var&gt; element defines a variable.</p><p>The variable could be a variable in a mathematical expression or a variable in programming context:</p><p>Einstein wrote: &lt;var&gt;E&lt;/var&gt; = &lt;var&gt;mc&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210710b08543" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Responsive Web Design]]></title>
            <link>https://medium.com/@caiochrm/html-responsive-web-design-1b1108681c53?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1108681c53</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 13:43:34 GMT</pubDate>
            <atom:updated>2018-01-05T13:43:34.306Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Responsive Web Design?</h3><p>Responsive Web Design makes your web page look good on all devices (desktop, tablets and phones).</p><p>Responsive Web Design is about using HTML and CSS to resize, hide, shrink, enlarge, or move the content to make it look good on any screen:</p><h3>Setting The Viewport</h3><p>When making responsive web pages, add the following &lt;meta&gt; element in all your web pages:</p><p>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1.0&quot;&gt;</p><p>This will set the viewport of your page, wich will give the browser instructions on how to control the page’s dimensions and scaling.</p><h3>Responsive Images</h3><p>Responsive iages are images that scale nicely to fit any browser size.</p><h3>Using the width Property</h3><p>If the width property is set to 100%, the image will be responsive and scale up and down:</p><p>&lt;img src=”img_girl.jpg” <strong>style=”width:100%;”</strong>&gt;</p><h3>Using the max-width Property</h3><p>If the max-width property is set to 100%, the image will scale down if it has to, but never scale up to be larger than its original size:</p><p>&lt;img src=”img_girl.jpg” style=”<strong>max-width:100%;</strong>height:auto;”&gt;</p><h3>Show Different Images Depending on Browser Width</h3><p>The HTML &lt;picture&gt; element allows you to define different images for different images for different browser window sizes.</p><p>Resize the browser window to see how the image below change depending on the width.</p><p>&lt;picture&gt;<br> &lt;source srcset=”img_smallflower.jpg” media=”(max-width: 600px)”&gt;<br> &lt;source srcset=”img_flowers.jpg” media=”(max-width: 1500px)”&gt;<br> &lt;source srcset=”flowers.jpg”&gt;<br> &lt;img src=”img_smallflower.jpg” alt=”Flowers”&gt;<br>&lt;/picture&gt;</p><h3>Responsive Text Size</h3><p>The text size can be set with a “vw” unit, wich means the viewport width”</p><p>That way the text size will follow the size of the browser window:</p><p>&lt;h1 style=”<strong>font-size:10vw</strong>”&gt;Hello World&lt;/h1&gt;</p><h3>Media Queries</h3><p>In addition to resize text and images, it is also common to use media queriese in responsive web pages.</p><p>With media queries you can define completely different styles for different browsers sizes.</p><p>&lt;style&gt;<br>.left, .right {<br> float:left;<br> width:20%; /*The width is 20%, by default*/<br>}</p><p>.main {<br> float:left;<br> width:60%; /*The width is 60%, by default*/<br>}</p><p>/*Use a media query to add a breakpoint at 800px:*/<br>@media (max-width:800px) {<br> .left, .main, .right {<br> width:100%; /*The width is 100%, when the viewport is 800px or smaller*/<br> }<br>}<br>&lt;/style&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1108681c53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Head]]></title>
            <link>https://medium.com/@caiochrm/html-head-4c9fcab200c5?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c9fcab200c5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html5]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 13:20:57 GMT</pubDate>
            <atom:updated>2018-01-05T13:20:57.836Z</atom:updated>
            <content:encoded><![CDATA[<h3>The HTML &lt;head&gt; Element</h3><p>The &lt;head&gt; element is a container for metadata (data about data) and is placed between the &lt;html&gt; tag and the &lt;body&gt; tag.</p><p>HTML metadata is data about the HTML document. Metadata is not displayed.</p><p>Metadata typically define the document title, character set, styles, links, scrypts, and other meta information.</p><p>The following tags describe metadata: &lt;title&gt;,&lt;style&gt;,&lt;meta&gt;,&lt;link&gt;, &lt;script&gt; and &lt;base&gt;.</p><h3>The HTML &lt;title&gt; Element</h3><p>The &lt;title&gt; element defines the title of the document, and is required in all HTML/XHTML documents.</p><p>The &lt;title&gt; element:</p><ul><li>defines a title in the browser tab</li><li>provides a title for the page when it is added to favorites</li><li>displays a title for the page in search engine results</li></ul><h3>The HTML &lt;link&gt; Element</h3><p>The <strong>&lt;link&gt;</strong> element is used to link to external style sheets:</p><p>&lt;link rel=”stylesheet” href=”mystyle.css”&gt;</p><h3>The HTML &lt;meta&gt; Element</h3><p>The &lt;meta&gt; element is used to specify wich character set is used, page description, keywords, author, and other metadata.</p><p>Metadata is used by browsers (how to display content), by search engines (keywords), and other web services.</p><p>Define the character set used:</p><p>&lt;meta charset=”UTF-8&quot;&gt;</p><p>Define a description of your web page:</p><p>&lt;meta name=”description” content=”Free Web tutorials”&gt;</p><p>Define keywords for search engines:</p><p>&lt;meta name=”keywords” content=”HTML, CSS, XML, JavaScript”&gt;</p><p>Define the author of a page:</p><p>&lt;meta name=”author” content=”John Doe”&gt;</p><p>Refresh document every 30 seconds:</p><p>&lt;meta http-equiv=”refresh” content=”30&quot;&gt;</p><h3>Setting The Viewport</h3><p>HTML5 introduced a method to let web designers take control over the viewport, through the &lt;meta&gt; tag.</p><p>The viewport is the user’s visible area of a web page. It varies with the device, and will be smaller on a mobile phone than on a computer screen.</p><p>You should include the following &lt;meta&gt; viewport element in all your web ages:</p><p>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1.0&quot;&gt;</p><p>A &lt;meta&gt; viewport element gives the browser instructions on how to control the page’s dimensions and scaling.</p><p>The width=device-width part sets the width of the page to follow the screen-width of the device (wich will vary depending on the device).</p><p>The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.</p><h3>The HTML &lt;base&gt; Element</h3><p>The &lt;base&gt; element specifies the base URL and base target for all relative URL’s in a page:</p><p>&lt;base href=”https://www.w3schools.com/images/&quot; target=”_blank”&gt;</p><h3>Omitting &lt;html&gt;, &lt;head&gt; and &lt;body&gt;?</h3><p>According to the HTML5 standard ; the &lt;html&gt;,the &lt;body&gt;, and the &lt;head&gt; tag can be ommited.</p><p>The following code will validate as HTML5:</p><p>&lt;!DOCTYPE html&gt;<br>&lt;title&gt;Page Title&lt;/title&gt;</p><p>&lt;h1&gt;This is a heading&lt;/h1&gt;<br>&lt;p&gt;This is a paragraph.&lt;/p&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c9fcab200c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML File Paths]]></title>
            <link>https://medium.com/@caiochrm/html-file-paths-9ac2157f3e0c?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ac2157f3e0c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 13:06:22 GMT</pubDate>
            <atom:updated>2018-01-05T13:06:22.621Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTML File Paths</h3><p>A file path describes the location of a file in a web site’s folder structure.</p><p>File paths are used when liking to a external files like:</p><ul><li>Web pages</li><li>Images</li><li>Style sheets</li><li>JavaScripts</li></ul><h3>Absolute File Paths</h3><p>An absolute file path is the full URL to an internet file:</p><p>&lt;img src=”https://www.w3schools.com/images/picture.jpg&quot; alt=”Mountain”&gt;</p><h3>Relative File Paths</h3><p>A relative file path points to a file relative to the current page.</p><p>In this example the file path points to a file images folder located at the root of the current web:</p><p>&lt;img src=”/images/picture.jpg” alt=”Mountain”&gt;</p><p>In this example the file path points to a file in the images folder located in the current folder:</p><p>&lt;img src=”images/picture.jpg” alt=”Mountain”&gt;</p><p>In this example the file path points to a file in the images folder located in the folder one level above the current folder:</p><p>&lt;img src=”../images/picture.jpg” alt=”Mountain”&gt;</p><h3>Best Practice</h3><p>It is a best practice to use relative file paths (if possible).</p><p>when using relative file paths, your web pages will not be bound to your current base URL. All links will work on your computer (localhost) as well on your current public domain and your future public domains.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ac2157f3e0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML JavaScript]]></title>
            <link>https://medium.com/@caiochrm/html-javascript-6f3441d6dcfe?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f3441d6dcfe</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 12:56:36 GMT</pubDate>
            <atom:updated>2018-01-05T12:58:00.915Z</atom:updated>
            <content:encoded><![CDATA[<p>Javascript makes HTML pages more dynamic and interactive.</p><h3>The HTML &lt;script&gt; Tag</h3><p>The &lt;script&gt; tag is used to define a client-side scrypt (JavaScript)</p><p>The &lt;script&gt; element either contains scripting statements, or it points to an external script file through the src attribute.</p><p>Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.</p><p>To select an HTML element, JavaScript very often use the document.getElementById(id) method.</p><p>This JavaScript writes “Hello JavaScript” into an HTML element with id= “demo”:</p><p>&lt;script&gt;<br>document.getElementById(“demo”).innerHTML = “Hello JavaScript!”;<br>&lt;/script&gt;</p><h3>A Taste of JavaScript</h3><p>JavaScript can change HTML content.</p><p>document.getElementById(“demo”).innerHTML = “Hello JavaScript!”;</p><p>JavaScript can change HTML styles</p><p>document.getElementById(“demo”).style.fontSize = “25px”;<br>document.getElementById(“demo”).style.color = “red”;<br>document.getElementById(“demo”).style.backgroundColor = “yellow”;</p><p>JavaScript can change HTML attributes</p><p>document.getElementById(“image”).src = “picture.gif”;</p><h3>The HTML &lt;noscript&gt; Tag</h3><p>the &lt;noscript&gt; tag is used to provide an alternate content for users that have disable scripts in their browser or have a browser that doesn’t support client-side scripts:</p><p>&lt;script&gt;<br>document.getElementById(“demo”).innerHTML = “Hello JavaScript!”;<br>&lt;/script&gt;</p><p>&lt;noscript&gt;Sorry, your browser does not support JavaScript!&lt;/noscript&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f3441d6dcfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Iframes]]></title>
            <link>https://medium.com/@caiochrm/html-iframes-8eee76a132bf?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eee76a132bf</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 12:49:49 GMT</pubDate>
            <atom:updated>2018-01-05T12:49:49.971Z</atom:updated>
            <content:encoded><![CDATA[<p>An ifram is used to display a web page within a web page.</p><h3>Iframe Syntax</h3><p>An HTML iframe is defined with the &lt;iframe&gt; tag:</p><p>&lt;iframe src=”<em>URL</em>”&gt;&lt;/iframe&gt;</p><p>The src attribute specifies the URL (web address) of the inline frame page.</p><h3>Iframe — Set Height and Width</h3><p>Use the height and width attributes to specificy the size of the iframe.</p><p>The attribute values are specified in pixels by default, but they can also be in percent (like 80%).</p><p>&lt;iframe src=”demo_iframe.htm” height=”200&quot; width=”300&quot;&gt;&lt;/iframe&gt;</p><h3>Iframe — Remove the Border</h3><p>By default, an ifram has a border around it.</p><p>To remove the border, add the style attribute and use the css border property.</p><p>&lt;iframe src=”demo_iframe.htm” style=”border:none;”&gt;&lt;/iframe&gt;</p><h3>Iframe — Target for a Link</h3><p>An iframe can be used as the target iframe for a link.</p><p>The target attribute of the link must refer to the name attribute of the iframe:</p><p>&lt;iframe src=”demo_iframe.htm” name=”iframe_a”&gt;&lt;/iframe&gt;</p><p>&lt;p&gt;&lt;a href=”https://www.w3schools.com&quot; target=”iframe_a”&gt;W3Schools.com&lt;/a&gt;&lt;/p&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eee76a132bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML the class Attribute]]></title>
            <link>https://medium.com/@caiochrm/html-the-class-attribute-13e132dc1154?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/13e132dc1154</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 12:43:24 GMT</pubDate>
            <atom:updated>2018-01-05T12:43:24.122Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using The class Attribute</h3><p>The class attribute specifies one or more class names for an HTML element.</p><p>The class name can be used by CSS and JavaScript to perform certain tasks for elements with the specified class name.</p><p>&lt;style&gt;<br><strong>.city</strong> {<br> background-color: tomato;<br> color: white;<br> padding: 10px;<br>} <br>&lt;/style&gt;</p><p>&lt;h2 <strong>class=”city”</strong>&gt;London&lt;/h2&gt;<br>&lt;p&gt;London is the capital of England.&lt;/p&gt;</p><p>&lt;h2 <strong>class=”city”</strong>&gt;Paris&lt;/h2&gt;<br>&lt;p&gt;Paris is the capital of France.&lt;/p&gt;</p><p>&lt;h2 <strong>class=”city”</strong>&gt;Tokyo&lt;/h2&gt;<br>&lt;p&gt;Tokyo is the capital of Japan.&lt;/p&gt;</p><h3>Using The class Attribute in JavaScript</h3><p>JavaScript can access elements with a specified class name by using the getElementsByClassNanme() method:</p><p>&lt;script&gt;<br>function myFunction() {<br> var x = <strong>document.getElementsByClassName(“city”)</strong>;<br> for (var i = 0; i &lt; x.length; i++) {<br> x[i].style.display = “none”;<br> }<br>}<br>&lt;/script&gt;</p><h3>Multiple Classes</h3><p>HTML element can have more than one class name, each class name must be separated by a space.</p><p>&lt;h2 class=”city main”&gt;London&lt;/h2&gt;<br>&lt;h2 class=”city”&gt;Paris&lt;/h2&gt;<br>&lt;h2 class=”city”&gt;Tokyo&lt;/h2&gt;</p><p>In the example above, the first h2 element belongs to both the “city” class and the “main” class.</p><h3>Same Class, Different Tag</h3><p>Diferents tags, like &lt;h2&gt; and &lt;p&gt;, can have the same class name and thereby share the same style:</p><p>&lt;h2 class=”city”&gt;Paris&lt;/h2&gt;<br>&lt;p class=”city”&gt;Paris is the capital of France&lt;/p&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13e132dc1154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Block and Inline Elements]]></title>
            <link>https://medium.com/@caiochrm/html-block-and-inline-elements-ff85597e0884?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff85597e0884</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 12:33:25 GMT</pubDate>
            <atom:updated>2018-01-05T12:33:25.482Z</atom:updated>
            <content:encoded><![CDATA[<p>Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline.</p><h3>Block-level Elements</h3><p>A block-level element always starts on a new line and takes up the full width available (stretches out the left and right as far as it can)</p><p>The &lt;div&gt; element is a block-level element.</p><h3>Inline Elements</h3><p>An inline element does not start on a new line and only takes up as much width as necessary.</p><p>The &lt;span&gt; element is a inline element.</p><h3>The &lt;div&gt; Element</h3><p>The &lt;div&gt; element is often used as a container for other HTML elements.</p><p>The &lt;div&gt; element has no required attributes, but both style and class are commom.</p><p>When used together with CSS, the &lt;div&gt; element can be used style blocks of content:</p><h3>The &lt;span&gt; Element</h3><p>The &lt;span&gt; element is often used as a container for some text.</p><p>The &lt;span&gt; element has no required attributes, but both style and class are common.</p><p>When used together with CSS, the &lt;span&gt; element can be used to style parts of the text:</p><p>&lt;h1&gt;My &lt;span style=”color:red”&gt;Important&lt;/span&gt; Heading&lt;/h1&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff85597e0884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Lists]]></title>
            <link>https://medium.com/@caiochrm/html-lists-3819744571b7?source=rss-277795fb36c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3819744571b7</guid>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Caio Martins]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 12:21:52 GMT</pubDate>
            <atom:updated>2018-01-05T12:21:52.632Z</atom:updated>
            <content:encoded><![CDATA[<p>Unordered HTML List</p><p>An unordered list starts with the &lt;ul&gt; tag. Each list item starts with the &lt;li&gt; tag.</p><p>THe list items will be marked with bullets (small black circles) by default:</p><p>&lt;ul&gt;<br> &lt;li&gt;Coffee&lt;/li&gt;<br> &lt;li&gt;Tea&lt;/li&gt;<br> &lt;li&gt;Milk&lt;/li&gt;<br>&lt;/ul&gt;</p><h3>Unordered HTML List — Choose List Item Marker</h3><p>The CSS list-style-type property is used to define the style of the list item marker:</p><p>disc- Sets the list item marker to a bullet(default)</p><p>circle- Sets the list ite marker to a circle</p><p>square- Sets the list item marker to a square</p><p>none- The list items will not be marked</p><h3>Ordered HTML List</h3><p>An ordered list starts with the e&lt;ol&gt; tag.Each list item starts with the &lt;li&gt; tag.</p><p>The list items will be marked with the numbers by default:</p><p>&lt;ol&gt;<br> &lt;li&gt;Coffee&lt;/li&gt;<br> &lt;li&gt;Tea&lt;/li&gt;<br> &lt;li&gt;Milk&lt;/li&gt;<br>&lt;/ol&gt;</p><h3>Ordered HTML List — The Type Attribute</h3><p>The type attribute of the &lt;ol&gt; tag, defines the type of the list item marker:</p><p>type= “1&quot;- The list items will be numbered with numbers (default)</p><p>type= “A”- The list items will be numbered with uppercase letters</p><p>type= “a”- The list items will be numbered with lowercase letters</p><p>type= “I”- The list items will be numbered with uppercase roman numbers</p><p>type= “i”- The list items will be numbered with lowercase roman numbers</p><p>&lt;ol type=”1&quot;&gt;<br> &lt;li&gt;Coffee&lt;/li&gt;<br> &lt;li&gt;Tea&lt;/li&gt;<br> &lt;li&gt;Milk&lt;/li&gt;<br>&lt;/ol&gt;</p><h3>HTML Description Lists</h3><p>HTML also supports descriptions lists.</p><p>A description list is a list of terms, with a description of each item.</p><p>The &lt;dl&gt; tag defines the description list, the &lt;dt&gt; tag defines the term (name), and the &lt;dd&gt; tag describes each term:</p><p>&lt;dl&gt;<br> &lt;dt&gt;Coffee&lt;/dt&gt;<br> &lt;dd&gt;- black hot drink&lt;/dd&gt;<br> &lt;dt&gt;Milk&lt;/dt&gt;<br> &lt;dd&gt;- white cold drink&lt;/dd&gt;<br>&lt;/dl&gt;</p><h3>Nested HTML Lists</h3><p>List can be nested (lists inside lists):</p><p>&lt;ul&gt;<br> &lt;li&gt;Coffee&lt;/li&gt;<br> &lt;li&gt;Tea<br> &lt;ul&gt;<br> &lt;li&gt;Black tea&lt;/li&gt;<br> &lt;li&gt;Green tea&lt;/li&gt;<br> &lt;/ul&gt;<br> &lt;/li&gt;<br> &lt;li&gt;Milk&lt;/li&gt;<br>&lt;/ul&gt;</p><h3>Horizontal Lists</h3><p>HTML lists can be styled in many different ways with CSS.</p><p>One popular way is to style a list horizontally, to create a menu:</p><p>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;style&gt;<br>ul {<br> list-style-type: none;<br> margin: 0;<br> padding: 0;<br> overflow: hidden;<br> background-color: #333333;<br>}</p><p>li {<br> float: left;<br>}</p><p>li a {<br> display: block;<br> color: white;<br> text-align: center;<br> padding: 16px;<br> text-decoration: none;<br>}</p><p>li a:hover {<br> background-color: #111111;<br>}<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;</p><p>&lt;ul&gt;<br> &lt;li&gt;&lt;a href=”#home”&gt;Home&lt;/a&gt;&lt;/li&gt;<br> &lt;li&gt;&lt;a href=”#news”&gt;News&lt;/a&gt;&lt;/li&gt;<br> &lt;li&gt;&lt;a href=”#contact”&gt;Contact&lt;/a&gt;&lt;/li&gt;<br> &lt;li&gt;&lt;a href=”#about”&gt;About&lt;/a&gt;&lt;/li&gt;<br>&lt;/ul&gt;</p><p>&lt;/body&gt;<br>&lt;/html&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3819744571b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>