<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Setor Kwame</title>
    <description>The latest articles on DEV Community by Setor Kwame (@setorkwame).</description>
    <link>https://dev.to/setorkwame</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F833648%2F49136c68-d635-4303-a51d-e6cf1ed935f0.jpg</url>
      <title>DEV Community: Setor Kwame</title>
      <link>https://dev.to/setorkwame</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/setorkwame"/>
    <language>en</language>
    <item>
      <title>The Definitive Guide to HTML Block Level and Inline Level Elements</title>
      <dc:creator>Setor Kwame</dc:creator>
      <pubDate>Wed, 17 Aug 2022 16:27:00 +0000</pubDate>
      <link>https://dev.to/setorkwame/the-definitive-guide-to-html-block-level-and-inline-level-elements-2bnb</link>
      <guid>https://dev.to/setorkwame/the-definitive-guide-to-html-block-level-and-inline-level-elements-2bnb</guid>
      <description>&lt;p&gt;In your journey as a web developer, one thing you will need understanding of to make web development smooth is the concept of block level and inline level elements in your HTML. An understanding of these elements and the properties will aid you in styling your HTML with little to no hassle.&lt;/p&gt;

&lt;h1&gt;
  
  
  What are the Differences between Block Level and Inline Level HTML Elements?#
&lt;/h1&gt;

&lt;p&gt;HTML element types can be divided into two categories - block level elements and inline level elements. &lt;/p&gt;

&lt;p&gt;Block level elements start on a new line and take up the entire width of a page and by default the browser automatically adds some space (a margin) before and after the element.&lt;br&gt;
Some block level elements include:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;hr&amp;gt;
&amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;ul&amp;gt;&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Block level elements by default are set to a display of block and to be able to 'hack' into their default setting and manipulate their behavior, one will have to reassign the value of the display property to an inline, or flex or whatever value they will prefer.&lt;/p&gt;

&lt;p&gt;Inline level elements do not start on a new line but instead flow with text around them and only takes up as much width as necessary. Here are some in-line level elements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;button&amp;gt;&amp;lt;/button&amp;gt;
&amp;lt;img&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To be able to change the default behavior of an in-line level element, one will have to change the value of its, display property to a block or any desired value.&lt;/p&gt;

&lt;p&gt;That's all there is to it. Nothing complex here. So the next time you are trying to position or align an element that isn't responding, check what type of element it is and let this short article be your guide.&lt;/p&gt;

</description>
      <category>html</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Web Standards: A Declaration (Doctypes and Charsets)</title>
      <dc:creator>Setor Kwame</dc:creator>
      <pubDate>Sat, 06 Aug 2022 09:53:00 +0000</pubDate>
      <link>https://dev.to/setorkwame/web-standards-a-declaration-doctypes-and-charsets-4iom</link>
      <guid>https://dev.to/setorkwame/web-standards-a-declaration-doctypes-and-charsets-4iom</guid>
      <description>&lt;p&gt;Doctype and charset are two meta tags that declare to the browser the type of document the browser is to expert. Doctype declares to the browser about the author's view about a document such as whether a document is XHTML or HTML and it also dictates the code that a browser should proceed with. The charset is used by the browser so that it knows which character encoding should be read by it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fCuT6Des--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9h1yhs42ar2i8998z10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fCuT6Des--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9h1yhs42ar2i8998z10.png" alt="Image description" width="880" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The doctype declaration is the first line of a document and contains information about the type of document being used. It is also known as the Document Type Declaration or DTD.&lt;/p&gt;

&lt;p&gt;The most common doctypes are HTML5 and XHTML 1.1. The HTML5 doctype has been around since 2004, but it was not supported by all browsers until sometime around 2010/2011. The XHTML 1.1 doctype is also widely used today.&lt;/p&gt;

&lt;p&gt;There are many other types of doctypes that can be used for different purposes, such as for XML documents or even for CSS stylesheets.&lt;/p&gt;

&lt;p&gt;The main reason why you should use a doctype declaration is to inform the browser what type of document it should expect to receive from you (in case there's no content-type header sent). Without a doctype declaration, browsers would simply assume that they were receiving plain text and would render your page differently (and probably incorrectly) than expected.&lt;/p&gt;

&lt;p&gt;In addition to informing the browser about what kind of document it should expect, a doctype declaration usually also provides some additional information about how it should interpret your markup (things like which elements can be used and what attributes they may have).&lt;/p&gt;

&lt;p&gt;Without a doctype declaration, the browser will assume that you don't care about how it renders your page (and therefore don't care about the markup being valid or not). &lt;/p&gt;

