HTML Is for Asserting

HTML (HyperText Markup Language) is the markup language we use to describe the content in our web pages. What do we mean by describe? Well, when we view things in our browser, we need to describe what it is we are seeing.

For example, say we wanted to create a page containing a heading, an image of an apple, and a sentence. We could do all that in HTML like this.

images/ui/apple.png

Those funny things in brackets you see (<h1>, <img>, and <p>) are called tags. And when we put those things around the content we want to describe, we mark it up.

Now these tags are important because they are what our UI testing frameworks look for when we write ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.