MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

HTML Basics Class 10 MCQ Questions with Answers

Question 1.

HTML is what type of language?

(A) Scripting Language
(B) Markup Language
(C) Programming Language
(D) Network Protocol
Answer:
(B) Markup Language

Explanation:
HTML is a markup language 1 used to build web pages and web applications.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 2.

Apart from <b> tag, what other tag makes text bold?

(A) <fat>
(B) <strong>
(C) <black>
(D) <emp>
Answer:
(B) <strong>

Explanation:
The HTML <strong> tag gives text a strong emphasis which traditionally means that the text is displayed as bold by the browser. This tag is also commonly referred to as the <strong> element.

Question 3.

How is a tag enclosed?

(A) ()
(B) <>
(C) []
(D) {>
Answer:
(B) <>

Explanation:
A tag is an HTML code that defines every structure on an HTML page. They also define the placement of text, images, links in an HTML document. HTML tags begins with “less-than” symbol (<) and end with “greater-than” symbol (>). These symbols are also called angular brackets. A start tag marks the beginning of a tag and its syntax is: <TAGNAME>. An end tag marks the end of a tag and its syntax is: </i’AGNAME>.

Question 4.

We can view the source code of html document in:

(A) Notepad
(B) PowerPoint
(C) Excel
(D) Paint
Answer:
(A) Notepad

Explanation:
Text editors are used by the users who have complete knowledge of HTML. The source code to create a web page are to be written in text editors. The two most commonly used text editors are Notepad and WordPad.

Question 5.

The value of #EFFFFFis .

(A) Green
(B) Black
(C) White
(D) Yeiiow
Answer:
(C) White

Explanation:
The RGB code for black is #000000 The RGB code for green is #008000 1 The RGB code for yellow is #FFFF0O

Question 6.

Which attribute does not come in <HR> tag?

(A) Size
(B) Color
(C) Width
(D) Length
Answer:
(D) Length

Explanation:
The short form of Horizontal Rule tag is <HR> tag. It draws a horizontal line through the part of the page to divide the page into two sections. The <HR> tag is an empty tag that creates a shaded horizontal rule (line) between text.

Question 7.

To display (x+y)2, correct HTML code is

(A) <SUB> (X+Y)2</SUB>
(B) X+Y < SUP> 2 </SUP >
(C) (X+Y) <SUP> 2 </SUP>
(D) <SUP> (X+Y)2</SUP>
Answer:
(C) (X+Y) <SUP> 2 </SUP>

Explanation:
The <SUP> tag is used to display the text as superscript. The superscript text will appear half a character height above the other characters.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 8.

The………….. tag is used to display the text as subscript.

(A) <ins>
(B) <SUB>
(C) <em>
(D)<strong>
Answer:
(B) <SUB>

Explanation:
The subscript text will appear half a character height beneath the other characters.

Question 9.

……………. defines the largest heading.

(A) <H1>
(B) <H2>
(C) <H3>
(D) <H4>
Answer:
(A) <H1>

Explanation:
<H1> is the largest heading and <H6> is the smallest heading.

Question 10.

BACKGROUND is an attribute of:

(A) <BODY> tag
(B) <FONT> tag
(C) <IMG> tag
(D) <A> tag
Answer:
(A) <BODY> tag

Explanation:
The <body> element contains the entire content of a web page. This tag is also commonly referred to as the <body> element. It must be the second element inside of the parent <html> element, following only the <head> element.

Question 11.

Which of the following is not a browser?

(A) Microsoft Bing
(B) Netscape Navigator
(C) Mozilla Firefox
(D) Opera
Answer:
(A) Microsoft Bing

Explanation:
Microsoft Bing is a web search engine owned and operated by Microsoft. The service has its origins in Microsoft’s previous search engines: MSN Search, Windows Live ‘ Search and later Live Search.

Question 12.

The tag contains the title of the document.

(A) HTML
(B) HEAD
(C) BODY
(D) < TITLE >
Answer:
(D) < TITLE >

Question 13.

The value of #0000FF is:

(A) Blue
(B) White
(C) Red
(D) none of the above
Answer:
(A) Blue

Explanation:
The RGB color code of white is #FFFFFF The RGB color code of red is

Assertion and Reason Based MCQs

Directions: In the following questions, A statement of Assertion (A) is followed by a statement of Reason (R). Mark the correct choice as.
(A) Both A and R are true and R is the correct explanation of A
(B) Both A and R are true but R is Not the correct explanation of A
(C) A is true and R is false
(D) A is false and R is true

Question 1.

Assertion(A): The source code to create a web page are to be written in text editors.
Reason(R): Text editors are used by the users who have complete knowledge of HTML.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
In the text editors, the user who had the complete knowledge of HTML code used them. The two most commonly used text editors are Notepad and WordPad.

Question 2.

Assertion(A): The <!DOCTYPE> declaration is not an HTML tag.
Reason(R): The <!DOCTYPE> is an instruction to the web browser about what version of HTML the page is written in.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
The <!DOCTYPE> dedarationmustbethevery first thing in your HTML document, before the <html> tag. It must be present at the top of the document and should be written as follows: c.’DOCTYPE htmi>

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 3.

Assertion(A): With HTML, you can develop and publish documents and data with headings, text, tables, lists, hyperlinks, photos, etc., in static form.
Reason(R): You can create forms for managing transactions, for use in searching the information, making reservations, ordering products, etc.

Answer:
(B) Both A and R are true but R is Not the correct explanation of A

Explanation:
HTML is used to design and create a web page. It is used as a scripting language. Besides HTML, there are other languages also like Java, PHP .NET, etc. using which websites can be created. With the commands or tags available in HTML you can add spreadsheets, video clips, sound clips, presentations and other applications directly in the web page.

Question 4.

Assertion(A): HTML is a platform independent language.
Reason(R): As the same HTML program works on any operating system without any modification.

Answer:
(A) Both A and R are true and R is the correct explanation of A
Explanation:
In computing, cross-platform software is a computer software that is implemented on multiple computing platforms.

Question 5.

Assertion(A): In HTML, the tag <HTML>is same as <html>.
Reason(R): HTML is not a case sensitive language

Answer:
(A) Both A and R are true and R is the correct explanation of A

Explanation:
Case sensitive means both uppercase and lowercase letters are treated as same. Thus, in HTML, tag and attributes are not case-sensitive.

Question 6.

Assertion(A): Attributes provides additional information about HTML elements used to create a web page.
Reason(R): Attributes are always mentioned in the end tag.

Answer:
(C) A is true and R is false

Explanation:
Attributes gives some additional information about the tag. All HTML elements can have their own attributes. Attributes are always mentioned in the start tag.

Case-Based MCQs

Attempt any ? sub-parts from each question. Each sub-part carries 1 mark.
I. HTML can be used to insert images in the following formats: GIF (Graphics Interchange Format) XBM (X Bitmap) JPG or JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) The <IMG> tag is used to insert an image in a web page. It is very important to know that images are not technical part of the web page file, they are separate files which are inserted into the web page, when it is viewed by a browser.
So, a simple web page with one image is actually two files. When an HTML file is displayed in a browser, it requests the image file and places it on the web page where the tag appears.

