<?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: zak</title>
    <description>The latest articles on DEV Community by zak (@zakken).</description>
    <link>https://dev.to/zakken</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%2F153719%2F8157459a-927a-4b5a-9b5a-a4528f5a859b.jpg</url>
      <title>DEV Community: zak</title>
      <link>https://dev.to/zakken</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zakken"/>
    <language>en</language>
    <item>
      <title>History and Basics of Html5 </title>
      <dc:creator>zak</dc:creator>
      <pubDate>Fri, 22 May 2020 20:53:57 +0000</pubDate>
      <link>https://dev.to/zakken/history-and-basics-of-html5-13hm</link>
      <guid>https://dev.to/zakken/history-and-basics-of-html5-13hm</guid>
      <description>&lt;p&gt;HTML(HyperText Markup Language) is a structured language, meaning it lets you identify specific parts of the web-page. &lt;br&gt;
Such as headings, footers, paragraphs, and lists, these are all in the form of elements. &lt;/p&gt;


&lt;h1&gt;
  
  
  Table of Contents
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Creating Web Pages with HTML&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Adding Style to HTML pages&lt;/li&gt;
&lt;li&gt;History of HTML&lt;/li&gt;
&lt;li&gt;Good Coding Practices&lt;/li&gt;
&lt;/ol&gt;


&lt;h3&gt;
  
  
  Creating Web Pages with HTML
&lt;/h3&gt;

&lt;p&gt;Web Pages are simply text documents that use the structure of HTML, to define how it should look in the browser. &lt;br&gt;
The section below displays an example of the structure of the HTML text document and what it looks like in the browser.&lt;/p&gt;


&lt;h4&gt;
  
  
  Html Structure
&lt;/h4&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;HTML&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Title of the webpage&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;http-equiv=&lt;/span&gt;&lt;span class="s"&gt;"content-type"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"text/html"&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;The is main the header within the html page&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;A Paragraph within the web page&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;A Item in a list&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;A Item in a list&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;A Item in a list&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;A Item in a list&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;A Item in a list&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;blockquote&gt;
&lt;p&gt;Web Image below&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwpkqc5y7h6s5sjqxcftc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwpkqc5y7h6s5sjqxcftc.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;
  
  
  Html Syntax
&lt;/h4&gt;
&lt;h6&gt;
  
  
  What is a HTML tag?
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;An &lt;strong&gt;html tag&lt;/strong&gt; can either be an opening tag or a closing tag, as stated below.&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;opening tag&lt;/strong&gt; contains an opening bracket (&amp;lt;) and a closing bracket (&amp;gt;) with the HTML element name between them. e.g. &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;closing tag&lt;/strong&gt; is the same as an opening tag except that it has a backslash (/) before the element name. e.g &lt;code&gt;&amp;lt;/h1&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;On another note, &lt;strong&gt;opening tag&lt;/strong&gt; can also have attributes, one example is an id, e.g. &lt;code&gt;&amp;lt;h1 id=1&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h6&gt;
  
  
  What is a element?
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;An element is a &lt;strong&gt;pair of HTML tags&lt;/strong&gt;, which contain content between the tags. e.g. &lt;code&gt;&amp;lt;h1&amp;gt;This is the Heading&amp;lt;/h1&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;There are many different types of elements, some of the basics ones are 

&lt;ul&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;head&lt;/li&gt;
&lt;li&gt;body&lt;/li&gt;
&lt;li&gt;h1&lt;/li&gt;
&lt;li&gt;p&lt;/li&gt;
&lt;li&gt;li&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Each element has a task of shaping the way content will display in the browser. &lt;/li&gt;
&lt;li&gt;Some elements have no end tag, these elements are known as &lt;code&gt;void elements&lt;/code&gt; because they contain no content but have an action, such as &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; which inserts a line break on the page.&lt;/li&gt;
&lt;li&gt;If you want some more info on the difference between an element and a tag check &lt;a href="https://en.wikipedia.org/wiki/HTML_element#Elements_vs._tags" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;
  
  
  The Basic Structure of html elements in a document
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Doctype&lt;/code&gt; -&amp;gt; This element specifies the &lt;strong&gt;rules for the document language&lt;/strong&gt; which in turn allows the browser to &lt;strong&gt;interpret and display&lt;/strong&gt; the code properly.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;html&lt;/code&gt; -&amp;gt; This is considered the &lt;strong&gt;root element&lt;/strong&gt; of the page, as it is the &lt;strong&gt;container element&lt;/strong&gt; for all other elements.

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;head&lt;/code&gt; -&amp;gt; This element contains information that &lt;strong&gt;describes the document&lt;/strong&gt;.

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;title&lt;/code&gt; -&amp;gt; Specifies the the &lt;strong&gt;name of the document&lt;/strong&gt;, which displays in the &lt;strong&gt;page tab&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;meta&lt;/code&gt; -&amp;gt; defines the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type" rel="noopener noreferrer"&gt;content type&lt;/a&gt; and specifies 
the &lt;a href="https://www.w3.org/International/getting-started/characters#what" rel="noopener noreferrer"&gt;Character Set&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;body&lt;/code&gt; -&amp;gt; This element section &lt;strong&gt;displays the page content&lt;/strong&gt; 

