June 2025
Beginner
817 pages
31h 30m
English
In every HTML document, you should use a title that gets displayed in the header of the web browser. You can write such a title between the <title> and </title> tags within the head element. If no title is used, what appears here depends on the web browser. Often, you’ll then find a title such as Untitled Document or Untitled, for example. You can use only one title element in total for an HTML document.
In Figure 3.2, you can see the title element used in the following example being rendered:
<!doctype html><html lang="en"> <head> <title>—The Heading of the HTML Page</title> <meta charset="UTF-8"> </head>...
Listing 3.1 /examples/chapter003/3_2/index.html
Figure 3.2 The Title Is Usually Displayed ...
Read now
Unlock full access