Html5 should i start using




















There are those saying that we will be better off as a community if we allowed the Web to evolve, and that this evolution should not be forced. But this is not forcing evolution, it is just evolution. It is a gradual change over time. And that is what we should be allowing to happen with the Web, gradually using and implementing features for Web community here and there. This way forward progress is happening, and nobody should be held back from these evolutionary steps until we all can take them.

Some members of the online community faithfully fear that if they go ahead and accept this new way forward and begin designing or developing in accordance, then as soon as they begin completing projects, the support might be dropped and they would need to update the projects they already completed in the past. The widely accepted features are safe to use and they will not disappear for certain; the experimental features can always be extracted in a separate stylesheet and be easily updated and maintained when necessary.

It might be a good idea not to use experimental, unsupported features in large corporate designs unless they are not affecting the critical design elements of the design. We cannot forget to mention that there are also many of us who are refusing to dabble in these new waters simply due to the fact that implementing some of these techniques or styles would cause a plethora of vendor-specific pefixes to appear in the stylesheet, thus impeding the validation we as professionals strive for.

Many of us would never put forth any project that does not fully validate with the W3C, and until these new specs are fully standardized and valid, we are unwilling to include them in their work.

Well, not quite. It neither contributes to accessibility, nor points out best-practices. And never, ever, ever compromise the use of the latest doctype, CSS3 techniques and selectors for the sake of validation. We should not let this factor keep us back. Whatever the factors that keep us from daring into these new CSS3 styles or new HTML5 coding techniques, just for a tangible example, need to be gotten over.

Plain and simple. The community will become a much more exciting and innovative playground, which in turn will improve experiences for as well as draw in more users to this dynamic new Web, which in turn will attract more clientele — effectively expanding the market. This is what could potentially be waiting on the other side of this fence that we are timidly facing — refusing to climb over it.

Instead, waiting for a gate to be installed. Until we get passed this limited way of looking at the situation, only then will we continue falling short of the full potential of ourselves and our field.

Are there any areas that you would love to be venturing into, but you are not because of the lack of complete cross browser compatibility? Admittedly, I was a faith factor member of the community myself — how about you?

Market Research. Just the things you can actually use. Everything TypeScript, with code walkthroughs and examples. And other printed books. Email Newsletter Your smashing email. Design Management Masterclass. On the other hand, if your site is primarily for mobile browsers on iPhones and iPads, what are you waiting for? But if your site falls somewhere in the middle -- as most do -- here are some handy guidelines to ramping up to HTML5.

Another site, The HTML5 Test , displays compatibility scores, based on the number of supported HTML5 capabilities out of , for each browser you need to visit the site in each browser you want scored. As of June 12, , the scores were:. Well, firstly it is not a word processor. Programs such as Microsoft Word and Apple's Pages are totally unsuited to web development. A text editor shoots out characters into a text file, and not much else.

This allows you to create files that have no extra formatting, and can be saved with any extension of your choosing. Your computer already comes with one. If you're using a Windows PC, then Notepad is the text editor that you've likely got installed. On a Mac, the situation is slightly different. OS X happens to come with four different text editors. These are called Vim, Emacs, Pico and Nano. However, unlike Notepad, all of them happen to work in the terminal.

This is a little bit intimidating for people who are new to web development and should not be used by people who are new to software development. We won't be using them in this guide. However, when you get a bit more confident with software and web development, it's definitely worth having a look at Vim and Emacs.

They are both powerful text editors, and when mastered can save you an awful lot of time. On Linux, the default text editor varies between distributions. On Ubuntu, it is likely Gedit , which is a rather pleasant text editor that is not too dissimilar from Notepad.

The first is Sublime Text 2. I honestly cannot recommend this highly enough. It comes with all the things that makes life easier for a beginning developer. Firstly, it'll make your code easier to read by coloring certain parts.

Secondly, it allows you to switch between files easily and to manage entire projects of files. This is ideal for switching between files, and editing multiple bits of code on the fly. The third is the Javascript console that is built into Google Chrome. This allows us to write Javascript and see it being run immediately and will be used to explain basic programming concepts. The second is a website called Codepen. It will also allow you to see your changes instantly.

In this chapter, you will learn about Semantic Markup, and how to organize your code based upon its content. These allowed you to create a group of elements and then apply styling to those elements. This worked, but there was room for improvement. Div doesn't actually mean anything, really.

Semantic markup is a new feature in HTML5. It brings in new tags, which work in the same way as a 'div' tag, but are for tagging common parts of a page. In this piece of code, we have a navigation bar, a title and a list. This isn't too dissimilar to most websites you're likely to ever go on, when you think about it. Let's have a look an article on MakeUseOf. You'll notice that there is a part of the page that is reserved entirely for navigating to other articles.

You'll also notice that there's another part of the page that contains the words that constitutes an article. Towards the top of the page, you'll see a header containing the MakeUseOf logo and some other links. When you think about it, a lot of websites follow these conventions.