&lt;ul&gt;
&lt;li&gt;Most things within the body displays content on the page, a few elements are:&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;li&lt;/code&gt; -&amp;gt; displays a list item in a list element, such as &lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;ul&amp;gt;&lt;/code&gt; &lt;/li&gt;
&lt;li&gt;
&lt;code&gt;p&lt;/code&gt; -&amp;gt; displays a paragraph on the page.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;h1 -&amp;gt; h6&lt;/code&gt; -&amp;gt; displays page headings, decreases in size with higher values.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Adding Style to HTML pages
&lt;/h3&gt;

&lt;p&gt;To alter the looks of a web page, web designers use a styling language called &lt;strong&gt;Cascading Style Sheets (CSS)&lt;/strong&gt;. Using this language you can alter many things, such as &lt;strong&gt;color&lt;/strong&gt;, &lt;strong&gt;typography&lt;/strong&gt;, &lt;strong&gt;page layout&lt;/strong&gt;, and even &lt;strong&gt;page disposition on different devices&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To include a style sheet in the document, either use the &lt;code&gt;&amp;lt;style&amp;gt;... style rules ...&amp;lt;/style&amp;gt;&lt;/code&gt; element nested within the &lt;strong&gt;head element&lt;/strong&gt; or import it using the link element e.g. &lt;code&gt;&amp;lt;link type="text/css" rel="stylesheet" href='style.css' /&amp;gt;&lt;/code&gt; which should also be in the head element.&lt;/p&gt;
&lt;h4&gt;
  
  
  CSS Syntax
&lt;/h4&gt;

&lt;p&gt;The style rules inside the CSS stylesheet determines the characteristics of the HTML, these rules require a certain format. &lt;/p&gt;
&lt;h6&gt;
  
  
  Example:
&lt;/h6&gt;



&lt;p&gt;&lt;code&gt;p {color: red;};&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Explanation below&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h6&gt;
  
  
  The Selector
&lt;/h6&gt;

&lt;p&gt;The selector in the example above is the &lt;code&gt;p&lt;/code&gt; element, meaning that the &lt;code&gt;p&lt;/code&gt; element in the HTML document will be affected. &lt;/p&gt;

&lt;h6&gt;
  
  
  The Declaration
&lt;/h6&gt;

&lt;p&gt;The Declaration is &lt;code&gt;{color: red;}&lt;/code&gt;, what this means is that we want the &lt;code&gt;p element&lt;/code&gt; to be defined by whatever is within the brackets, in this case, the &lt;code&gt;p element&lt;/code&gt; color will be red. &lt;/p&gt;




&lt;h3&gt;
  
  
  History of HTML
&lt;/h3&gt;

&lt;p&gt;There are many HTML coding practices in the world, understanding a few of them will help you recognize a few web design methods, an example would be a site that still uses a table to structure content on their website, this design method has become obsolete, being replaced with the use of CSS.&lt;/p&gt;

&lt;p&gt;The person to propose HTML, was &lt;a href="https://en.wikipedia.org/wiki/Tim_Berners-Lee" rel="noopener noreferrer"&gt;Tim Berners-Lee&lt;/a&gt; at the European Laboratory for Particle Physics(CERN) in 1989.&lt;br&gt;
The reason he proposed this idea was due to the need for a way to easily manage and share information among colleagues over the internet.&lt;br&gt;
In that period, the difficulty of using the internet for exchanging files and messages, resulted in only a few specialists in science, military, and academia to use the internet. Mr. Berners-Lee was able to solve this issue by joining the ideas of a simple tool for reading documents (Browser), with a set of rules for creating a markup language(HTML), and a protocol of communication that allowed the sharing of documents. This is currently known as Uniform Resource Locators(URLs). This simple structure made the use of the internet available to the general public.&lt;/p&gt;

&lt;p&gt;When Mr. Berners Lee developed the idea of documents hosted on hypertext servers and connected by URLs, he created a simplified version of &lt;a href="https://en.wikipedia.org/wiki/Standard_Generalized_Markup_Language" rel="noopener noreferrer"&gt;Standard Generalized Markup Language (SGML)&lt;/a&gt; (standard for document Structures), which he named HTML. Mr. Berners Lee took only the necessary elements from SGML for basic office use, such as generating structured reports. &lt;br&gt;
The first version of HTML contained roughly around 20 elements such as &lt;strong&gt;titles&lt;/strong&gt;, &lt;strong&gt;heads&lt;/strong&gt;, and &lt;strong&gt;paragraphs&lt;/strong&gt;.&lt;/p&gt;
&lt;h6&gt;
  
  
  HTML Standards
