{"id":9898,"date":"2010-04-10T04:15:19","date_gmt":"2010-04-10T04:15:19","guid":{"rendered":"https:\/\/www.amitbhawani.com\/blog\/?p=9898"},"modified":"2010-04-10T04:16:07","modified_gmt":"2010-04-10T04:16:07","slug":"html5-html4-comparison","status":"publish","type":"post","link":"https:\/\/www.amitbhawani.com\/blog\/html5-html4-comparison\/","title":{"rendered":"HTML5 vs HTML4 Tags &#038; Elements Comparison"},"content":{"rendered":"<p>Years back the first computer language i learnt by reading a book and practicing on my computer was the HTML. The awesome book which i still own is called as the &#8216;Black Book of HTML&#8217; a recommended publication for anyone who has just started learning about the computers and programming because this is something which could be the base of all. Time passed away and now we are into the era of <a href=\"https:\/\/www.amitbhawani.com\/blog\/learn-html5-tutorial-tips\/\">HTML5<\/a> where the HTML elements are handled with better rules and lower number of errors. Most of the Tags are still the same but there are a few new Tags being introduced which directly make you understand the element you are referring to.<\/p>\n<p>The new functions, tags introduced in the HTML 5 are useful in directly embedding video files, audio files, graphics, data storage and documents. There are thousands of companies which implement this like the Apple iPad which supports HTML5 and does not support Adobe Flash which is the very reason developers are more interested in this and are learning about all the new tags.<\/p>\n<p>You can understand <a href=\"https:\/\/www.amitbhawani.com\/blog\/what-is-html5\/\">What is HTML5<\/a> from our other article, but in this article we are going to give you a short example on how these Markups would look and would it be easy to write them and also understand them at the same time.<\/p>\n<p>Here is a HTML4 based Mark up which gives you a brief idea on the Elements used in the current time. While most of the Blogs would have a header, then the design is divided into different columns or sections being the content and sidebars, hence the Markup codes would show it under the sidebar, post class followed by the last footer section which is also the closing part.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML4-Blog-Markup-Codes.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"HTML4 Blog Markup Codes\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML4-Blog-Markup-Codes.png?resize=400%2C214\" alt=\"HTML4 Blog Markup Codes\" width=\"400\" height=\"214\" \/><\/a><\/p>\n<p>It was analyzed by the HTML 5 Editor from Google that out of Billions of pages, the website developers were using footer, header, nav, menu, content, and main tags more often and in HTML4 they could not Mark up the footer or header elements of its own, hence it was needed for a better version of HTML. The following sample of code is based on the HTML 5 Mark up.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Blog-Markup-Codes.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9907\" title=\"HTML5 Blog Markup Codes\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Blog-Markup-Codes.png?resize=400%2C214\" alt=\"HTML5 Blog Markup Codes\" width=\"400\" height=\"214\" srcset=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Blog-Markup-Codes.png?w=400&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Blog-Markup-Codes.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Blog-Markup-Codes.png?resize=150%2C80&amp;ssl=1 150w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>You can easily find the difference between both the HTML versions where in all the elements are marked in such a way that you can easily understand them.<\/p>\n<p><strong>Sample Mark Up Code :<\/strong> Here is a sample code which would be the beginning of writing a page based on HTML5.<br \/>\n<code>&lt;body&gt;<br \/>\n  &lt;header&gt;...&lt;\/header&gt;<br \/>\n  &lt;nav&gt;...&lt;\/nav&gt;<br \/>\n  &lt;article&gt;<br \/>\n    &lt;section&gt;<br \/>\n      ...<br \/>\n    &lt;\/section&gt;<br \/>\n  &lt;\/article&gt;<br \/>\n  &lt;aside&gt;...&lt;\/aside&gt;<br \/>\n  &lt;footer&gt;...&lt;\/footer&gt;<br \/>\n&lt;\/body&gt;<\/code><\/p>\n<p>The whole code is marked up in such a way that anyone can easily recognize them and find out the value of the same. The Header Tag is listed under the body section and it represents the Header Part of the page which can include sub-headings and by lines as shown below.<\/p>\n<p><code>&lt;header&gt;<br \/>\n  &lt;h1&gt;Understanding HTML 5&lt;\/h1&gt;<br \/>\n  &lt;p class=&quot;byline&quot;&gt;By Amit Bhawani&lt;\/p&gt;<br \/>\n&lt;\/header&gt;<\/code><br \/>\n<code>&lt;header&gt;<br \/>\n  &lt;h1&gt;Amit Bhawani Blog&lt;\/h1&gt;<br \/>\n  &lt;h2&gt;Learn Technology in Simple Ways&lt;\/h2&gt;<br \/>\n&lt;\/header&gt;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Years back the first computer language i learnt by reading a book and practicing on my computer was the HTML. The awesome book which i still own is called as the &#8216;Black Book of HTML&#8217; a recommended publication for anyone who has just started learning about the computers and programming because this is something which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19728,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1310],"tags":[],"class_list":{"0":"post-9898","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-guides","8":"entry"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/HTML4-Blog-Markup-Codes.png?fit=400%2C214&ssl=1","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9900,"url":"https:\/\/www.amitbhawani.com\/blog\/what-is-html5\/","url_meta":{"origin":9898,"position":0},"title":"What is HTML5","author":"Amit Bhawani","date":"April 10, 2010","format":false,"excerpt":"HTML5 - The Next Step In Internet Evolution The World Wide Web has come along ways since the early days of silent, frozen, simple text based pages with low quality graphics. The days when we were amazed if a company even had a website are long gone. And the advent\u2026","rel":"","context":"In &quot;What is Guide&quot;","block_context":{"text":"What is Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/what-is\/"},"img":{"alt_text":"HTML5 Logo","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/HTML5-Logo.jpg?fit=400%2C321&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5437,"url":"https:\/\/www.amitbhawani.com\/blog\/embed-pdf-doc-files-blog-posts\/","url_meta":{"origin":9898,"position":1},"title":"How to Embed PDF &#038; Doc Files in Web Pages","author":"Amit Bhawani","date":"August 21, 2009","format":false,"excerpt":"I run a stock markets related blog where i write on different companies on a daily basis and keep linking to their income and revenue reports on regular basis in order to keep my visitors updated on the news related to different companies where they invest. Generally i host all\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"Scribd","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/08\/scribd-logo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":10623,"url":"https:\/\/www.amitbhawani.com\/blog\/download-multiple-images-from-flickr-high-quality-pictures\/","url_meta":{"origin":9898,"position":2},"title":"Download Multiple Images from Flickr &#8211; High Quality Pictures","author":"Amit Bhawani","date":"April 28, 2010","format":false,"excerpt":"Am looking to download around 380 Original High Quality Photos from one of my friends Flickr account which were snapped on our recent holiday but it seems like there is no direct option for this. I have been clicking on each of the photos and then clicking on the option\u2026","rel":"","context":"In &quot;Web Tools&quot;","block_context":{"text":"Web Tools","link":"https:\/\/www.amitbhawani.com\/blog\/category\/web-tools\/"},"img":{"alt_text":"Bulk Download Flickr Photos","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/Bulk-Download-Flickr-Photos-1-300x242.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":14443,"url":"https:\/\/www.amitbhawani.com\/blog\/add-tags-google-places-listing-increase-business-customers\/","url_meta":{"origin":9898,"position":3},"title":"Add Google Tags to Google Places Listing to Increase Business Customers","author":"Amit Bhawani","date":"September 21, 2010","format":false,"excerpt":"Google Places is one of the best service when you are looking to convert the Online visitors reach your offline business and the scope of this opportunity is just increasing every single day. Most of the Business locations in known cities and towns are listed on the Google Maps and\u2026","rel":"","context":"In &quot;Google&quot;","block_context":{"text":"Google","link":"https:\/\/www.amitbhawani.com\/blog\/category\/google\/"},"img":{"alt_text":"Google Places Tags Logo","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/09\/Google-Places-Tags-Logo.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":280,"url":"https:\/\/www.amitbhawani.com\/blog\/automatic-internal-tags-link-building-in-wordpress-for-better-seo\/","url_meta":{"origin":9898,"position":4},"title":"Automatic Internal Tags Link Building in WordPress for better SEO","author":"Amit Bhawani","date":"December 23, 2007","format":false,"excerpt":"Do you have the latest version of wordpress on our blog? If yes you can find the in built Tags feature which can be used in each of your blog posts. Now you can use these tags as a great Internal pages link building tools but using a wordpress plugin\u2026","rel":"","context":"In &quot;Wordpress Guide&quot;","block_context":{"text":"Wordpress Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10593,"url":"https:\/\/www.amitbhawani.com\/blog\/best-how-to-articles-for-computer-users\/","url_meta":{"origin":9898,"position":5},"title":"Best How To Articles for Computer Users","author":"Amit Bhawani","date":"April 27, 2010","format":false,"excerpt":"We have compiled a list of some of the best How To Articles which are mainly useful for Computer Users who keep searching for tutorials and helpful tips. This list is some of the best read articles. How to Access Blocked Websites at School Office or work How to Access\u2026","rel":"","context":"In &quot;Best Rated&quot;","block_context":{"text":"Best Rated","link":"https:\/\/www.amitbhawani.com\/blog\/category\/best-rated\/"},"img":{"alt_text":"How To Topics","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/how-to-topics.gif?fit=473%2C480&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/9898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/comments?post=9898"}],"version-history":[{"count":0,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/9898\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media\/19728"}],"wp:attachment":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media?parent=9898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/categories?post=9898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/tags?post=9898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}