Affichage des articles dont le libellé est Samples. Afficher tous les articles
Affichage des articles dont le libellé est Samples. Afficher tous les articles

samedi 12 novembre 2016

Get Started With HTML5/CSS3: Tips, Showcases, And Coding Samples



alt="Get Started With HTML5/CSS3: Tips, Showcases, And Coding Samples" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2010/06/html5-500x186_c.jpg" />

HTML5 is gaining more popularity and starting to evolutionise the entire web interface. Even some web developers quoted that HTM5 elements and visual effects are comparable to Flash. The new scripting style is easy to understand and capabilities to enhance the web interface is limitless. So how interesting is this HTML5 anyway?

This article is intended to give readers an insight on what you should know about the HTML5 and most importantly some tips & tricks on creating lightweight, attractive, and interactive HTML5 pages.

1. Basic in HTML5

alt="HTML5" src="http://www.webhostingsecretrevealed.net/images/2012/0115-1.jpg" width="750px" border="0" />

Before we begin any further of this topic in HTML5, it will be good to check your current browser first. As many of the browsers are still in the development mode (enhancement to accomodate the HTML5), some features mentioned here may not be supportable.

Here’s a quick tips to check your href="http://html5test.com" target="_blank">browser compatibility.

To understand further the limitation of certain browser, you may refer to href="http://www.deepbluesky.com/blog/-/browser-support-for-css3-and-html5_72/" target="_blank">here.

2. Text Effects – Adding shadow and advance text effect in HTML5

alt="Text effects in HTML5" src="http://www.webhostingsecretrevealed.net/images/2012/0115-3.jpg" width="750px" border="0" />

Basic shadow effect on text

This is the simplest one string code that transform your ordinary headline into a cool-looking text. Never underestimate the shadow effect. To create this similar looking effect requires web designer to go through multiple steps of image editing in Photoshop. And now all it takes is just one line of code. The shadow distance, color can be changed to your heart content.

Coding sample

#shadow h1 {
text-shadow: 0px 1px 1px rgba(0,0,0,.2);
}

Text on advance fire-like effect

The next tip is to show you on how the HTML5 coding can be tweaked into a even cooler-looking text. If you experiment enough, or find other examples, the possibilities of customizing the effects are endless. Note: this example is not created by any image editing software. Just plain codes in HTML5.

Coding sample

#fire h1 {
text-align: center;
margin: 200px auto;
font-family: “League-Gothic”, Courier;
font-size: 200px; text-transform: uppercase;
color: #fff;
text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85, -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, -20px -60px 60px #cd4606, 0 -80px 70px #973716, 10px -90px 80px #451b0e;
}

Other great example: href="http://mudcu.be/labs/HTML5Rocks/Text-Effects.html#spaceage" target="_blank">http://mudcu.be/labs/HTML5Rocks/Text-Effects.html#spaceage

3. Rounded corner in HTML5

alt="Rounded Corner in HTML5" src="http://www.webhostingsecretrevealed.net/images/2012/0115-6.jpg" width="750px" border="0" />

Styling the webpage layout in HTML5 has never been so easy since the introduction of css. And now you can even have a rounded corners of your layout elements! Imagine this; no more slicing background image, no more messy picture fragments. This will bring many cheers to the web designers out there.

Coding sample

div {
border: 2px solid #434343;
padding: 10px;
background: #e3e3e3;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
width: 500px;
}

Note: Moz means Mozilla, and webkit is for Safari and Chrome.

Other great example: href="http://fjd1.com/roundcorner.html" target="_blank">http://fjd1.com/roundcorner.html

4. Scalable Vector Graphic (SVG) in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-4.jpg" width="750px" border="0" />

Scalable Vector Graphic or commonly known as (SVG) is a 2-Dimension vector graphics which is defined in XML text files. In another words, because their DNA is based on XML text file, they can be created or editable on the web platform. Which also means, there can be scale easily, and search engines are able to read and understand the image.

Sample code

<svg id=”svg-area” width=”838″ height=”140″ viewBox=”0 0 2000 380″>
<rect x=”100″ y=”20″ rx=”25″ width=”100″ height=”335″ fill=”#FAEBD7″ stroke=”purple” stroke-width=”2″ />
<rect x=”-50″ y=”300″ width=”300″ height=”75″ fill=”none” stroke=”#4B0082″ stro ke-width=”4″ transform=”rotate(-30)” />

