Html Introduction Questions with Answers

27 practice questions on Html Introduction (HTML & CSS) with answers and step-by-step solutions. Try 10 samples below, then practise all 27 free in the AptiNest app.

Sample questions

Question 1Medium

Who let web page designers edit the content of a web page without having to worry about the overall considerations?

  1. Web templates
  2. Text editors.
  3. Web server.
  4. None of the above.

Answer: A. Web templates

Explanation

Web templates let web page designers edit the content of a web page without having to worry about the overall considerations.

Step-by-step solution

  1. Web templates give a fixed layout and design.
  2. Designers can change only the content within the template.
  3. Option B, text editors, edit files but do not give a fixed design.
  4. Option C, web server, sends pages to browsers.
  5. So the correct answer is option A, web templates.

Why the other options are wrong

  • B. A text editor only edits files and does not separate content from layout.
  • C. A web server delivers pages and does not let designers edit content safely.

Tip: A template keeps the overall design fixed so editors can change only the content.

Question 2Medium

Html tags are surrounded by which bracket?

  1. Square bracket
  2. Angle bracket
  3. Circular bracket
  4. Curly bracket

Answer: B. Angle bracket

Explanation

HTML tags are keywords (tag names) surrounded by angle brackets like <html>. usually it comes in pair like <html> and </html> (used as closing tag).

Step-by-step solution

  1. HTML tags are written inside angle brackets.
  2. A tag such as html is written as the less than and greater than signs around the name.
  3. Square, circular and curly brackets are not used for tags.
  4. So the correct answer is option B, angle brackets.

Why the other options are wrong

  • A. Square brackets are not used for HTML tags.
  • C. Circular brackets are not used for HTML tags.
  • D. Curly brackets are not used for HTML tags.

Tip: Every HTML tag is written in angle brackets, and closing tags add a slash after the opening bracket.

Question 3Medium

An HTML file written in notepad can be saved with an extension:

  1. .html
  2. .htm
  3. A & B
  4. none of the above

Answer: C. A & B

Explanation

An HTML file written in Notepad can be saved with either a .html or .htm extension.

Step-by-step solution

  1. HTML files are saved with .html or .htm extensions.
  2. .html is the full version of the extension.
  3. .htm is a shorter version of the same extension.
  4. Both extensions are valid for HTML files.
  5. So, the correct answer is A & B.

Why the other options are wrong

  • A. Only .html is valid, not alone.
  • B. Only .htm is valid, not alone.

Tip: Use .html for full extension, .htm for shorter version.

Question 4Medium

Which of the following is a name of web browser?

  1. Mozilla Firefox.
  2. Microsoft internet explorer.
  3. Opera.
  4. All of the above.

Answer: D. All of the above.

Explanation

Other than these browsers Google chrome, Apple safari, Netscape navigator Are also well known browsers.

Step-by-step solution

  1. Mozilla Firefox is a web browser.
  2. Microsoft Internet Explorer is a web browser.
  3. Opera is a web browser too, so all of the above is the correct answer 3.

Why the other options are wrong

  • A. Firefox is a real browser, but the question has three correct names, so this alone is incomplete.
  • B. Internet Explorer is a real browser, but this alone is incomplete.
  • C. Opera is a real browser, but this alone is incomplete.

Tip: If every listed option is true, pick the all of the above choice.

Question 5Medium

What is abbreviation of WWW?

  1. world wide web
  2. world with webs
  3. web wide world
  4. none of the above

Answer: A. world wide web

Explanation

www means world wide web. This was invented by Tim Berners-Lee to connect multiple computer terminals of the world.

Step-by-step solution

  1. WWW stands for World Wide Web.
  2. World Wide Web is the correct full form of WWW.
  3. The correct answer is A (world wide web).

Why the other options are wrong

  • B. World with webs is not the correct full form of WWW.
  • C. Web wide world is not the correct full form of WWW.
  • D. The correct answer is 0, so this is wrong.

Question 6Medium

