img
HTML

HTML is the standard markup language for creating web pages. It structures content and enables interactive and accessible websites across devices and browsers.

Last updated on:- 29th May 2023


1.
What does HTML stand for ?
HyperText Machine Language
HyperText Markup Language
HyperText Marking Language
HighText Marking Language

HTML stands for ' HyperText Markup Language '. It is the standard markup language mainly used to design and create web pages and web applications.


2.
Which HTML tag is used for making your content appear bold ?
<u>padhakoo</u>
<b>padhakoo</b>
<br>padhakoo</br>
<i>padhakoo</i>

The <b> tag is used to make content appear bold in HTML.


3.
What is the correct sequence of HTML tags for starting a webpage ?
Head, Title, HTML, Body
HTML, Body, Title, Head
HTML, Title, Head, Body
HTML, Head, Title, Body

The correct sequence of HTML tags to start a webpage is HTML, Head, Title, Body.


4.
Which of the following is used to read an HTML page and render it ?
Web server
Web matrix
Web network
Web browser

A web browser is a software application responsible for retrieving, rendering and traversing the information resources on the World Wide Web.


5.
What is DOM in HTML ?
Application programming interface
Language dependent application programming
Hierarchy of objects in ASP.NET
Convention for representing and interacting with objects in html documents

The Document Object Model is a cross-platform and language-independent application programming interface that treats an HTML, XHTML, or XML document as a tree structure. A document can be viewed as a logical tree with help of DOM Model.


6.
Which of the following tag is used to insert a line-break in HTML ?
<pre>
<br>
<a>
<b>

The <br> tag in HTML is used to create a line break in a text.


7.
In which part of HTML do we write the metadeta ?
<head> tag
<title> tag
<body> tag
<html> tag

Metadata informs the search engine about the type of content present on a website. This information is enclosed within the <meta> tag. This tag is written inside the <head> tag.


8.
What is used for styling the HTML layout ?
jQuery
JavaScript
CSS
PHP

CSS or Cascading Style Sheet is a style sheet language which is designed to describe the presentation of a website's content including layouts, colors and fonts.


9.
How to create an unordered list in HTML ?
<i>
<ul>
<li>
<ol>

The <ul> tag in HTML is used to display a list of items in a bulleted format. There can be four types of an unordered list: disc, circle, square, and none.


10.
What is the correct syntax to create a hyperlink in HTML ?
<a> www.padhakoo.in <padhakoo.in /a>
<a href = 'www.padhakoo.in'> padhakoo.in </a>
<a link = 'www.padhakoo.in'> padhakoo.in </a>
<a url = 'www.padhakoo.in' padhakoo.in /a>

The href (Hypertext reference) is an HTML attribute of the anchor tag used to create a link to another page.


11.
How to create an ordered list in HTML ?
<li>
<ul>
<ol>
<i>

The <ol> tag in HTML is used to display the list items in a numbered format. There can be different types of numbered list: numeric number, capital alphabet, small alphabet, etc.


12.
Which of the following element is responsible for making the text italic in HTML ?
<it>
<pre>
<italic>
<i>

The <i> tag in HTML is used to display the written text in an italic format.


13.
Which of the following brackets are used to enclose the HTML tags ?
( and )
{ and }
[ and ]
< and >

All HTML tags must be enclosed within the angular < > brackets.


14.
Which of the following tag is used to add rows in a table ?
<td> and </td>
<th> and </th>
<tr> and </tr>
None of the above

The <tr> tag in HTML is used to define the rows in the table. It can consist of one or more <th> head cells and <td> data cells to define a single row of an HTML table.


15.
What is the use of <hr> tag in HTML ?
New line
Vertical ruler
New paragraph
Horizontal ruler

The <hr> tag draws a horizontal line. It is used to specify a paragraph-level thematic break in the HTML document.


16.
Which of the following attribute is used to provide a unique name to an element ?
class
id
type
value

The 'id' attribute is used to specify a unique id for an element of the HTML document. It allocates the unique identifier which can be used by JavaScript and CSS to perform certain tasks.


17.
Which works similar to <b> tag ?
<blockquote>
<strong>
<em>
<i>

Browsers show contents written inside the <strong> element in bold.


18.
Which of the following extension is used to save an HTML file ?
.hl
.h
.htl
.html

.html or .htm extensions are used to save an HTML file.


19.
Which tag is used to create a dropdown in HTML forms ?
<input>
<select>
<text>
<textarea>

<select> element is used to create a drop-down list in HTML forms. It is mainly used to collect user input. Option tags are used within the <select> element to define available options from the drop-down list.


20.
Which of the following tag is used to create a text area in HTML forms ?
<textarea>
<text>
<input type=”text” />
<input type=”textarea” />

The <textarea> tag is used in a form to declare a text area element. It allows the user to enter text in multiple rows.


21.
Which of the following is a paragraph tag ?
<p>
<para>
<hr>
<a>

<p> tag is used for a paragraph in HTML.


22.
Which of the following HTML tag is used to display the text with a scrolling effect ?
<marquee>
<scroll>
<div>
<slide>

The <marquee> tag is used to scroll text or images in HTML.


23.
How to insert a background image in HTML ?
<img background = 'img.png'>
<bg-image = 'img.png'>
<body background = 'img.png'>
None of the above

To apply a background image to the entire document, use the 'background' attribute in the <body> tag.


24.
Which of the following is the correct way to create a list using the lowercase letters ?
<ol type = 'a'>
<ol lowercase = 'a'>
<ol letter = 'a'>
<ol case = 'a'>

The 'type' attribute is used with the <ol> tag to create a list using lowercase letters.


25.
Which of the following HTML attribute is used to define inline styles ?
type
class
inline
style

The 'style' attribute is used to define inline styles in HTML.


26.
The tags in HTML are ____________
case-sensitive
in upper case
not case sensitive
in lowercase

HTML tags are not case sensitive.


27.
Which of the following is the root tag of any HTML document ?
<body>
<head>
<title>
<html>

The <html> tag represents the root of an HTML document.


28.
Which HTML tag is used for embedding YouTube videos ?
<video>
<clip>
<frame>
<iframe>

The <iframe> tag is used for embedding YouTube videos.


29.
To show a deleted text, which HTML tag is used ?
<del>
<em>
<strong>
<ins>

The <del> tag is used to show deleted text in HTML.


30.
Which of the following is not an HTML5 tag ?
<track>
<video>
<slider>
<source>

The <slider> tag is not an HTML5 tag.

img

"Embrace curiosity, unlock knowledge"

Copyright © 2023 - Some rights reserved

Made with

in INDIA