<path d=”M 950,200 h -150 a 150,150 0 1,0 150,-150 z” fill=”red” stroke=”blue” stroke-width=”5″ />
<path d=”M 925,175 v -150 a 150,150 0 0,0 -150,150 z” fill=”yellow” stroke=”blue” stroke-width=”5″ />
<path d=”M 1450,350 l 50,-25
a 25,25 -30 0,1 50,-25 l 50,-25
a 25,50 -30 0,1 50,-25 l 50,-25
a 25,75 -30 0,1 50,-25 l 50,-25
a 25,100 -30 0,1 50,-25 l 50,-25″
fill=”none” stroke=”red” stroke-width=”5″ />
</svg>

Other great examples:

  • href="http://codinginparadise.org/projects/svgweb/samples/demo.html?name=photos&svg.render.forceflash=false" target="_blank">http://codinginparadise.org/projects/svgweb/samples/demo.html?name=photos&svg.render.forceflash=false
  • href="http://playground.html5rocks.com/#inline_svg" target="_blank">http://playground.html5rocks.com/#inline_svg

5. Embedding movie file in HTML5

alt="Video in HTML5" src="http://www.webhostingsecretrevealed.net/images/2012/0115-2.jpg" width="750px" border="0" />

Here’s another interesting part to showcase the capabilities of HTML5. Many of the video online are usually presented to webuser in the form of Flash. Until recently, embedding video in HTML5 slowly gaining momentum (YouTube is good example) and Flash is slowly losing its attractiveness. Why is that so? Mobile users. If you want your video to be able to play in both iPhone and Android phones, HTML5 is the way to move forward.

To embed the video, you’ll need to know there currently 3 formats supported by different browsers; .mp4 (H.264+AAC), .ogg (Theora + Vorbis), .webm (VP8 + Vorbis)

Sample code

<video width=”560″ height=”340″ controls>
<source src=”path/to/myvideo.mp4″ type=’video/mp4; codecs=”avc1.42E01E, mp4a.40.2″‘>
<source src=”path/to/myvideo.ogv” type=’video/ogg; codecs=”theora, vorbis”‘>
</video>

Other great example : href="http://studio.html5rocks.com/#PiP" target="_blank">http://studio.html5rocks.com/#PiP

6. Slide Presentation in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-5.jpg" width="750px" border="0" />

Powerpoint has been a synonym name associate with slide presentation. But why confine yourself with a offline presentation where you can create slides meant for web audience? HTML5 has come to the rescue in creating much powerful presentation slides, complete with transition and navigation menu. The best part is, you can even apply 3D transform to your presentation.

Sample code

pre {
transition: all 1s ease-inout;
}

pre:hover {
background-color: #F2F5FE;
border-color: black;
}

div {
transform: rotate3d(1,1,0, 45deg);
}

Other great examples:

  • href="http://www.script-tutorials.com/creating-an-attractive-presentation-with-html5/" target="_blank">http://www.script-tutorials.com/creating-an-attractive-presentation-with-html5/
  • href="http://www.html5rocks.com/en/features/presentation" target="_blank">http://www.html5rocks.com/en/features/presentation

7. Editable Content in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-7.jpg" width="750px" border="0" />

Static text is so old-school in the age where flexibility and dynamic rule the world. In HTML5, you can define a text area made it editable by the web user without text editor.

Sample code

<p contenteditable=”true”>This content is editable!</p>

Other great example: href="http://html5demos.com/contenteditable" target="_blank">http://html5demos.com/contenteditable

8. Interactive Web Canvas in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-10.jpg" width="750px" border="0" />

Besides SVG in HTML5, canvas is the next best thing that ever happened to the web. Canvas allows rendering of 2 dimension shapes that bring interactivity to a whole level without the help from Flash.

Nevertheless, the simple coding in HTML5 that creates amazing animation interaction is worth to mentioned in here.

Other great examples:

  • href="http://www.bestfreewebresources.com/2010/09/10-best-html5-canvas-applications.html" target="_blank">http://www.bestfreewebresources.com/2010/09/10-best-html5-canvas-applications.html
  • href="http://addyosmani.com/blog/13-incredibly-fresh-new-canvas-demos/" target="_blank">http://addyosmani.com/blog/13-incredibly-fresh-new-canvas-demos/