&lt;/h6&gt;

&lt;p&gt;As HTML came into existence and the initial surge of interest in HTML grew, an organization by the name of &lt;strong&gt;World Wide Web Consortium (W3C)&lt;/strong&gt; was founded to create standards and best practices for the web. &lt;/p&gt;

&lt;p&gt;After W3C was founded, the interest in the web grew exponentially. This resulted in companies realizing that they needed a footprint on the web. Publishing companies then started to create their paper-based advertisement on the web, meaning they needed to hire print designers which are now known as &lt;strong&gt;web designers&lt;/strong&gt;.&lt;br&gt;
HTML was a designer's horror, as it was not initially designed for the multi-column page such as in a newspaper, each browser generated the HTML differently thereby making it browser-specific and at that time most monitors were 640x480 resolution that only supported 256 colors... &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A grim time indeed.  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When HTML Tables came into play, it became most designers favored way of building pages, due to being able to build multi-column pages. &lt;/p&gt;

&lt;p&gt;Most web browsers were forgiving of non-standard HTML code, this meant that web designers eventually understood that they can manipulate the code as they wanted since there was a very good chance that the content would look fine on the web. For example, if you left out &lt;strong&gt;closing tags&lt;/strong&gt; or used tags in the wrong order, the page would still be generated.&lt;/p&gt;

&lt;p&gt;HTML 4.01 was released in 1999, this tried to address multiple issues. Such as separating style from HTML  which led to deprecating the font element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;History of HTML Releases&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;th&gt;Date Release&lt;/th&gt;
&lt;th&gt;Features&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;HTML 1.1&lt;/td&gt;
&lt;td&gt;1992&lt;/td&gt;
&lt;td&gt;Initial Proposal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML 2&lt;/td&gt;
&lt;td&gt;1995&lt;/td&gt;
&lt;td&gt;Viewable By Browsers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML 3.2&lt;/td&gt;
&lt;td&gt;1997&lt;/td&gt;
&lt;td&gt;Forms and Tables Introduced&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML 4.01&lt;/td&gt;
&lt;td&gt;1999&lt;/td&gt;
&lt;td&gt;Style Sheets and Scripting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML 5&lt;/td&gt;
&lt;td&gt;2014&lt;/td&gt;
&lt;td&gt;Page Layout Elements (audio,visual,animation elements)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML 5.1&lt;/td&gt;
&lt;td&gt;2016&lt;/td&gt;
&lt;td&gt;New elements and attributes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h6&gt;
  
  
  XML and XHTML
&lt;/h6&gt;

&lt;p&gt;XML known as &lt;strong&gt;Extensible Markup Language&lt;/strong&gt; was released after HTML 4.01 in 1997, XML was &lt;strong&gt;W3C's attempt&lt;/strong&gt; to move in a different direction with a markup language and was not a forced replacement of HTML. Some part of the reason was due to many people joining and using the web, this attracted bigger corporations such as banks and created online stores which led to the pushing of a stricter language. XML is a stricter language than HTML, as it has to be syntactically correct to be processed by a parser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Things unique to XML:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One error in the XML documents will prevent it from being processed, as when compared to less strict HTML&lt;/li&gt;
&lt;li&gt;XML lets developers define their markup language, meaning they can create a set of elements that match existing things, like town or city, and then be able to match those elements to the tables in the database.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;XML looks similar to HTML with some syntactical differences.&lt;br&gt;
The example below shows what an XML document structure can look like.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;book&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;name&amp;gt;&lt;/span&gt;New Book&lt;span class="nt"&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;chapter&amp;gt;&lt;/span&gt;Chap 1&lt;span class="nt"&gt;&amp;lt;/chapter&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;chapter&amp;gt;&lt;/span&gt;Chap 2&lt;span class="nt"&gt;&amp;lt;/chapter&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;chapter&amp;gt;&lt;/span&gt;Chap 3&lt;span class="nt"&gt;&amp;lt;/chapter&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;chapter&amp;gt;&lt;/span&gt;Chap 4&lt;span class="nt"&gt;&amp;lt;/chapter&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/book&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above example looks like HTML, but with no valid HTML tags. Unlike HTML, XML is not recognizable by browsers and will not know how to display the information, therefor CSS is used to structure the elements of XML on the page.&lt;/p&gt;