HTML mostly focuses on which of the following?

  1. Database
  2. Actual coding.
  3. Structure and looks.
  4. None of the above

Answer: C. Structure and looks.

Explanation

generally a markup language is used to show how things look, and a programming language is to determine how things react to user actions.

Step-by-step solution

  1. HTML is a markup language that gives a page its structure, such as headings, paragraphs and lists.
  2. Its looks are set with tags and style rules.
  3. Option A, database, is not what HTML does.
  4. Option B, actual coding, describes programming languages, which react to user actions.
  5. So the correct answer is option C, structure and looks.

Why the other options are wrong

  • A. HTML does not store or manage data; a database does that.
  • B. Reacting to user actions is the job of a programming language, not markup.

Tip: Markup languages describe what content is and how it looks; programming languages describe logic and behaviour.

Question 7Medium

What kind of editor is required to create web page?

  1. Text editor
  2. HTML editor
  3. Either of the above
  4. None of the above

Answer: C. Either of the above

Explanation

HTML is plain text, so a web page can be written in any text editor or in a specialised HTML editor.

Step-by-step solution

  1. Web pages are written in HTML which is plain text.
  2. Any text editor can create and edit HTML files.
  3. Specialised HTML editors also work for web page creation.
  4. So either a text editor or an HTML editor works.
  5. Final answer: Either of the above.

Why the other options are wrong

  • A. A text editor works, but an HTML editor also works, so this option is only part of the answer.
  • B. An HTML editor works, but a plain text editor is enough too, so this is not the full answer.
  • D. None of the above is wrong, because a text editor or an HTML editor can create a web page.

Tip: Use any text editor to write HTML files for web pages.

Question 8Medium

What is the definition of the <p> tag?

  1. New paragraph.
  2. Line break.
  3. Page break.
  4. Page starts.

Answer: A. New paragraph.

Explanation

<p> defines a new paragraph. Likewise <br> defines a line break and <a> defines an anchor.

Step-by-step solution

  1. The p tag is the paragraph tag.
  2. It starts a new paragraph on the page.
  3. So the correct answer is option A, New paragraph.

Why the other options are wrong

  • B. A line break is the br tag, not the p tag.
  • C. A page break is a different idea, not the p tag.
  • D. Page starts is not the meaning of the p tag.

Tip: P means paragraph and br means line break.

Question 9Medium

The structure of HTML contains ____?

  1. HEAD element
  2. BODY element
  3. HTML tag
  4. All of the above

Answer: D. All of the above

Explanation

An HTML document has an <html> root element that contains the <head> and <body> elements.

Step-by-step solution

  1. An HTML document has an html root element.
  2. The html element contains a head element and a body element.
  3. So HEAD element, BODY element and HTML tag are all parts of the structure, and the correct answer is option D.

Why the other options are wrong

  • A. HEAD is part of the structure, but it is not the only part.
  • B. BODY is part of the structure, but it is not the only part.
  • C. The HTML tag is part of the structure, but it is not the only part.

Tip: Basic skeleton: html contains head and body.

Question 10Medium

What kind of information is stored in webpage?

  1. Perceived (rendered) information
  2. Internal information.
  3. A & B
  4. None of the above

Answer: C. A & B

Explanation

A web page holds perceived information, such as the text, images and interactive parts the user sees, and internal information, such as comments, links and metadata. So both A and B are correct.

Step-by-step solution

  1. Perceived information is what the user sees, such as text, images and interactive parts.
  2. Internal information covers comments, links and metadata.
  3. Both kinds are stored in a web page, so both option A and option B are true.
  4. So the correct answer is option C, A and B.

Why the other options are wrong

  • A. Perceived information is only one kind; internal information is also stored.
  • B. Internal information is only one kind; perceived information is also stored.
  • D. Option C is correct, so none of the above is wrong.

Tip: When two options are each true and the question asks for both, the combined option is the answer.

Practise all 27 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all HTML & CSS topics · All topics