Home > Articles > Web Development > HTML/CSS

  • Print
  • + Share This
This chapter is from the book

Using the Open Web Standard

HTML5 was written primarily as a way to develop better, more efficient web applications, and it is part of the suite of APIs and specifications developed under the Open Web Standard. The Open Web Standard or Open Web Platform is a collection of royalty-free technologies that enable the web.

Many people think HTML5 includes more than it does. In fact, features such as the History API (discussed in Hour 22, “Controlling the Browser History with the History API”), local storage (Hour 21, “Web Storage in HTML5”), and geolocation (Hour 23, “Adding Location Detection with Geolocation”) are all separate specifications that work with HTML5 to create a suite of tools you can use to build web pages, web applications, mobile applications, and more. These all are part of the Open Web Standard.

Some of the specifications in this standard include:

  • HTML5
  • CSS3
  • Web Fonts
  • HTML Canvas
  • SVG
  • Web storage
  • Geolocation

By using standards-based specifications for your web applications, you will know that your pages and applications will work for a wider audience, and that your pages and applications will last longer.

After you have a text editor up and running, you can begin writing your HTML, which is defined by tags that are written inside of less-than (<) and greater-than (>) signs.

  1. Open your text editor and type the following:

    <!doctype html>
            <title>This is my first HTML5 page</title>
            <h1>My First HTML Document</h1>
            <p>This is my first HTML5 document.
  2. Save your file as mypage.html.

  3. Now open this page in your favorite web browser (by browsing to it in the File menu) to test that your page displays correctly. If it doesn’t display correctly, you’ll need to check that you opened the right file and that you wrote the HTML correctly.

As you can see from the missing closing tags, the HTML is not nearly as strict as XHTML, and the first line (the doctype or DTD) is simple to use and easy to remember.

  • + Share This
  • 🔖 Save To Your Account