{"id":93835,"date":"2022-06-10T15:56:42","date_gmt":"2022-06-10T13:56:42","guid":{"rendered":"https:\/\/happybrain.it\/?p=93835"},"modified":"2022-06-10T16:52:28","modified_gmt":"2022-06-10T14:52:28","slug":"html-5-1","status":"publish","type":"post","link":"https:\/\/happybrain.it\/en\/2022\/06\/10\/html-5-1\/","title":{"rendered":"HTML 5.1"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column column_width_percent=&#8221;80&#8243; gutter_size=&#8221;3&#8243; overlay_alpha=&#8221;50&#8243; shift_x=&#8221;0&#8243; shift_y=&#8221;0&#8243; shift_y_down=&#8221;0&#8243; z_index=&#8221;0&#8243; medium_width=&#8221;0&#8243; mobile_width=&#8221;0&#8243; width=&#8221;1\/1&#8243;][vc_empty_space empty_h=&#8221;1&#8243;][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;146632&#8243;]HyperText Markup Language[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;140117&#8243;]<span style=\"font-weight: 400\">Everything you see within a website is created by numbers, words, functions, angle brackets, tags and formulas. <\/span><span style=\"font-weight: 400\">It\u2019s not a carnival&#8230; It\u2019s a markup language, or rather, what at the beginning was known to most as <\/span><b>hypertext<\/b><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><b>HTML <\/b><span style=\"font-weight: 400\">(acronym for &#8220;<\/span><b>hypertext Markup Language<\/b><span style=\"font-weight: 400\">&#8220;) creates everything you see inside a website: texts, images, videos, links, buttons and much more!\u00a0<\/span><span style=\"font-weight: 400\">Over time it has been updated and changed in several new versions, to facilitate web developers and also optimize usability and user-side appearance. <\/span><b>Images<\/b><span style=\"font-weight: 400\">, <\/span><b>animations<\/b><span style=\"font-weight: 400\"> and <\/span><b>dynamic feature<\/b><span style=\"font-weight: 400\">s have been brought to the fore, and mobile rendering is of paramount importance.\u00a0<\/span><span style=\"font-weight: 400\">The latest language released is <\/span><b>HTML5<\/b><span style=\"font-weight: 400\">, released in 2016 and recently updated to version 5.1.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Are you curious to discover all the news of the latest update of this markup language?&#8230;\u00a0<\/span><span style=\"font-weight: 400\">continue reading!<\/span>[\/vc_column_text][vc_single_image media=&#8221;93858&#8243; media_width_percent=&#8221;100&#8243; alignment=&#8221;center&#8221; uncode_shortcode_id=&#8221;383971&#8243;][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;122986&#8243;]<span style=\"font-weight: 400\">The easy submenu<\/span>[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;249123&#8243;]<span style=\"font-weight: 400\">In e-commerce pages or rather structured institutional sites, we may need to insert a submenu that opens at the right click.\u00a0<\/span><span style=\"font-weight: 400\">Before HTML5.1 it was necessary to work with blocks and sub-elements side CSS and Javascript. The new version of the markup language simplifies everything by giving the possibility to create <\/span><b>sub-menus<\/b><span style=\"font-weight: 400\"> that extend the context menu of the browser by right-clicking on the element.<\/span><\/p>\n<p><b><i>The appropriate tags are &lt;menu&gt; to create the main container and &lt;menuitem&gt; to create the subheadings. To set this feature we will have to put the two attributes: type=&#8221;context&#8221; and the id. The id is what connects the menu to the click on an element, to which must be added the contextmenu attribute enhanced with the id of the context menu, in turn composed of one or more &lt;menuitem&gt; (checkbox, radio and command).<\/i><\/b>[\/vc_column_text][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;305679&#8243;]<span style=\"font-weight: 400\">1, 2, 3&#8230; Online bookings go online<\/span>[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;176140&#8243;]<span style=\"font-weight: 400\">Do you want to activate the online booking feature on your site? With this new version it\u2019s possible through the date and time input.<\/span><\/p>\n<p><b><i>Through type=&#8221;week&#8221; we can set the week of a given year, with &#8220;month&#8221; the month and with &#8220;datetime-local&#8221; the date and time with the time zone of the device that requested the page. By setting a week, month, or date with the time, in the respective inputs, you can read the value in the format in which it is set.<\/i><\/b>[\/vc_column_text][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;124453&#8243;]<span style=\"font-weight: 400\">Insights by click<\/span>[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;117753&#8243;]<span style=\"font-weight: 400\">To make a page with different insights (but also FAQ) more <\/span><b>functional<\/b><span style=\"font-weight: 400\"> and <\/span><b>user-readable<\/b><span style=\"font-weight: 400\">, we can now develop the contents within drop-down menus with <\/span><b><i>&lt;details&gt;<\/i><\/b><span style=\"font-weight: 400\"> and <\/span><b><i>&lt;summary&gt;<\/i><\/b><span style=\"font-weight: 400\">. In this way, we can show at first only the title and not all the text, which will be available to the customer only if you click on the call to action expansion.<\/span>[\/vc_column_text][vc_single_image media=&#8221;93859&#8243; media_width_percent=&#8221;100&#8243; alignment=&#8221;center&#8221; uncode_shortcode_id=&#8221;184228&#8243;][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;102192&#8243;]<span style=\"font-weight: 400\">Filling in the form<\/span>[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;444237&#8243;]<span style=\"font-weight: 400\">We will no longer receive forms filled out by the user with missing or wrong data!\u00a0<\/span><span style=\"font-weight: 400\">Already with the previous HTML5 version, attributes were inserted to highlight invalid fields if incomplete or with errors at the time of sending.<\/span><\/p>\n<p><span style=\"font-weight: 400\">With <\/span><b><i>.reportValidity()<\/i><\/b><span style=\"font-weight: 400\"> we can do this type of operation even before the user has sent the form if he has filled in at least one field because it stops the user even before he proceeds with the attempt to send, when he passes the mouse on the &#8220;send&#8221; key signaling what is not correct.<\/span>[\/vc_column_text][vc_custom_heading separator=&#8221;under&#8221; separator_color=&#8221;yes&#8221; sub_reduced=&#8221;yes&#8221; uncode_shortcode_id=&#8221;649258&#8243;]<span style=\"font-weight: 400\">The responsive images<\/span>[\/vc_custom_heading][vc_column_text uncode_shortcode_id=&#8221;132924&#8243;]<span style=\"font-weight: 400\">The theme of responsive images is perhaps the one that has engaged the most developers of version 5.1 of HTML.\u00a0<\/span><span style=\"font-weight: 400\">It was of paramount importance to make sure that images could be resized to be adaptable to the various sizes of mobile devices. Before this update you had to roll up your sleeves and employ a fair amount of css code!<\/span><\/p>\n<p><span style=\"font-weight: 400\">There is also the question of weight. When the image is too big the loading is slowed down, if it\u2019s too small it\u2019s grainy. Finally HTML5.1 solves the issue and puts everyone in agreement!<\/span><\/p>\n<p><span style=\"font-weight: 400\">How? Added two attributes to the &lt;img&gt; tag.<\/span>[\/vc_column_text][vc_single_image media=&#8221;93860&#8243; media_width_percent=&#8221;100&#8243; alignment=&#8221;center&#8221; uncode_shortcode_id=&#8221;194030&#8243;][vc_column_text uncode_shortcode_id=&#8221;143472&#8243;]<b>Scrset <\/b><span style=\"font-weight: 400\">gives the possibility to set different image sources based on pixel ratio or breakpoint. This component goes hand in hand with <\/span><b><i>&lt;picture&gt;<\/i><\/b><span style=\"font-weight: 400\">, a container in which several image files are inserted and which only loads the source elements suitable for the screen size and resolution.<\/span><\/p>\n<p><b>Sizes<\/b><span style=\"font-weight: 400\">, instead, allows us to determine the size of the image compared to the viewport.\u00a0<\/span><span style=\"font-weight: 400\">And that\u2019s how by resizing the window or seeing an image from different devices, the content tightens or widens, depending on the ratio of the viewport pixels to the physical ones of the image.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The new features listed have already entered the common uses of web developers.\u00a0<\/span><span style=\"font-weight: 400\">You can stay updated on all the news released by the official page of WSC, on which has already been provided a preview of the new version HTML5.2 that will fix several bugs of the current one.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through the <\/span><a href=\"https:\/\/github.com\/topics\/html5\"><span style=\"font-weight: 400\">Github<\/span><\/a><span style=\"font-weight: 400\"> platform, developers also have the opportunity to say their opinion and help in the improvement processes.<\/span><\/p>\n<p><span style=\"font-weight: 400\">And you, geek friend, If you were to devise the new version HTML5.2, what would you put?<\/span>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Discover all the news of the latest HTML5 update<\/p>\n","protected":false},"author":1,"featured_media":93858,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[406],"tags":[438,439,440],"class_list":["post-93835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-about-web","tag-coding","tag-html","tag-web"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/posts\/93835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/comments?post=93835"}],"version-history":[{"count":0,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/posts\/93835\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/media\/93858"}],"wp:attachment":[{"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/media?parent=93835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/categories?post=93835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happybrain.it\/en\/wp-json\/wp\/v2\/tags?post=93835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}