9. Drag and Drop in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-8.jpg" width="750px" border="0" />

Drag and drop (sometimes known as DnD) is another cool feature that available to HTML5. A great example would be implementation by Google in their Gmail. If you’re using any of the HTML5 supportable browsers, you can simply drag a file from your computer and drop onto the compose message window. It will be automatically add in as an attachment. How cool is that?

Sample code (native DnD)

document.addEventListener(‘dragstart’, function(event) {
event.dataTransfer.setData(‘text’, ‘Customized text’);
event.dataTransfer.effectAllowed = ‘copy’;
}, false);

Other great example: href="http://www.html5rocks.com/en/tutorials/dnd/basics/">http://www.html5rocks.com/en/tutorials/dnd/basics/

10. Pure CSS Data Chart in HTML5

alt="HTML 5 tutorials, guide, and samples" src="http://www.webhostingsecretrevealed.net/images/2012/0115-9.jpg" width="750px" border="0" />

Before HTML5, it is also impossible to create a presentable chart by just using coding in HTML. Furthermore, changing the data value and to reflect in the chart is no simple task. Again, HTML5 to the rescue. Together with CSS, you can create an absolutely beautiful chart which put Microsoft Excel to shame. The codes are simple, and all you need to do is spending time to customize the perfect color and effect for your chart.

Other great example : href="http://cssglobe.com/post/1272/pure-css-data-chart" target="_blank">http://cssglobe.com/post/1272/pure-css-data-chart

Tutorial on creating the HTML5 chart using jQuery plugin, go to: href="http://www.catswhocode.com/blog/how-to-easily-create-charts-using-jquery-and-html5" target="_blank">http://www.catswhocode.com/blog/how-to-easily-create-charts-using-jquery-and-html5

Can’t get enough of HTML 5?

