{"id":1264,"date":"2021-03-11T07:03:09","date_gmt":"2021-03-11T07:03:09","guid":{"rendered":"https:\/\/blog.amt.in\/?p=1264"},"modified":"2021-03-11T07:03:09","modified_gmt":"2021-03-11T07:03:09","slug":"introduction-to-responsive-web-design","status":"publish","type":"post","link":"https:\/\/blog.amt.in\/index.php\/2021\/03\/11\/introduction-to-responsive-web-design\/","title":{"rendered":"Introduction to Responsive web design"},"content":{"rendered":"<p>Responsive web design\u00c2\u00a0(RWD) is an approach to\u00c2\u00a0web design\u00c2\u00a0that makes web pages render well on a variety of devices and window or screen sizes. Recent work also considers the viewer proximity as part of the viewing context as an extension for RWD.\u00c2\u00a0Content, design and performance are necessary across all devices to ensure usability and satisfaction.<\/p>\n<p>A site designed with RWD\u00c2\u00a0adapts the layout to the viewing environment by using fluid, proportion-based grids,\u00c2\u00a0flexible images,\u00c2\u00a0and\u00c2\u00a0CSS3\u00c2\u00a0media queries,\u00c2\u00a0an extension of the\u00c2\u00a0<code>@media<\/code>\u00c2\u00a0rule, in the following ways:<\/p>\n<ul>\n<li>The fluid\u00c2\u00a0grid\u00c2\u00a0concept calls for page element sizing to be in relative units like percentages, rather than absolute units like\u00c2\u00a0pixels\u00c2\u00a0or\u00c2\u00a0points.<\/li>\n<li>Flexible images are also sized in relative units, so as to prevent them from displaying outside their containing\u00c2\u00a0element.<\/li>\n<li>Media queries allow the page to use different CSS style rules based on characteristics of the device the site is being displayed on, e.g. width of the rendering surface (browser window width or a physical display size).<\/li>\n<li>Responsive layouts automatically adjust and adapt to any device screen size, whether it is a desktop, a laptop, a tablet, or a mobile phone.<\/li>\n<\/ul>\n<p>Responsive web design has become more important as the amount of mobile traffic has come to account for more than half of total internet traffic.\u00c2\u00a0In 2015, for instance, Google announced\u00c2\u00a0Mobilegeddon\u00c2\u00a0and started to boost the ratings of mobile-friendly sites if the search was made from a mobile device.\u00c2\u00a0Responsive web design is an example of\u00c2\u00a0user interface plasticity.<\/p>\n<h4><span id=\"Mobile_first,_unobtrusive_JavaScript,_and_progressive_enhancement\" class=\"mw-headline\">Mobile first, unobtrusive JavaScript, and progressive enhancement:<\/span><\/h4>\n<p>&#8220;Mobile first&#8221;,\u00c2\u00a0unobtrusive JavaScript, and\u00c2\u00a0progressive enhancement\u00c2\u00a0are related concepts that predate RWD.\u00c2\u00a0Browsers of basic mobile phones do not understand JavaScript or\u00c2\u00a0media queries, so a recommended practice is to create a basic web site and enhance it for smart phones and Personal Computers, rather than rely on\u00c2\u00a0graceful degradation\u00c2\u00a0to make a complex, image-heavy site work on mobile phones.<\/p>\n<h4><span id=\"Progressive_enhancement_based_on_browser,_device,_or_feature_detection\" class=\"mw-headline\">Progressive enhancement based on browser, device, or feature detection:<\/span><\/h4>\n<p>Due to the high volume of internet traffic using mobile devices, they can no longer be ignored. In 2014, for the first time more users accessed the internet from their mobile devices than desktop.\u00c2\u00a0Where a web site must support basic mobile devices that lack JavaScript,\u00c2\u00a0browser (&#8220;user agent&#8221;) detection\u00c2\u00a0(also called &#8220;browser sniffing&#8221;) and mobile device detection\u00c2\u00a0are two ways of deducing if certain HTML and CSS features are supported (as a basis for progressive enhancement)\u00e2\u20ac\u201dhowever, these methods are not completely reliable unless used in conjunction with a device capabilities database.<\/p>\n<p>For more capable mobile phones and PCs,\u00c2\u00a0JavaScript frameworks\u00c2\u00a0like\u00c2\u00a0Modernizr,\u00c2\u00a0jQuery, and\u00c2\u00a0jQuery Mobile\u00c2\u00a0that can directly test browser support for HTML\/CSS features (or identify the device or user agent) are popular.\u00c2\u00a0Polyfills\u00c2\u00a0can be used to add support for features\u00e2\u20ac\u201de.g. to support media queries (required for RWD), and enhance HTML5 support, on Internet Explorer.\u00c2\u00a0Feature detection\u00c2\u00a0also might not be completely reliable; some may report that a feature is available, when it is either missing or so poorly implemented that it is effectively nonfunctional.<\/p>\n<p>Luke Wroblewski has summarized some of the RWD and mobile design challenges, and created a catalog of multi-device layout patterns.\u00c2\u00a0He\u00c2\u00a0suggests that, compared with a simple RWD approach, device experience or RESS (responsive web design with server-side components) approaches can provide a user experience that is better optimized for mobile devices.\u00c2\u00a0Server-side &#8220;dynamic CSS&#8221; implementation of stylesheet languages like\u00c2\u00a0Sass\u00c2\u00a0or Incentivated&#8217;s MML can be part of such an approach by accessing a server based API which handles the device (typically mobile handset) differences in conjunction with a device capabilities database in order to improve usability.\u00c2\u00a0RESS is more expensive to develop, requiring more than just client-side logic, and so tends to be reserved for organizations with larger budgets. Google recommends responsive design for smartphone websites over other approaches.<\/p>\n<p>Although many publishers are starting to implement responsive designs, one ongoing challenge for RWD is that some\u00c2\u00a0banner advertisements\u00c2\u00a0and videos are not fluid.\u00c2\u00a0However,\u00c2\u00a0search advertising\u00c2\u00a0and (banner)\u00c2\u00a0display advertising\u00c2\u00a0support specific device platform targeting and different advertisement size formats for desktop, smartphone, and basic mobile devices. Different\u00c2\u00a0landing page\u00c2\u00a0URLs\u00c2\u00a0can be used for different platforms,\u00c2\u00a0or\u00c2\u00a0Ajax\u00c2\u00a0can be used to display different advertisement variants on a page.\u00c2\u00a0CSS tables permit hybrid fixed+fluid layouts.<\/p>\n<p>There are now many ways of validating and testing RWD designs,\u00c2\u00a0ranging from mobile site validators and mobile emulators to simultaneous testing tools like Adobe Edge Inspect.\u00c2\u00a0The Chrome, Firefox and Safari browsers and the Chrome console offer responsive design viewport resizing tools, as do third parties.<\/p>\n<p>Use cases of RWD will now expand further with increased mobile usage; according to Statista, organic search engine visits in the US coming from mobile devices has hit 51% and are increasing.<\/p>\n<p>The above is a brief about\u00c2\u00a0Responsive web design. Watch this space for more updates on the latest trends in Technology.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Responsive web design\u00c2\u00a0(RWD) is an<\/p>\n","protected":false},"author":1,"featured_media":1266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[767,7,768],"tags":[770,18,769],"class_list":["post-1264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-responsive-web-design","category-techtrends","category-web-design","tag-responsive-web-design","tag-technology","tag-web-design"],"_links":{"self":[{"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":1,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/posts\/1264\/revisions\/1265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/media\/1266"}],"wp:attachment":[{"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amt.in\/index.php\/wp-json\/wp\/v2\/tags?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}