Question 1.

Web browsers display images in the following format

(A) XBM
(B) JPEG
(C) GIF
(D) All of these
Answer:
(D) All of these

Explanation:
HTML supports various formats of the images, like Graphics Interchange Format (GIF), Joint Photographic Experts Group (JPEG), etc. GIF is limited to an 8-bit palette or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images whereas JPEG is the best format for photographers. It contains million colors.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 2.

Which tag is used to insert an image in web page?

(A) <A>
(B) <TABLE>
(C) <IMG>
(D) <P>
Answer:
(C) <IMG>

Explanation:
Images can enhance the appearance and the design of a web page. In HTML, the <IMG> tag is used to define images. The <IMG> tag at a minimum, takes two attributes, ALT and SRC.

Question 3.

The correct HTML code for inserting an image is :

(A) <IMG href=”image.gif”>
(B) <IMG> image.gif</gif>
(C) < IMG src = “image.gif “>
(D) cIMAGE src = “image.gif”>
Answer:
(C) < IMG src = “image.gif “>

Explanation:
The syntax of inserting an image in a web page is: <IMG SRC=”URL”> The URL points to the location where the image is stored. The browser puts the image where the image tag occurs in the document.

Question 4.

src attribute used with <IMG> tag stands for :

(A) screen
(B) screen resolution count
(C) source
(D) structure
Answer:
(C) source

