Professional Documents
Culture Documents
Mobile device hardware is smaller and generally tends to have lower hardware resources than desktops/laptops. Smaller screens bring about different design considerations and challenges. Touch screen technology introduces new interaction concepts that differ from traditional input devices (keyboard and mouse). With a mobile device, internet connectivity is not always as reliable as a hardwired broadband connection, which means internet connectivity is a concern and data transfer could be significantly slower.
www.affineminds.com
www.affineminds.com
www.affineminds.com
www.affineminds.com
Comparison
Device Access Speed Development Cost App Store Approval Process
www.affineminds.com
www.affineminds.com
What is HTML5?
HTML5, however, has come to mean a lot more than just a new set of tags. The term now encompasses a whole set of technologies that include: HTML5 elements CSS3 New graphic control (PNG, SVG, and CANVAS) Enhanced JavaScript Web APIs
Mobile browsers are ahead of desktop browsers in support for these technologies
www.affineminds.com
New HTML5 Elements The new elements have names that identify what the block of content accomplishes:
Header header of Web Page Section Describes content of Page Article ASIDE Nav Figure Footer Identify content in a web page. Related but NOT part of the main content on the web page Identifies groups of links that when grouped together form navigation Identifies an image and supporting description Footer of Web Page
www.affineminds.com
<HEADER> <SECTION>LOGO</SECTION> <NAV> <ul> <li><a title=Home Page href=/home.php>Home</a></li> <li><a title=About Us href=/au.php>About</a></li> </ul> </NAV> </HEADER> <SECTION>
www.affineminds.com
<ARTICLE> <FIGURE> <LEGEND>What is Web</LEGEND> <IMG alt=Alternate Text src=pic1.jpg/> </FIGURE> </ARTICLE> <ARTICLE> <P>Para2</P> <ASIDE> <H1>Less important</H1>
www.affineminds.com
<P>But related</P> </ASIDE> </ARTICLE> </SECTION> <FOOTER> <P>Copyright All rights.</P> </FOOTER>
www.affineminds.com
www.affineminds.com
Adding Drop Shadow Text Effects There are four elements that you can use to control the drop shadow definition. They are:
Horizontal-offset (length, required) Vertical-offset (length, required) Blur-radius (length, optional) Shadow-color (color, optional)
www.affineminds.com
.dropShadow { font-family: Segoe UI, Tahoma, Geneva, Verdana; font-size: 3cm; color: #CC3300; text-shadow: 0.25em 0.25em 2px #999; }
Working with Columns in CSS3 A challenge for any web page is to create content that is split over two or more columns on the page. Creating columns often requires using complex tables structured together. Though not strictly part of the text family of CSS www.affineminds.com
definitions, the new multicolumn layout is best when used with text on the screen. The goal of the multicolumn definition is to allow your content to be spread evenly over two or more columns. There are three parts to a column layout: The number of columns The gap between the columns Column design (optional)
www.affineminds.com
font-size: 12px; color:#444; text-align: justify; -moz-column-count: 2; -moz-column-gap: 1em; -webkit-column-count: 2; -webkit-column-gap: 1em; }
www.affineminds.com
You can add a column design between each column. The structure is:
-moz-column-rule: 1px solid #222; -webkit-column-rule: 1px solid #222;
.complex { font-family: Segoe UI, Tahoma, Geneva, Verdana; font-size: 1.2pc; color:#444; text-align: left; -moz-column-count: 3;
www.affineminds.com
-moz-column-gap: 1em; -moz-column-rule: 2px dotted #999; -webkit-column-count: 3; -webkit-column-gap: 1em; -webkit-column-rule: 2px dotted #999; }
www.affineminds.com
The standard is currently only in proposal stage and has not been adopted by all web browsers. For this reason, you need to add two border-radius style descriptions: one for Firefox (-mozborder- radius) and one for WebKit (-webkitborder-radius).
Additional functionality can be added using the following attributes in the VIDEO element: Autoplay: The video will play immediately if already downloaded in your cache (this attribute does not work on iOS devices, but does on Android)
www.affineminds.com
play and pause controls Height and Width Loop: You can loop the video Poster: Allows you to set a placeholder image for the video
<video src=mobileVideo.mp4 autoplay controls></video>
www.affineminds.com
www.affineminds.com
var items = myLocalStorage.length; for (var i=0;i<items;i++) { var itemName = myLocalStorage.key(i); var value=myLocalStorage.getItem(itemName);
www.affineminds.com
www.affineminds.com
Specifically used max-width and min-width here so that you can resize your desktop browser and see the mobile version of the page Regrettably, Internet Explorer will not understand these expressions, so we have to add a conditional comment (shown in bold) that links to the desktop version of the CSS: www.affineminds.com
<link rel="stylesheet" type="text/css" href="android.css" media="only screen and (max-width: 600px)" /> <link rel="stylesheet" type="text/css" href="desktop.css" media="screen and (min-width: 601px)" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="desktop.css" media="all" /> <![endif]-->
www.affineminds.com
www.affineminds.com
minimumscale maximumscale
Specifies the minimum scaling that can be applied to the display Specifies the maximum scaling that can be applied to the display.
www.affineminds.com