HTML

Question 1

A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S.  Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?

A
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
B
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
C
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
D
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S
       Web-Technologies       HTML       GATE 2014 [Set-2]
Question 1 Explanation: 
By default, HTTP is a persistent connection.
Whenever a browser opens a webpage, a separate HTML request must be sent for each image or component in HTML like css file or javascript. But all can be done in the same TCP connection.
Question 2

Consider the three commands : PROMPT, HEAD and RCPT.
Which of the following options indicate a correct association of these commands with protocols where these are used?

A
HTTP, SMTP, FTP
B
FTP, HTTP, SMTP
C
HTTP, FTP, SMTP
D
SMTP, HTTP, FTP
       HTML       HTML       GATE 2005-IT
Question 2 Explanation: 
Note: Out of syllabus.
Question 3

The diagram that helps in understanding and representing user requirements for a software project using UML (Unified Modeling Language) is:

A
Entity Relationship Diagram
B
Deployment Diagram
C
Data Flow Diagram
D
Use Case Diagram
       Software-Engineering       HTML       GATE 2004-IT
Question 3 Explanation: 
Note: Out of syllabus.
Question 4
Choose the most appropriate HTML tag in the following to create a numbered lists.
A
< dl >
B
< ul >
C
< li >
D
< ol >
       Web-Technologies       HTML       ISRO-2017 May
Question 4 Explanation: 
→ The
    tag defines an ordered list. An ordered list can be numerical or alphabetical.
    → The
      tag defines an unordered (bulleted) list. Use the
        tag together with the
      • tag to create unordered lists.
Question 5
In HTML, which of the following can be considered a container?
A
SELECT
B
Value
C
INPUT
D
BODY
       HTML       HTML       ISRO CS 2011
Question 5 Explanation: 
→ A container tag in HTML is one which has both opening and closing tags.
→ There are some tags in HTML which don't have a closing tag.
→ They end within the same tag.
Examples:
→ is a container tag, it has it's closing tag as .
→Other examples are , ,

etc.
→These are called container tags because they contain something, within the two tags.

Question 6

Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?

A
BASH
B
BASH
C
BASH
D
BASH
       Webtechnologies       HTML       UGC-NET CS 2018 DEC Paper-2
Question 6 Explanation: 
• The text-align property sets the horizontal alignment (like left, right, or center) of the content in or .
• The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in or .
Question 7
HTML(Hypertext Markup language) has language elements which permit certain actions other than describing the structure of the web document. Which of the following actions is NOT supported by pure HTML(Without any server or client side scripting) pages?
A
Embed web objects from different sites into the same page
B
Refresh the page automatically after a specified interval
C
Automatically redirect to another page upon download
D
Display the client time as part of the page
       Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
Question 7 Explanation: 
We can achieve first three options by using HTML(static web pages). But to display the client time alone HTML is not sufficient , We require Java Script.
Question 8
Consider the HTML table definition given below":

The number of rows in each column and the number of columns in each row are:
A
(2,2,3) and (2,3,2)
B
(2,2,3) and (2,2,3)
C
(2,3,2) and (2,3,2)
D
(2,3,2) and (2,2,3)
       Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
Question 8 Explanation: 
If you create HTML page with the above code,we will get table structure as below
Question 9
Which of the following statements is/are False?
1. XML overcomes the limitations in HTML to support a structured way of organizing content
2. XML specification is not case sensitive while HTML specification is case sensitive
3. XML supports user defined tags while HTML uses pre-defined tags.
4. XML tags need not be closed while HTML tags must be closed
A
2 only
B
1 only
C
2 and 4 only
D
3 and 4 only
       Web-Technologies       HTML       Nielit Scientist-B IT 22-07-2017