Explanation:
The SRC attribute is used to specify the URL of the image. The SRC attribute is mandatory to insert an image.

Question 5

attribute is used to specify the location of an image file.

(A) alt
(B) src
(C) align
(D) name
Answer:
(B) src

Explanation:
The SRC attribute is used to give te URL of an image. It is compulsory to use this attribute to insert an image.

Question 6.

The alternate text of an image can be displayed by using the <IMG> tag.

(A) src
(B) alt
(C) align
(D) None of these
Answer:
(B) alt

Explanation:
The Alt attribute contains the alternate text for an image. It appears on the web page if image does not appear on the web page due to some reason.
Syntax: <IMG SRC=”URL” ALT=”Text” >

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 7.

alt attribute allows

(A) addition of an alternate hyperlink
(B) addition of a border to image
(C) use of an alternate image in place of the specified image
(D) addition of alternate text about an image Answer:Option (D) is correct.

Explanation:
The text in the ALT attribute appears whenever the image is not shown by the browser for some reason.

II. HTML Structure
HTML document is a combination of various tags, which define the structure and appearance of the web page. Following four basic elements are always present in every HTML document:

The <HTML> tag tells the browser that this is an HTML document. You must begin your html files with this tag and must end your HTML file with matching closing tag.

The <HEAD > tag is used for text and tags that do not appear directly on the web page. It acts as a header of file and contains some information like setting the title of the web page.

The < TITLE > tag contains the document title. This tag lies between <HEAD> and </HEAD > tags. The title specified inside this tag appears on the browser’s title bar.

The <BODY> tag is used for text and tags that appears directly on the web page. It helps us to create a look and feel of the web page. It holds all your content words, pictures and other stuff.

Question 1.

An example of HTML editor is :

(A) Notepad
(B) Dreamweaver
(C) Microsoft frontpage
(D) All of these
Answer:
(D) All of these

Explanation:
Both Dreamweaver and Microsoft Frontpage areWYSIWYG editors. Notepad is a text editor.

Question 2.

The meaning of M in HTML is :

(A) Management
(B) Markup
(C) Modified
(D) Machine
Answer:
(B) Markup

Explanation:
HTML is a HyperText Markup Language which is the most widely used language to create web pages of a website.

Question 3.

Which of the following is the correct code of HTML page?

(A) <HTML>
(B) <HTML>
<HEAD> <TITLE> Hello
</HEADS >
</HTML>
(C) <HTML>
<BODY> Hello
</HTML>
(D) <HTML>
<HEAD> Hello <BODYs </HTMLs
Answer:
(B) <HTML>
<HEAD> <TITLE> Hello
</HEADS >
</HTML>

Explanation:
The structure of a HTML page is: <HTML>
<HEAD>
< title > Document header </title>
</HEAD>
<BODY>
Contents
</body>
</html>

Question 4.

Tags and text that do not display directly on the web page are placed in :

(A) BODY
(B) TABLE
(C) HEAD
(D) TITLE
Answer:
(C) HEAD

Explanation:
The <HEAD> tag defines the document header. It contains the information about a document’s title and style descriptions. It is written inside HTML tag. Syntax: <HEAD>…………</HEAD>

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 5.

A web page normally consists of:

(A) head and body
(B) top and bottom
(C) body and font
(D) body and title
Answer:
(A) head and body