&lt;p&gt;W3C understood that XML could fix the issue of the wide variety of coding styles with regards to HTML. This further pushed the movement of evolving XML as a language standard. So that the entire web could use a unified language syntax. Eventually W3C joined HTML and XML, keeping the attributes and elements of HTML and named it &lt;strong&gt;XHTML (Extensible HyperText Markup Language)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The rules for XHTML are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There must be closing tags&lt;/li&gt;
&lt;li&gt;All tags must be correctly nested&lt;/li&gt;
&lt;li&gt;Attributes must be contained in quotation marks&lt;/li&gt;
&lt;li&gt;Element names must be in lower case&lt;/li&gt;
&lt;li&gt;The documents must be well formatted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The issue with XHTML&lt;/strong&gt; was that many developers did not want to learn the intricacies of XHTML and many websites still used legacy coding methods, meaning they did not want to change something that already works, an old saying of &lt;code&gt;if it ain't broke don't fix it&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Dissatisfaction began to rise in the programming community, when W3C proposed their first draft of XHTML 2.0 which was not backward compatible with XHTML 1.0 or HTML 4 and even removed HTML elements that were currently in use such as &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;. Which led to a new HTML version started by a community effort.  &lt;/p&gt;

&lt;h6&gt;
  
  
  HTML5
&lt;/h6&gt;

&lt;p&gt;In 2004 an independent group of vendors and browser representatives of the web development community joined together to propose HTML5 as a better step forward rather than XHTML 2.0, this group was known as the &lt;strong&gt;Web Hypertext Application Technology Working Group(WHATWG)&lt;/strong&gt;. &lt;br&gt;
In 2007 the W3C announced that they would restart the support for HTML, and in 2009 they mostly dropped support of XHTML 2.0.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With the coming of HTML5 a few features of older HTML versions where removed, and a few added:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Removed  - Display elements in favor of CSS usage.&lt;/li&gt;
&lt;li&gt;Removed  - Frames and Frame-sets.&lt;/li&gt;
&lt;li&gt;Added    - Support for looser coding style and stricter syntax usage.&lt;/li&gt;
&lt;li&gt;Added    - Application usage, such as local storage, drag and drop, background data processing.&lt;/li&gt;
&lt;li&gt;Added    - logical data sectioning, such as &lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Added    - Animations that play directly in the browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Choosing the Correct Mime and Document Type
&lt;/h6&gt;

&lt;blockquote&gt;
&lt;p&gt;For the web page to display correctly, a Doctype and Mime type is needed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Document Type&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;!DOCTYPE&amp;gt;&lt;/code&gt; statement came from &lt;strong&gt;SGML&lt;/strong&gt; and was used to define a &lt;strong&gt;Document Type Definition(DTD)&lt;/strong&gt; which contained rules for HTML or XML. &lt;/p&gt;

&lt;p&gt;HTML5 is no longer based on SGML, so the DOCTYPE is mainly used to display the page in standard mode, without the doctype the page will be displayed in quirks mode, which is browser specific rules for rendering the page without a standard specification such as W3C rules. &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=FZTZBd33Ys8" rel="noopener noreferrer"&gt;This&lt;/a&gt; is a good display of the difference between quirks and standards mode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mime Type&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Mime &lt;strong&gt;(Multipurpose Internet Mail Extensions)&lt;/strong&gt; came into existence as an email standard, and from there was brought into the web. The Mime type shows the type of document you are presenting, this means that it is used by the browser to determine the type of content you are presenting&lt;br&gt;
and how it should be rendered.&lt;/p&gt;




&lt;h3&gt;
  
  
  Good Coding Practices
&lt;/h3&gt;

&lt;p&gt;The best way to implement the best practices is to follow the following guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stick to the standards&lt;/li&gt;
&lt;li&gt;Use semantic markup&lt;/li&gt;
&lt;li&gt;validate your code&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Stick to the standards
&lt;/h6&gt;

&lt;p&gt;If you want to stick to the standards (unlike most), then simply just strictly follow the guidelines set out by W3C.&lt;br&gt;
This involves creating web sites that are accessible to the widest range of browsers and operating systems, as-well-as using CSS to overcome browser limitations and create a visually appealing website.   &lt;/p&gt;

&lt;h6&gt;
  
  
  Use semantic code
&lt;/h6&gt;

&lt;p&gt;Using Semantic code is the act of using markup for it's intended purpose. For instance, using &lt;code&gt;h1&lt;/code&gt; for an actual headings or using &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt; for their intended purpose.   &lt;/p&gt;

&lt;h6&gt;
  
  
  Validate your code
&lt;/h6&gt;

&lt;p&gt;Validating your HTML code is as simple as uploading your file to &lt;a href="https://validator.w3.org/#validate_by_uri+with_options" rel="noopener noreferrer"&gt;https://validator.w3.org/#validate_by_uri+with_options&lt;/a&gt;, &lt;br&gt;
and fixing the errors that are returned.&lt;/p&gt;

</description>
      <category>html</category>
      <category>beginners</category>
      <category>basics</category>
    </item>
  </channel>
</rss>