&lt;p&gt;The doctype declaration for HTML5 is pretty simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This basically informs the browser that it should interpret any markup it finds as HTML5. This makes sense since it's likely that you're using HTML5 to build your page in the first place.&lt;/p&gt;

&lt;p&gt;In the end, which doctype you chose will depend on which one best fits your website and your audience. Is it a blog, a portfolio site, or a news site? This will help determine which doctype you choose. But in the end, there is no wrong answer—each doctype has its own positives and negatives. It's easy to get caught up in doctype wars with developers—but really, neither side is right or wrong. Ultimately, it comes down to what works for you.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>HTML5 is the Future of Web Design! But What is it? A blog about HTML5 and how it's changing the web.</title>
      <dc:creator>Setor Kwame</dc:creator>
      <pubDate>Sun, 20 Mar 2022 16:02:00 +0000</pubDate>
      <link>https://dev.to/setorkwame/semantics-in-my-html-3a8f</link>
      <guid>https://dev.to/setorkwame/semantics-in-my-html-3a8f</guid>
      <description>&lt;p&gt;If you have heard of HTML before, but don't really know what it is just yet. HTML is a markup language you can use to build websites and applications. You are probably thinking, “why do I need more than one language to build a website?” The answer is simple: HTML and CSS work together to provide the structure of your website while providing the styles and other visual hooks that can be accomplished with CSS.&lt;/p&gt;

&lt;p&gt;The web has changed a lot over the past two decades. We've gone from just hyperlinks and paragraphs to fully multimedia experiences that can only be created with HTML, CSS, and PHP (or JavaScript). So, as part of the HTML5 standard, we have a whole new way to build these beautiful experiences.&lt;/p&gt;

&lt;p&gt;HTML5 is an upcoming major version of the HTML standard. It introduces several new elements and extends many of the existing elements. &lt;/p&gt;

&lt;p&gt;HTML5 is a major revision of the HTML standard. It includes new structures and tags, such as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;section&amp;gt;, &amp;lt;time&amp;gt;, and &amp;lt;article&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also provides support for multimedia and more semantic markup.  The main goal of HTML5 is to create a standard that can be used across all devices, including mobile phones and tablets. &lt;/p&gt;

&lt;p&gt;The new elements in HTML5 can be used to make your website more semantic, or “meaningful” for the browser to be able to read the website. This means that instead of using tags like &lt;/p&gt; to organize your content, you should use the new semantic tags that HTML5 has introduced.  Here is a list of some of the new elements;&lt;br&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;header&amp;gt;, &amp;lt;section&amp;gt;, &amp;lt;article&amp;gt;, &amp;lt;time&amp;gt;, &amp;lt;nav&amp;gt;, &amp;lt;footer&amp;gt;, &amp;lt;aside, &amp;lt;figcaption&amp;gt;

&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;etc.&lt;/p&gt;

&lt;p&gt;HTML5 also helps with accessibility with the introduction of attributes such as alt. For example, people who use screen readers can more easily navigate your site because they are able to find what they need by reading the tags instead of just relying on images and CSS styling.  Lastly, search engines such as Google will be able to better understand what is going on in each section of your page and determine how relevant it is to their users.&lt;/p&gt;

&lt;p&gt;One important thing to note is that while HTML5 has introduced many new tags, it hasn’t removed any of the old ones.  So you can still use the&lt;br&gt;
&lt;/p&gt;

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



&lt;p&gt;and other legacy tags if you want to.&lt;/p&gt;

&lt;p&gt;You can read more about how to use HTML5 elements here: &lt;a href="https://developers.google.com/webmasters/guides/best-practices#semantic_markup"&gt;https://developers.google.com/webmasters/guides/best-practices#semantic_markup&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Although it's quite complex, understanding HTML5 is well worth the effort considering the newest and coolest features that it brings. For example, you can now create interactive elements that respond to user input. This means that you can make buttons that change color or move around the page when a user clicks them.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