Explanation:
An HTML document contains two distinct parts, the head section and the body section. The head section contains information about the document that is not displayed on the screen. The body section contains the elements that are to be displayed on the web page. Every HTML document should start by declaring that it is an HTML document.

Question 6.

Where do you place the < TITLE > tag in a HTML?

(A) BODY
(B) HEAD
(C) TITLE
(D) FONT
Answer:
(B) HEAD

Explanation:
The <TITLE> tag contains the title of the document. The title is displayed in the title bar at the top of the web browser. The title must be contained in the head section. Syntax: < TITLE > </title>

Question 7.

Which section is used for text and tags that are shown directly on your web pages?

(A) Meta
(B) Head
(C) Body
(D) Table
Answer:
(C) Body

Explanation:
The <body> element contains the entire content of a web page. This tag is also commonly referred to as the <body> element. It must be the second element inside of the parent <html> element, following only the <head> element. Syntax: <body> </body>

III. HTML AND ITS CAPABILITIES
HTML is the most widely used language to create web pages of a website. With CSS and JavaScript, it forms a pillar of web technologies for the World Wide Web. With HTML, you can develop and publish documents and data with headings, text, tables, lists, hyperlinks, photos, etc., in static form. You can create forms for managing transactions, for use in searching the information, making reservations, ordering products, etc.
HTML is an ideal software used to design and create a web page. It is used as a scripting language. Besides HTML, there are other languages also like Java, PHE .NET, etc. using which websites can be created. With the commands or tags available in HTML you can add spreadsheets, video clips, sound clips, presentations and other applications directly in the web page. HTML is a platform independent language. It is not a case sensitive language.

Question 1.

The full for of HTML is………….

(A) Hyper Text Markup Language
(B) Hyper Text Makeup Language
(C) Higher Text Markup Language
(D) Hyper Text mashup Language
Answer:
(A) Hyper Text Markup Language

Explanation:
HTML is a format that tells a computer how to display a web page. The documents themselves are plain text files with special “tags” or codes that a web browser uses to interpret and display information on your , computer screen .

Question 2.

The full form of CSS is ………..

(A) Categorised Style Sheet
(B) Console Style Sheet
(C) Cascading Style Sheet
(D) Cascading Settle Sheet
Answer:
(C) Cascading Style Sheet

Explanation:
CSS stands for Cascading Style Sheets.CSS describes how HTML elements are to be displayed on screen, paper, or in other media.CSS saves a lot of work. It can control the layout of multiple web pages all at once. External stylesheets are stored in CSS files.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 3.

Which of the following statement is/are TRUE?

(A) HTML is an ideal software used to design and create a web page.
(B) HTML is used as a scripting language.
(C) HTML forms a pillar of web technologies for the World Wide Web.
(D) All of these
Answer:
(D) All of these

Explanation:
HTML was invented in November 1990 by a scientist called Tim Berners Lee. The purpose was to make it easier for scientists at different universities to gain access to each

Question 4.

HTML program works on any operating system without any modification which means it is a language.

(A) Platform independent
(B) Platform dependent
(C) Case-sensitive
(D) None of these
Answer:
(A) Platform independent

Explanation:
HTML is a platform independent language as it can be operated on various operating systems.

Question 5.

The tag <HTML>is same as <html> which means HTML is a……language.

(A) Case sensitive
(B) Not a case sensitive language
(C) Platform dependent
(D) Platform independent
Answer:
(B) Not a case sensitive language

Explanation:
HTML is not a case-sensitive language as uppercase and lowercase letters are treated as same.

Question 6.

Which of the following is not a scripting language?

(A) PHP
(B) Java
(C) NET
(D) MS Office
Answer:
(D) MS Office

Explanation:
Microsoft Office, or simply Office, is a family of client-server software, and services developed by Microsoft. Initially a marketing term for an office suite (bundled set of productivity applications), the first version of Office contained Microsoft Word, Microsoft Excel, and Microsoft PowerPoint.

Question 7.

Which of the following function a user can perform using HTML?

