Which HTML tag is used to define the title of a webpage?
Analysis & Theory
The `<title>` tag defines the title of the webpage shown in the browser tab.
Where should the `<title>` tag be placed in an HTML document?
A
Inside the `<head>` section
C
Before the `<!DOCTYPE>`
D
At the bottom of the page
Analysis & Theory
The `<title>` tag must be placed inside the `<head>` section of the HTML document.
What is the purpose of the `<title>` tag in HTML?
A
It sets the main heading of the page
B
It displays a popup message
C
It defines the page title in the browser tab and search results
D
It adds subtitles to images
Analysis & Theory
The `<title>` tag sets the browser tab text and is also used by search engines.
What happens if a page does not include a `<title>` tag?
A
The browser won't load the page
B
A default title or file name may be shown
C
The page won’t be visible
D
The `<head>` won’t work
Analysis & Theory
If no `<title>` is provided, browsers may show the file name or a blank title.
Can there be more than one `<title>` tag in a webpage?
A
Yes, but only the first is used
C
No, only one `<title>` tag is allowed
D
Yes, one for each section
Analysis & Theory
Only one `<title>` tag is allowed per HTML document.
Which part of a webpage displays the text from the `<title>` tag?
A
In the main body of the page
C
In the browser tab or window title bar
Analysis & Theory
The browser displays the title in the tab or window title bar.
Is the `<title>` tag visible on the webpage body?
B
Yes, but only in full screen mode
C
No, it is only shown in the browser tab
Analysis & Theory
The `<title>` tag is not shown in the page body, only in the browser UI.
How does the `<title>` tag affect SEO (Search Engine Optimization)?
B
It helps describe the page for search engines
C
It hides the page from search results
D
It changes the image captions
Analysis & Theory
Search engines use the `<title>` tag to understand and display the page in results.
What is the maximum recommended length for a `<title>` tag?
Analysis & Theory
Most SEO experts recommend keeping titles under 60–70 characters to avoid truncation in search results.
Which of the following is a correct example of a `<title>` tag?
A
<title>My Page Title</title>
C
<head>Title: My Page</head>
Analysis & Theory
`<title>My Page Title</title>` is the correct way to define a title in HTML.