Michael Thomas

Homepage Photo

Basic Computer Notes for MPSC

Share

HTML

HTML stands for HyperText Markup Language. It is the standard markup language used to create and structure web pages.

HTML is not a programming language; it is a markup language. It uses tags to define the structure and content of a webpage.

Important Features of HTML

  • HTML is used to create web pages.
  • It describes the structure of a webpage using tags.
  • HTML files generally use the extensions .html or .htm.
  • HTML documents are interpreted and displayed by a web browser.
  • HTML can contain text, images, hyperlinks, tables, forms, audio and video.
  • HTML is platform-independent.
  • Tim Berners-Lee is credited with inventing HTML and the World Wide Web.

Basic Structure of an HTML Document

<!DOCTYPE html>

<html>

<head>

    <title>My Web Page</title>

</head>

<body>

    <h1>Hello World</h1>

    <p>This is a webpage.</p>

</body>

</html>

Important HTML Tags

TagUse
<html>Defines the HTML document
<head>Contains information about the webpage
<title>Defines the title of the webpage
<body>Contains the visible content
<h1> to <h6>Defines headings
<p>Defines a paragraph
<br>Inserts a line break
<a>Creates a hyperlink
<img>Inserts an image
<table>Creates a table
<form>Creates a form
<ul>Creates an unordered list
<ol>Creates an ordered list

HTML Tags and Elements

An HTML tag is a markup symbol enclosed within angle brackets, such as <p>.

Most HTML elements have:

  • Opening tag: <p>
  • Content: This is a paragraph.
  • Closing tag: </p>

Example: <p>This is a paragraph.</p>

Hyperlink

The <a> tag is used to create a hyperlink.

<a href=”https://example.com”>Visit Website</a>

HTML5

HTML5 is the latest major version of HTML. It introduced several new features, including:

  • Audio and video support
  • <audio> and <video> tags
  • <canvas> for graphics
  • Semantic tags such as <header>, <nav>, <section>, and <footer>

Practice Question

1. What is the full form of HTML?
(A) HyperText Markup Language
(B) HighText Machine Language
(C) HyperText Machine Language
(D) Hyperlink Text Markup Language
Answer: (A) HyperText Markup Language

2. HTML is a:
(A) Programming language
(B) Markup language
(C) Database language
(D) Operating system
Answer: (B) Markup language

3. Who is credited with inventing HTML?
(A) Bill Gates
(B) Steve Jobs
(C) Tim Berners-Lee
(D) Charles Babbage
Answer: (C) Tim Berners-Lee

4. Which tag is used to create a hyperlink in HTML?
(A) <link>
(B) <a>
(C) <href>
(D) <hyperlink>
Answer: (B) <a>

5. Which HTML tag is used to insert an image?
(A) <image>
(B) <pic>
(C) <img>
(D) <src>
Answer: (C) <img>

6. Which tag is used to create the largest heading in HTML?
(A) <h6>
(B) <head>
(C) <h1>
(D) <heading>
Answer: (C) <h1>

7. Which HTML tag is used to create a paragraph?
(A) <para>
(B) <p>
(C) <pg>
(D) <text>
Answer: (B) <p>

8. Which of the following is a valid extension for an HTML file?
(A) .html
(B) .htm
(C) Both (A) and (B)
(D) .hml
Answer: (C) Both (A) and (B)

9. Which part of an HTML document contains the visible content of a webpage?
(A) <head>
(B) <title>
(C) <body>
(D) <html>
Answer: (C) <body>

10. Which HTML tag is used to insert a line break?
(A) <break>
(B) <lb>
(C) <br>
(D) <newline>
Answer: (C) <br>

11. HTML documents are displayed using a:
(A) Compiler
(B) Web browser
(C) Text editor only
(D) Database
Answer: (B) Web browser

12. Which tag is used to create an ordered list?
(A) <ul>
(B) <ol>
(C) <li>
(D) <list>
Answer: (B) <ol>

13. Which tag is used to create an unordered list?
(A) <ul>
(B) <ol>
(C) <list>
(D) <unlist>
Answer: (A) <ul>

14. Which HTML version introduced features such as audio, video and canvas?
(A) HTML 2.0
(B) HTML 3.0
(C) HTML 4.0
(D) HTML5
Answer: (D) HTML5

15. Which tag is used to define the title of a webpage?
(A) <head>
(B) <title>
(C) <name>
(D) <caption>
Answer: (B) <title>

16. HTML is basically used to design
 (A) Web Page
 (B) Website
 (C) Graphics
 (D) Tables and Frames

Investigator DH (Jan-2024)

Answer: (A) Web Page

17. We can change the background colour of a webpage using which attribute of the BODY tag?
 (
A) BACKGROUND
 (B) BGCOLOR
 (C) COLOR
 (D) TEXT

Liaison Officer (LO) 2025

Answer: (B)

18. To write a comment in an HTML document, we can use which of the following?
 (A)
: [cite: 302]
 (B): `#comment.` [cite: 302]
 (C): `<C>….</C>` [cite: 302]
 (D): None of the above [cite: 302]

Liaison Officer (LO) 2025

Answer: (A) [cite: 302]

19. Which of the following does not hold true for the heading tag in HTML?
 (A)
The heading tag makes the text appear larger and bolder
 (B)
The heading level ranges from 1 to 10
 (C)
Align is the only attribute of the heading tag
 (D)
The heading tag inserts blank line before and after the heading text

Liaison Officer (LO) 2025

Answer: (B)

20. Container elements in HTML contain
 (A)
both start and end tags
 (B)
only start tag
 (C)
only end tag
 (D)
None

Liaison Officer (LO) 2025

Answer: (A)



1 thought on “Basic Computer Notes for MPSC”

Leave a Comment