Question 9 Explanation: 
● Both XML and HTML languages are case sensitive.
● Both XML and HTML consists of Tags. Every open tag should consists of close tag in both languages.
Question 10
To add a background color for all h1 elements, which of the following HTML syntax is used
A
h1 { background-color :#FFFFFF}
B
{ background-color :#FFFFFF} . h1
C
h1 { background-color :#FFFFFF} . h1(all)
D
h1. all{bgcolor= #FFFFFF}
       Web-Technologies       HTML       ISRO CS 2015
Question 10 Explanation: 
→ Select and style all

elements AND all

elements:
Example:
h1, p { background-color: yellow; }
→ To style several elements with the same style, separate each element name with a comma.

Question 11
To declare the version of XML, the correct syntax is
A
< ?xml version='1.0'/ >
B
< *xml version='1.0'/ >
C
< ?xml version="1.0"/ >
D
< /xml version='1.0'/ >
       Web-Technologies       HTML       ISRO CS 2015
Question 11 Explanation: 
1.XML stands for eXtensible Markup Language.
2.XML was designed to store and transport data.
3.XML was designed to be both human- and machine-readable.
Syntax: < ?xml version="1.0"/ >
Question 12
​ Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called
A
Hypertext
B
hypermedia
C
Both (A) and (B)
D
Anchoring
       Web-Technologies       HTML       Nielit Scientific Assistance IT 15-10-2017
Question 12 Explanation: 
Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called hypertext or hypermedia.
Question 13

Which of the following is the correct syntax to insert an image in HTML documents?

A
< a href=”flower.jpg”? >
B
< image href=”flower.jpg” width=”500” height=”600” >
C
< img src=”flower.jpg” >
D
< img href=”flower.jpg” >
       Web-Technologies       HTML       JT(IT) 2018 PART-B Computer Science
Question 13 Explanation: 
→ In HTML, images are defined with the < img > tag.
→ The < img > tag is empty, it contains attributes only, and does not have a closing tag.
→ The src attribute specifies the URL (web address) of the image: < img src="url" >
Question 14

How many different headings tags are available in HTML?

A
6
B
8
C
3
D
5
       Web-Technologies       HTML       JT(IT) 2018 PART-B Computer Science
Question 14 Explanation: 
→ HTML defines six levels of headings.
→ A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading.
→ The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.
Question 15
Given below are several usages of the anchor tag in HTML.
(a) <A href=”http://w3c.org/test.html” >
(b) <A href=”/HTML/test.html”> Test </A >
(c) <A href=”test.html”>Test < /A >
(d) <A href=”test.html#top”>Test < /A >
Which of the above are valid?

A
(a) and (b) only
B
(a),(b) and (c) only
C
(b),(c) and (d) only
D
(a),(b),(c) and(d)
       Web-Technologies       HTML       KVS 22-12-2018 Part-B
Question 15 Explanation: 
The “a” is known as an anchor and it acts as a mini URL. So if you had a page called test.html, I could actually link directly to your anchor like this:
https://example.com/test.html#top and it would load your page and scroll to your anchor. All syntaxes are valid for creating hyperlinks.
Question 16
Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called
A
Hypertext
B
hypermedia
C
Both (A) and (B)
D
Anchoring
       Web-Technologies       HTML       Nielit Scientific Assistance CS 15-10-2017
Question 16 Explanation: 
Web links are stored within the page itself and when you wish to 'jump' to the page that is linked, we select the hotspot or anchor. This technique is called hypertext (or) Hypermedia
Question 17
If a user is not able to see the image on the web page, the text that is displayed in place of the image, is specified by which of the following attributes in HTML?
A
ALTERNATE
B
ALTLINK
C
ALT_TEXT
D
ALT
       Web-Technologies       HTML       KVS DEC-2013
Question 17 Explanation: 
● “ALT” attribute is used along with tag to specify the text in place of image, if image not able to see.
● The syntax is
< img src=”file.jpg” alt=”Image can’t be loaded” >
Question 18
Insertion linking with respect to HTML means
A
Linking one part of the document on one computer, to another part of the document on some other computer with the same file name
B
Linking one part of the document on one computer, to another part of the document on some other computer in the same LAN
C
Linking one part of the document to another part of the same document
D
Linking one part of the document to another document on the same computer
       Web-Technologies       HTML       KVS DEC-2013
Question 18 Explanation: 
Linking nothing but creating hyperlinks from HTML page or HTML document to another HTML Page or HTML document.
Question 19
Which of the following is the appropriate format for graphics that can be embedded within an internet document?
A
HTML
B
BMP
C
TIFF
D
GIF
       Web-Technologies       HTML       KVS DEC-2017
Question 19 Explanation: 
Most web browsers (excluding text-only ones like Linux, Mosaic) can display only a handful of these formats inline. The format of about 90% of these files is binary.
1. ​ Graphical interchange format - GIF
For line art (such as one- or two-color logos), simple drawings, animations, and basically any image that has no gradients or blends. GIF is also the best format when you want to display an image with a transparent background.
2. J​ oint Photographic Experts Group - JPEG
JPEG is the best format for colorful, complex images (such as photographs); images containing gradients or color blends; and any other images with millions of colors.
3. ​ Portable Network Graphics - PNG
PNG generally produces better-looking images with smaller file sizes than GIF for the same kinds of limited-color images. Really old browsers, such as IE 3, don’t support the PNG format, but most Web designers now choose this format over GIF because so few people use such old browser. Browsers as recent as IE6 don’t display transparent PNG files properly, which is unfortunate because PNG files tend to handle transparency better.
4. ​ X-Bitmap/X-Pixelmap
X-Bitmaps are a common format on UNIX platforms, and are often found in older image and icon libraries. Here, a bit is used to represent each pixel of the graphics. Consequently, only black and white images are supported. Transparency is possible as in GIF since the white portion is treated as the color of the underlying background (making way for attractive designs). X-Pixel map is the colour equivalent of X-Bitmap. Here, 8 bits represent each pixel(256 colours). Obviously, both methods are very inefficient in terms of storage space required. It is quite uncommon outside the UNIX environment.
Question 20
What is the full form of DTD that is used to describe content is an XHTML document?
A
Document to Definition
B
Document Type Definition
C
Document Towards Definition
D
Document Text Definition
       Web-Technologies       HTML       KVS DEC-2017
Question 20 Explanation: 
→ A DTD defines the structure and the legal elements and attributes of an XML document.
→ With a DTD, independent groups of people can agree on a standard DTD for interchanging data.
→ An application can use a DTD to verify that XML data is valid.
Question 21
What is the correct HTML tag for the largest heading?
A
< H1 >
B
< HEAD > =large
C
< HEADING >=large
D
< H6 >
       Web-Technologies       HTML       KVS DEC-2017
Question 21 Explanation: 
The HTML < h1 > to < h6 > tag is used to define headings in an HTML document.
→ < h1 > defines largest heading
→ < h6 > defines smallest heading.
Question 22
When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains?
A
a mix of ASP.NET and HTML code
B
all ASP.NET code
C
all HTML code
D
as much ASP.NET code as is in the ASP.NET file.
       Web-Technologies       HTML       KVS DEC-2017
Question 22 Explanation: 
When an ASP.NET file is placed on an IIS server and viewed through a browser, the resulting HTML page contains all HTML code.
Question 23

____ element is used to create destination anchors in HTML?

A
< d >
B
< a >
C
< da >
D
< ad >
       Web-Technologies       HTML       JT(IT) 2016 PART-B Computer Science
Question 23 Explanation: 
• HTML offers many of the conventional publishing idioms for rich text and structured documents, but what separates it from most other markup languages is its features for hypertext and interactive documents.
• This section introduces the link (or hyperlink, or Web link), the basic hypertext construct. A link is a connection from one Web resource to another. Although a simple concept, the link has been one of the primary forces driving the success of the Web.
• A link has two ends -- called anchors -- and a direction. The link starts at the "source" anchor and points to the "destination" anchor, which may be any Web resource (e.g., an image, a video clip, a sound bite, a program, an HTML document, an element within an HTML document, etc.)
Question 24
A multimedia project is said to be ___ and user interactive when users are given navigational control
A
Secure
B
hypertext
C
linear
D
non linear
       Web-Technologies       HTML       KVS DEC-2017
Question 24 Explanation: 
A multimedia project is said to be hypertext and user interactive when users are given navigational control
Question 25
<DT> tag is designed to fit a single line of our web page but <DD> tag will accept
A
A character
B
A word
C
A line of text
D
Full paragraph
       Web-Technologies       HTML       KVS 30-12-2018 Part B
Question 25 Explanation: 
→The
tag is used to describe a term/name in a description list.
→The
tag is used in conjunction with
(defines a description list) and
(defines terms/names).
→Inside a
tag you can put paragraphs, line breaks, images, links, lists, etc.
Question 26
Which of the following is true to open a link in a new browser window?
A
< a href=”url” target=”_blank” >
B
< a href=”url” target=”_new” >
C
< a href=”url” target=”_top” >
D
< a href=”url” target=”_self” >
       Web-Technologies       HTML       KVS 30-12-2018 Part B
Question 26 Explanation: 
The < a > tag defines a hyperlink, which is used to link from one page to another. Default target
If no target is specified, the link will open in the current context, unless the user or browser specifies otherwise.
a target=”_blank” Open in New Browser Tab (or Window)
The target attribute specifies where the linked document will open when the link is clicked. The default is the current window. If target="_blank", the linked document will open in a new tab or (on older browsers) a new window.
Question 27
HTML is used to create
A
machine language program
B
high level program
C
web page
D
web server
       ICT       HTML       2011 December UGC NET Paper 1
Question 28
Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?
A
< t d halign = " middle" valign = " center" > BASH < / td >
B
< t d style = " text − a lign : center; vertical − a lign : middle; " > BASH < / td >
C
< t d align = "middle" valign = " center" > B ASH < / td >
D
< t d style = " horizontal − a lign : c enter; vertical − a lign : m iddle; " > B ASH < / td >
       Web-Technologies       HTML       UGC NET CS 2018-DEC Paper-2
Question 28 Explanation: 
● The text-align property sets the horizontal alignment (like left, right, or center) of the content in or .
● The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in or .
Question 29
The word ‘format’ in formal languages means
A
the symbols used have well-defined
B
they are unnecessary, in reality
C
only the form of the string of symbols is significant
D
none of the above
       Web-Technologies       HTML       NIELIT Junior Teachnical Assistant_2016_march
Question 30
Consider the following HTML table definition:
<table border = 1>
   <tr>
            <td> colspan = 2> Text A </td>
  </tr>
   <tr>
              <td> Text B </td>
<td> Text C </td*gt;
   </tr>
 <tr>
               <td rowspan = 2> Text D </td>
 </tr>
 <tr>
          <td> Text E </td>
 <tr>
          <td> Text F </td>
 </tr>
</table>
The above HTML code would render on screen as:
A

B

C

D

       Web-Technologies       HTML       UGC NET CS 2017 Nov- paper-3
Question 30 Explanation: 

Question 31
Which of the following statements is/are TRUE ?
(a) In HTML, character entities are used to incorporate external content into a web page, such as images.
(b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
A
Only (a) is TRUE.
B
Only (b) is TRUE.
C
Both (a) and (b) are TRUE.
D
Neither (a) nor (b) is TRUE.
       Web-Technologies       HTML       UGC NET CS 2017 Nov- paper-3
Question 31 Explanation: 
FALSE: Entities are used to display characters that have special HTML meaning, such as “<” and “>”.
FALSE: Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
Question 32
Which of the following HTML code will affect the vertical alignment of the table content?
A
B
C
D
       Web-Technologies       HTML       UGC NET CS 2017 Jan- paper-3
Question 32 Explanation: 

Question 33
Which of the following statements is not correct?
A
HTML is not screen precise formatting language.
B
HTML does not specify a logic.
C
DHTML is used for developing highly interactive web pages.
D
HTML is a programming language.
       Web-Technologies       HTML       UGC NET CS 2016 July- paper-3
Question 33 Explanation: 
HTML is not a programming language. It is a markup language. The abbreviation of HTML is hypertext markup language.
Question 34
Which of the following tag in HTML is used to surround information, such as signature of the person who created the page ?
A
< body > < / body >
B
< address > < / address >
C
< strong > < / strong >
D
< em > < / em >
       Web-Technologies       HTML       UGC NET CS 2016 Aug- paper-3
Question 34 Explanation: 
This tag is for address information, signatures, etc, normally at the top or bottom of a document. typically, it is italic and/or right justified or indented.
The format is:
< ADDRESS > text ... < / ADDRESS >
Question 35
__________ tag is an extension to HTML that can enclose any number of Javascript statements.
A
< SCRIPT >
B
< BODY >
C
< HEAD >
D
< TITLE >
       Web-Technologies       HTML       UGC NET CS 2015 Dec - paper-3
Question 35 Explanation: 

Question 36
Which tag is used to enclose any number of javascript statements in HTML document?
A
< code >
B
< script >
C
< title >
D
< body >
       Web-Technologies       HTML       UGC-NET DEC-2019 Part-2
Question 36 Explanation: 
The < script > tag is used to define a client-side script (JavaScript).
The < script > element either contains scripting statements, or it points to an external script file through the src attribute.
Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
Question 37
Match List-I with List-II:


Choose the correct option from those given below:
A
(a).(i), (b).(ii), (c).(iii), (d).(iv)
B
(a).(ii), (b).(i), (c).(iii), (d).(iv)
C
(a).(iv), (b).(iii), (c).(ii), (d).(i)
D
(a).(iii), (b).(iv), (c).(ii), (d).(i)
       Web-Technologies       HTML       UGC-NET DEC-2019 Part-2
Question 37 Explanation: 
Frame attribute → To specify the side of the table frame that display border
The < frame > tag defines one particular window (frame) within a < frameset >.
Each < frame > in a < frameset > can have different attributes, such as border, scrolling, the ability to resize, etc.
< tr > tag → To enclose each row in a table.
The < tr > tag defines a row in an HTML table.
A < tr > element contains one or more or elements
Valign attribute → for vertical alignment of content in cell
< a > tag → To create link in HTML
Question 38

What are tags used for?

A
To replace paragraph i.e., p tags
B
To logically divide the paragraphs
C
To logically divide the document
D
To provide space between tables
       Web-Technologies       HTML       APPSC-2016-DL-CA
Question 39

What are meta tags used for?

A
To store information usually relevant to browsers and search engines
B
To only store information usually relevant to browsers
C
To only store information about search engines
D
To store information about external links
       Web-Technologies       HTML       APPSC-2016-DL-CA
Question 40

Which is true to change the text colour to red?

A
< BODY BGCOLOUR=RED >
B
< BODY TEXT=RED >
C
< BODY COLOUR=RED >
D
None of the given options
       Web-Technologies       HTML       APPSC-2016-DL-CA
Question 41

Which tag is used to display the numbered list?

A
< OL > < /OL >
B
< DL > < /DL >
C
< UL > < /UL >
D
< LI > < /LI >
       Web-Technologies       HTML       APPSC-2016-DL-CA
There are 41 questions to complete.
PHP Code Snippets Powered By : XYZScripts.com
error: Content is protected !!