Cover Page by Jon Duckett

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

8

EXTRA MARKUP

  • Specifying different versions of HTML
  • Identifying and grouping elements
  • Comments, meta information and iframes

At this point, we have covered the main tags that fit nicely into groups and sections.

In this chapter, we will focus on some helpful topics that are not easily grouped together. You will learn about:

  • The different versions of HTML and how to indicate which version you are using
  • How to add comments to your code
  • Global attributes, which are attributes that can be used on any element, including the class and id attributes
  • Elements that are used to group together parts of the page where no other element is suitable
  • How to embed a page within a page using iframes
  • How to add information about the web page using the <meta> element
  • Adding characters such as angled brackets and copyright symbols

image

THE EVOLUTION OF HTML

Since the web was first created, there have been several different versions of HTML.

Each new version was designed to be an improvement on the last (with new elements and attributes added and older code removed).

There have also been several versions of each browser used to view web pages, each of which implements new code. Not all web users, however, have the latest browsers installed on their computers, which means that not everyone will be able to view all of the latest features and markup.

Where you should be particularly aware of browsers not ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required