Most websites have a part that is reserved for navigation. They usually have a body of content. They more than likely have a header. Semantic tags are tags that allow you to define parts of a website which are commonly found on most websites. They don't add anything to the page, but allow you to group tags based upon their content and apply stylings to those groups. So, remember that code we had before? Let's look at it with some Semantic markup added. As you can see, the code is much easier to read.

You know which parts are which and there is no ambiguity. This is important, because it makes it easier to write good, clean code. Should you ever decide to become a professional web designer, this becomes paramount — you never know who will be reading the work that you produce.

Section is a really useful tag. It's used for grabbing huge swathes of information and content that are marked with a heading or a title. Think of this like a chapter in a book. A chapter has a title, and may also contain pictures, diagrams, graphs and words. A section tag would be used to contain all of that. The article tag is used for what it sounds like; Containing content such as a blog post or a news story. This content should be able to be detached from the rest of the blog and still make coherent sense.

This tag is reserved for content that is related to, but not an integral part of the web page. This could be a bunch of facts that relate to a news story, or the biography of a user on a blog. Lots of web pages have a bar on the top of the page that contains a logo, some information pertaining to the site and perhaps some links. In Semantic markup, you'd use a Header tag to contain all of this. This element is reserved for the navigation part of your website.

This would contain links to other websites or to other pages on the website. Within the context of MakeUseOf, this could be the part of the page that is below the header. This tag is reserved for the bottom part of the page. Here, you could put some contact details, copyright information, a map or some links to your 'about me' page. If you've ever done a bit of web design, you probably know how to create a simple form in HTML. If you're really clever, you probably know how to take the information you get from your form and how to do something with it, such put it into a database.

Forms are massively important. They are the basis of most of the things we do on the Internet. Every time you create a status update on your favorite social network, buy something from Amazon, or send an email, you've probably used a HTML form. What you probably didn't know is that the way we create forms has radically changed in HTML5.

It's also significantly better. In this chapter, we're going to look at some of the cool things you can now do, just with plain old markup. So, what's so cool about the new way we can write forms in HTML5?

Firstly, you can ensure that some fields must be filled in order to submit, just by changing the markup of the form itself. It trivially easy. Secondly, you can ensure that your users can only submit certain types of information to your form. So, let's suppose you've got a website for your mailing list and you only want people to be able to submit actual email addresses?

You can do that, just by using HTML5. It really is incredibly powerful. Thirdly, you can make your forms look better by giving certain fields a placeholder. This will make them significantly more intuitive, as you can show your users an example of what you're expecting for a form.

This form is pretty basic. It takes in a name, an email and a favorite color, and then allows the user to submit that. It contains no validation of what information gets placed into it, and there's nothing stopping users from submitting this form with some empty fields.

Let's change all that. So, the first thing we're going to want to do is ensure that the email field takes only an email. This used to be a pretty hard task indeed, as you'd have to create all sorts of arcane Regex code. The really great thing about it though, beyond the simplicity, is that it works in every browser clear back to the dreaded IE6.

If you are passionate about simple, elegant, easy to read code then HTML5 is the beast for you. HTML5 allows you to write clear and descriptive code, semantic code that allows you to easily separate meaning from style and content. Consider this typical and simple header code with navigation:. So this code is pretty clean and simple? But with HTML5 you can clean this up even more and at the same time give your markup more meaning:. One of the coolest things about HTML5 is the new local storage feature.

HTML5 provides a great, mobile friendly way to develop fun, interactive games. Script-Tutorials has recently offered a four part series of lessons focused on HTML5 game development, head on over and check out some of the sick stuff they have created:. Call it a hunch, but I think mobile technology is becoming more popular these days. I know, that is a pretty crazy assumption and some of your are probably thinking — mobile is just a fad… right.

Mobile devices are taking over the world. The adoption of mobile devices continues to grow very rapidly and this means that more and more users will be using their mobile browsers to view your web site or application.

HTML5 is the most mobile ready tool for developing mobile sites and apps. With Adobe announcing the death of mobile Flash, you will now count on HTML5 to do your mobile web application development. Mobile browsers have fully adopted HTML5 so creating mobile ready projects is as easy as designing and constructing for their smaller touch screen displays — hence the popularity of Responsive Design.

There are some great meta tags that also allow you to optimize for mobile:. So, start using it right now, whether you are just simplifying and making your markup more semantic OR you are gonna build some sick new mobile game that will take over the world — who knows, maybe you can start selling stuffed animal versions of your gaming characters too. Tagged with: best practices canvas html html5 mobile website. He also enjoys family, snowboarding, sports, bacon and is jealous of your beard.

Stay up to date with the latest web design and development news and relevant updates from Codrops. I have recently started using it on my customers sites and the code does look much cleaner and easier to wade through when I need to make updates and stuff. Soon I will do a facelift on my personal sites to start using it also. Most of your responses have come from seasoned Flash devs and beginning web developers.

The point of designing websites is to sell something — a product, a service, an idea, yourself. The more people that can see it, and see it easier, the better chance you have at selling whatever it is you are selling. Same goes with CSS3. Yes, HTML5 is the future.



0コメント

  • 1000 / 1000