So do we! Here’s more on the topic, go check them out./>class="nostyle special icon-list">

  • class="list-icon icon-angle-right accent" style="font-size: 85% !important;"> href="http://www.webhostingsecretrevealed.net/blog/featured-articles/30-cool-examples-of-html5-websites/">30 Very Cool Examples of HTML 5 Websites
  • class="list-icon icon-angle-right accent" style="font-size: 85% !important;"> href="http://www.webhostingsecretrevealed.net/blog/web-design/getting-started-with-html5-css3/">Getting Started with HTML 5
  • class="list-icon icon-angle-right accent" style="font-size: 85% !important;"> href="http://www.webhostingsecretrevealed.net/blog/featured-articles/top-30-html5-tutorials/">Must Read HTML 5 Tutorials in 2012
  • class="list-icon icon-angle-right accent" style="font-size: 85% !important;"> href="http://www.webhostingsecretrevealed.net/blog/featured-articles/learn-html5-10-must-read-lessons/">Learn HTML 5: 10 Must Read Lessons
  • Also, check out  href="http://www.webhostingsecretrevealed.net/go/udemy" target="_blank">this HTML 5 crash course by Robin Nixon. Robin Nixon is the author of href="http://ecx.images-amazon.com/images/I/411zmvViM4L._SS500_.jpg" target="_blank">Learning PHP, MySQL, and JavaScript; the course covers pretty much everything a newbie need to know in HTML5 – including basic HTML coding, HTML5 canvas for drawing, geolocation, local storage, as well as HTML5 audio and video.


    Page 25 – Web Hosting Secret Revealed




    Write Headlines Like Brian Clark, Neil Patel, and Jon Morrow: 35 Headline Samples From The A-List Bloggers



    alt="Write Headlines Like Brian Clark, Neil Patel, and Jon Morrow: 35 Headline Samples From The A-List Bloggers" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-2-500x507_c.jpg" />

    class="alignright size-medium wp-image-642" alt="Quick Sprout Case Study Headlines" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-8-300x297.jpg" width="300" height="297" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-8-300x297.jpg 300w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-8-150x150.jpg 150w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-8-130x130.jpg 130w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-8.jpg 313w" sizes="(max-width: 300px) 100vw, 300px" />

    There are two things you bloggers should know: One, great bloggers write great headlines, and two, great headlines often follow sets of similar formulas.

    Great headlines follow sets of rules – they are compelling, specific, intriguing, and often follow sets of proven formula.

    Yes, just like maths, there are formulas that can help us to write headlines that work. It’s no coincidence that three out of four Neil’s case studies headlines on QuickSprout started with the phrase “How I…”. Headlines written based on certain sets recipes simply get more clicks and reads online. And these types of headlines will always work, because good headlines tap into psychological triggers that are programmed into the human mind.

    In other words, the easiest way to write powerful headlines is to follow these recipes. As a smart blogger, you should keep a set of headline formulas, templates, or cheat sheet for your writing references. And, that’s what I’m going to offer in this article – we are going to look into five most frequent-use headline formulas and some real life examples.

    List Headlines: X Ways To Get This And That Done

    Brian Clark of CopyBlogger once title="7 Reasons Why List Posts Work" href="http://www.copyblogger.com/7-reasons-why-list-posts-will-always-work/" target="_blank">said this about list-headline:

    Any headline that lists a number of reasons, secrets, types, or ways will work because, once again, it makes a very specific promise of what’s in store for the reader. A nice quantifiable return on attention invested goes a long way toward prompting action, and as long as you deliver with quality content, you’ll have a satisfied reader.

    Truth is, you can never go wrong with headlines consist of a list.

    style="text-align: center;">class="aligncenter wp-image-643 border" alt="List Type Headlines" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-2.jpg" width="750" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-2.jpg 650w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-2-295x300.jpg 295w" sizes="(max-width: 650px) 100vw, 650px" />

    Here are a couple of recent list-headlines written by title="ProBlogger.net Darren Rowse" href="http://www.problogger.net/archives/author/darren/" target="_blank">Darren Rowse. Note that how these titles state clearly the reason why you should read the articles; and without doubt, they attract me to click  in and read it.

    1. 9 Steps To Creating A Successful e-Course

    2. 9 Benefits (and 3 Costs) Of Building Community On Your Blog

    3. 7 Strategies For Growing Community On Your Blog

    Other Similar Headline Samples

    In case you need more samples, here are couples similar headlines extracted from other popular blogs.

    4. 5 Tips to make Facebook Marketing Mobile Friendly

    5. 4 ways to maximize the social media presence at your next event

    6. 10 sure-fire headline formulas that work

    7. 7 more sure-fire headline templates that work

    8. 101 sure-fire ways to make people hate your marketing

    How-To Headlines: How To Do This And That

    style="text-align: center;">class="aligncenter wp-image-644 border" alt="Neil Patel's headlines" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-1.jpg" width="750" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-1.jpg 650w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-1-300x289.jpg 300w" sizes="(max-width: 650px) 100vw, 650px" />

    I believe you see this type headlines everywhere. Why not? How-to headlines work like a charm always. If you are a frequent reader on title="Quick Sprout" href="http://www.quicksprout.com/" target="_blank">QuickSprout, you should know Neil Patel  loves using this headline method to hook his readers. For instances:

    9. How To Use Rejection To Achieve Your Business Goals

    10. How To Make Your Site Insanely Fast

    11. How To Think Like Google

    Other Similar Headline Samples

    There are plenty of variations you can use on how-to headlines. Here’s a few that pop up in my mind while writing this article. With a little brainstorming session, I am sure you can come up with a lot more than these.

    12. How to lose fats without exercising

    13. How to make money without sacrificing your TV time

    14. How to jump higher and play basketball like Michael Jordan

    15. How to build a twitter account with tons of followers and make ,000/mo

    16. How to make use of Pinterest for your social media success

    17. How to make use of your house sofa for your six pack abs

    Hey You! Headlines Focusing On Target Audiences

    class=" wp-image-645 alignright border" alt="Swine Flu Posts On Huffington Post" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-4.jpg" width="300" height="300" />

    Headlines that call names or focus on certain group of views are often very effective in building rapport with the target audience and hence creating awareness.

    The image on your right (extracted from href="http://www.huffingtonpost.com/2009/04/28/swine-flu-what-travelers_n_192436.html" target="_blank">Huffington Post) is a very good example: This article has information about Swine Flu for travelers. Not parents, not teachers, not doctors; but only for folks who are on the road or will be travelling soon.

    Other Similar Headline Samples

    Here are some real life examples displayed by bloggers at Copy Blogger, Boost Blog Traffic, and Out Spoken Media.

    18. Bloggers beware: Avoid these pitfalls when you start a blog

    19. What you need to know as a web hosting shoppers

    20. Everything a marketer needs to know can be learned from journalism

    21. The woman’s guide to having it all

    22. An open letter to all the bloggers cluttering the web with forgettable content

    Case Study/Report Style Headlines

    By clipping the phrase ‘Case Study’ (or other similar words) into your headlines, you inform your readers that your articles are thoroughly researched and consist of valuable information. title="Beth Hayden" href="http://www.copyblogger.com/author/bethhayden/" target="_blank">Beth Hayden has some perfect examples for this type of headlines on CopyBlogger.com.

    style="text-align: center;">class="aligncenter wp-image-646 border" alt="Case Study Types Of Headlines" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-3.jpg" width="750" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-3.jpg 650w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-3-300x287.jpg 300w" sizes="(max-width: 650px) 100vw, 650px" />

    For examples, Hayden wrote these two headlines recently.

    22. Case Study: How To Build A Vast Audience by Mastering The Art Of The Interview

    23. Case Study: How Aurelien Amacker Escaped The Cubicle

    However, do note that this type of headlines might backfire if it’s not handled properly – a case-study-titled article requires lots of  in-depth research and detail writings as the readers’ expectation is high. You certainly do not want to write a case study headline for your 500-words-simple-article.

    Other Similar Headline Samples

    24. Case study: How Jane made ,000 during dot-com booms

    25. Tax report: Why the riches are getting richer

    26. Case study: The truth about unlimited web hosting offers

    27. Consumer report: Are you spending too much on your SEO campaign

    Threat Headlines: Don’t Say That I Never Warn You

    style="text-align: center;">class="aligncenter wp-image-647 border" alt="Treat Headlines" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-7.jpg" width="750" height="432" srcset="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-7.jpg 650w, http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2013/04/0409-7-300x172.jpg 300w" sizes="(max-width: 750px) 100vw, 750px" />

    What is your readers’ greatest fear? What’s keeping your readers up at night? Good salesmen leverage human’s fear to sell more; a good writer should do the same his/her headlines. A threat headline gets us to take action because it creates fear. It also implies that something we trust has misled us and may be at risk. If you are serious about writing a blog that sells, you should use more treat headlines.

    Here’s what Jon Morrow has to say when it comes to writing good treat headlines.

    The key is to be specific. You want the reader to think, “How on earth did they guess that I’m afraid of that? Are they psychic?” Like many headline hacks, your power to use it will grow in proportion to how well you know your audience.

    Now, let’s look at some samples, shall we?

    More Similar Headline Samples

    28. 15 warning signs that your business sucks

    29. SEO scams – 12 warning signs that you hired the wrong SEO

    30. Can we really trust bought email lists

    31. Suicide, shame, and the painful truth about accomplishing your goals

    32. 9 great lies of online sales and marketing

    33. The biggest lie in email marketing (why most email is junk mail)

    34. The shocking secrets about budget hosting (must read)

    35. Alert: The new social media marketing scam to avoid

    Bottom Line: What’s Next?

    Okay, so now you have five surefire formulas and 35 headline samples for reference. Ready to write some kick-ass headlines? Here’s what I want you to do, in your next blogpost, use one of the headline formulas stated above and post the link in the comment box below. I might not read everything you write. But if it comes with great headlines, I promise that I will glance thru and add your headlines as samples #36 and so on.

    Credits: This article uses multiple references from various A-list blogs, including title="Copy Blogger" href="http://www.copyblogger.com/blog/" target="_blank">Copy Blogger, title="Pro Blogger" href="http://www.problogger.net/blog" target="_blank">Pro Blogger, title="Social Media Examiner" href="http://www.socialmediaexaminer.com/" target="_blank">Social Media Examiner, title="Boost Blog Traffic" href="http://boostblogtraffic.com/" target="_blank">Boost Blog Traffic, title="Out Spoken Media" href="http://outspokenmedia.com/" target="_blank">Out Spoken Media, title="Quick Sprout" href="http://www.quicksprout.com/" target="_blank">Quick Sprout,  title="Distilled Blog" href="http://www.distilled.net/blog/" target="_blank">Distilled Blog, and title="Hub Spot" href="http://blog.hubspot.com/" target="_blank">HubSpot Blog. Thanks a lot for all the great work – I wouldn’t have learn so many about persuasive writings without you guys.


    Page 21 – Web Hosting Secret Revealed