29.
MathWorks technical mcq question, verified with a worked answer. Free to practise - no sign-up.
29. Web Document Title
Which tag is used to display text in the title bar of a web document?
Pick ONE option
Show answer & explanation
The <title> tag is used to define the text that appears in the browser's title bar and bookmarks. The body tag contains page content, meta tags provide metadata, and comment tags are for code comments—none control the title bar display.
Step-by-step Derivation:
In HTML structure, the <title> element is placed inside the <head> section and directly controls what text displays in the browser tab/title bar. Example: <head><title>My Page</title></head> results in 'My Page' appearing in the title bar. The other options serve different purposes: body contains visible content, meta provides document information, and comments are for developers.