(A) With HTML, you can develop and publish documents and data with headings, text, tables, lists, hyperlinks, photos, etc., in static form.
(B) You can create forms for managing transactions, for use in searching the information, making reservations, ordering products, etc.
(C) With the commands or tags available in HTML you can add spreadsheets, video clips, sound clips, presentations and other applications directly in the web page.
(D) All of these
Answer:
(D) All of these

Explanation:
With HTML, you can develop and publish documents and data with headings, text, tables, lists, hyperlinks, photos, etc., in static form, you can create forms for managing transactions, for use in searching the information, making reservations, ordering products, etc.

I. INSERTING IMAGES in HTML
Images can enhance the appearance and the design of a web page. In HTML, the <IMG> tag is used to define images. The <IMG> tag at a minimum, takes two attributes, ALT and SRC. <IMG> tag is empty tag. The attribute which specifies the URL (web address) of the image is SRC. The ALT attribute furnishes an alternate text for an image, if the user for some reason cannot view it (because of slow connection, or if the user uses a screen reader, an error in the SRC attribute). It supports various formats of the images, like GIF, JPEG, etc. GIF is limited to an 8-bit palette or 256 colors.
This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images whereas JPEG is the best format for photographers. It contains 1 million colors.

Question 1.

What is the full form of JPEG?

(A) Joint Photographic Experts Group
(B) Zone Photographic Experts Group
(C) Joint Photography Experts Group
(D) Joint Photographic Excel Group
Answer:
(A) Joint Photographic Experts Group

Explanation:
The attribute which is used to enumerate the location where the linked text, phrase or image is going to open is called the target attribute.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 2.

The full form of GIF is……..

(A) Graphics Interchange Formation
(B) Graphical Interchange Format
(C) Graphics Interchange Format
(D) Graphics Interconnected Format
Answer:
(C) Graphics Interchange Format

Explanation:
The Graphics Interchange Format i is a bitmap image formal that was developed bv a team at the online services provider CompuServe led by American computer scientist Stove Wilhite and released on 15 June 1987.

Question 3.

The attributes of <IMG> tag is/are

(A) ALT
(B) SRC
(C) Both (A) and (B)
(D) None of these
Answer:
(C) Both (A) and (B)

Explanation:
Both SRC and ALT are the attributes of <IMG> tag.The SRC attribute is used to specify the URL of the image. The SRC attributeis mandatory to insert an image.The Alt attribute contains the alternate text for an image.

Question 4.

< IMG > is an empty tag which means

(A) It does not have opening tag
(B) It does not have closing tag
(C) It does not support any attribute
(D) None of these
Answer:
(B) It does not have closing tag

Explanation:
An empty tag is a tag which does not hold an end tag which means only starting tag is there in <IMG>. The </IMG> is not required.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 5.

In HTML, the < IMG > tag is used to define

(A) Website
(B) Webpages
(C) Images
(D) None of these
Answer:
(C) Images

Explanation:
In HTML, <IMG> tag is used to insert an image on the webpage. It used the SRC attribute.

Question 6.

Which of the following statements is/are FALSE?

(A) JPEG contains 256 colors.
(B) GIF is limited to an 8-bit palette or 1 millioncolors.
(C) GIF format is best suited for photographers.
(D) All of these
Answer:
(D) All of these

Explanation:
HTML supports various formats of the images, like Graphics Interchange Format (GIF), Joint Photographic Experts Group (JPEG), etc. GIF is limited to an 8-bit palette or 256 colors.Most graphical web browsers can display both GIF and JPG images inline.

MCQ Questions for Class 10 Computer Applications Chapter 5 HTML Basics

Question 7.

The ALT attribute is used to………..

(A) Specifies the URL.
(B) Furnish an alternate text for an image.
(C) Form diagrams, shapes, logos and cartoon style images.
(D) None of these
Answer:
(B) Furnish an alternate text for an image.

Explanation:
The <ALT> attribute is used to display text when the iipage is riot loaded by the browser.

MCQ Questions for Class 10 Computer Applications with Answers

error: Content is protected !!