0% found this document useful (0 votes)
98 views10 pages

HTML and XHTML Quiz Questions

This document contains 24 multiple choice questions about basic concepts of HTML and XHTML. The questions cover topics such as tags, attributes, hyperlinks, tables, forms, stylesheets, and more.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views10 pages

HTML and XHTML Quiz Questions

This document contains 24 multiple choice questions about basic concepts of HTML and XHTML. The questions cover topics such as tags, attributes, hyperlinks, tables, forms, stylesheets, and more.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

d) The previous answers are not correct

Complete HTML
Question 5:
Pregunta 1: In HTML, to create a hyperlink, the tag is used.
What tag has never existed in the HTML specification? a) <link>
<blink> b) <href>
b) <font> c) <a>
c) <strike> d) The previous answers are not correct
d) The previous answers are not correct
Question 6:
Question 2: In HTML, the <p> tag is used to
What is the correct code to insert an image in XHTML? a) Define a destination point for a hyperlink
<img src=[Link]> b) Insert a line break
b) <img src="[Link]"> c) Define a paragraph
c) <img src="[Link]" /> d) The previous answers are not correct.
d) <img src="[Link]" alt="Text" />
Question 7:
Question 3: Is the following a correct fragment of XHTML code?
<ul>
In HTML, to indicate the tab order among the controls of a Café
the attribute is used in the form Tea
<ul>
a) old
Black tea
<li>Green tea</li>
b) index
</ul>
Milk
c) tab
</ul>
d) tabindex Yes

b) No
Question 4:

In HTML, a data table uses the following tags Question 8:


a) <thead>, <tfoot>, <caption>
In HTML, to define a keyboard shortcut, it is used
b) <ol>, <ul>, <li> a) The shortcut attribute
c) <dl>, <dt>, <dd> b) The accesskey attribute
<p>A <b><i>short</b></i> paragraph</p>
c) The key attribute
a short <b><i>paragraph</i></b>
d) It cannot be done

Question 13:
Question 9:
In HTML, to define that the main language of a page is Spanish, you
What is the correct XHTML code to reference a stylesheet? employs
external?
a) <html lang="en">
a) <style src="[Link]" />
<html id="es">
<stylesheet>[Link]</stylesheet>
c) <head lang="en">
<link rel="stylesheet" type="text/css" href="[Link]" />
d) <head id="es">
d) <script rel="stylesheet" type="text/css" href="[Link]" />

Pregunta 14:
Question 10:
The <ol> and <li> tags are used to create
In HTML, the summary attribute is used to define a summary of
a) A data table
a) The entire website
b) An ordered list
b) A list
c) An unordered list
a form
d) The previous answers are not correct
d) A table

Pregunta 15:
Question 11:
What HTML attribute is used in a form to specify the page to
In HTML, the <h1>, <h2>, and <h3> tags are used to define the one to which the data will be sent?

a) Hyperlinks a) action

b) Headers b) file

c) Lists c) method

d) Tables d) name

Question 12: Question 16:

What is the correct code for a paragraph in XHTML? Indicate which is the incorrect statement regarding the definition of CSS styles.
en una página XHTML
a) <p>A <b><i>short</i></b> paragraph</p>
a) They can be defined within the page with the code <style
a short paragraph type="text/css">...</style>
b) They can be defined within the page with the code <p style="..."></p> What is the correct XHTML code for the following attribute and its value?
</p>
a) WIDTH=80
c) It is possible to link to an external file with the code <script>
language="css" type="text/css" href="[Link]"></script> b) width=80

d) It is possible to link to an external file with the code <link c) width="80"


rel="stylesheet" type="text/css" href="[Link]" />
d) WIDTH="80"

Question 17:
Question 21:
The HTML element used to define a label for a control
of the form is In HTML, the elements of an unordered list are defined with

a) <legend> <li>

b) <fieldset> b) <ol>

c) <field> c) <option>

d) The previous answers are not correct d) <ul>

Pregunta 18: Question 22:

What are frames? How can CSS be used on a webpage?

a) Parts that make up a form in which data is requested Linked and inserted

b) Parts that the browser window can be divided into to display b) Linked, inserted and online
different websites
c) Linked, inserted, online, and filtered
c) Sections within the same webpage to which you can navigate
links d) The previous answers are not correct.

d) The previous answers are not correct.


Question 23:

Question 19: In HTML, to reference an external stylesheet, the tag is used


<link> with the attribute
In HTML, to define a horizontal line of separation, it is used
a) link
a) <dd>
b) src
<hr>
c) url
c) <pre>
d) The previous answers are not correct.
d) <xmp>

Question 24:
Question 20:
What type of encoding should be indicated in an HTML form so that it In HTML, to include script code that is found in an external file
Can you send files? is used

application/x-www-form-urlencoded <script src="[Link]">

b) multipart/form-data b) <script file="[Link]">

text/plain <script code="[Link]">

d) The previous answers are not correct d) The previous answers are not correct

Question 25: Question 29:

In HTML, to mark an abbreviation, the tag is used. What HTML attribute is used to define inline styles?

a a) class

b) <abbr> b) css

<short> c) font

d) The previous answers are not correct d) style

Pregunta 26: Question 30:

What does XHTML mean? Which HTML tag formats the text and preserves whitespace as is?
How are they introduced?
a) Xml HyperText Markup Language
<address>
b) eXtensible HyperText Modeling Language
b) <blockquote>
c) eXtensible HyperText Markup Language
c) <ins>
The previous answers are not correct.
d) <pre>

Question 27:
Question 31:
What tag is discouraged in XHTML 1.0?
In XHTML, to define a horizontal line of separation, we use
a) <font>
a) <hr />
b) <dl>
<line />
c) <dt>
c)
d) The previous answers are not correct
d) The previous answers are not correct

Question 28:
Question 32:
To trigger the opening of a link in a new window, the d) All answers are correct
attribute

a) target="_parent" Question 36:


b) target="_self" What HTML elements have little use unless used with CSS?

target="_top" a) <a> and <p>

d) target="_blank" b) <b> y <i>

c) <div> and <span>


Question 33:
d) <sub> y <sup>
In HTML, to group elements in a dropdown list, it is used

<ul> Pregunta 37:


b) <ol> The <blockquote> tag is used to define
c) <fieldset> a) A block of code

d) <optgroup> b) A search form

c) A paragraph
Question 34:
d) A quote
What is the correct XHTML code to reference a stylesheet
external?
Question 38:
<link rel="stylesheet" type="text/css" href="[Link]" />
In HTML, the correct way to create a comment is
<link rel="stylesheet" type="text/css" href="[Link]">
a) <-- The comment -->
c) <link rel=stylesheet type=text/css href=[Link] />
b) <!-- The comment! -->
d) <link rel=stylesheet type=text/css href=[Link]>
c) <!-- The comment -->

Question 35: d) <!-- The comment -->

Identify the function of the HTML tag <noscript>


Question 39:
a) The <noscript> tag is used to define content that summarizes
the functionality of a script: this content is displayed only if the browser Which HTML tag is used to define an internal stylesheet?
does not support scripting
a) <css>
b) The <noscript> tag disables the capability in the browser to
run a script b) <link>

c) The <noscript> tag can be used by designers to c) <script>


indicate that a website uses scripting: if <noscript> is used, the
the browser will process the web page more efficiently d) <style>
Question 40: What tag has never existed in the HTML specification?

Which of the following is not a correct HTML tag? <marquee>

a) <input type="text"> b) <address>

b) <input type="radio"> c) <colgroup>

c) <input type="select"> d) The previous answers are not correct

<input type="checkbox">
Question 45:

Question 41: In HTML, to indicate the tab order among the controls of a
form is used
In HTML, the tag used to group fields in a form is
a) The tab attribute
a) <fieldset>
b) The tabindex attribute
b) <legend>
c) The alt attribute
c) <label>
d) It cannot be done

d) The previous answers are not correct

Question 46:
Question 42:
What is the correct code for a paragraph in XHTML?
In an XHTML page, what is the correct way to reference a
external file with JavaScript code called "[Link]"? a) <P></p>

<script name="[Link]" type="text/javascript" /> b) <P></P>

b) <script href="[Link]" type="text/javascript" /> c) </p><p>

c) <script src="[Link]" type="text/javascript" /> d) <p></p>

d) The previous answers are not correct


Question 47:

Question 43: Where does the following link go? <a href="#indice">Index</a>

Where can JavaScript code be inserted in an HTML document? to another page on the same website

a) In the <head> b) To another page on another website

b) In the <body> c) To a section on the same webpage

both in the <head> and in the <body> d) The previous answers are not correct

d) If the code is in a separate file, only in the <head>


Question 48:

Question 44:
Is the following a correct fragment of XHTML code? Pregunta 52:
<table>
<tr> In HTML, to define the active or sensitive parts of an image map, you
January employ
February
<tr> a) <field>
10
20 b) <part>
</table>
<area>
Yes
d) The previous answers are not correct.
b) No

Question 53:
Question 49:
In HTML, the <caption> tag is used to
In HTML, rowspan and colspan are attributes of the tag.
a) Define the page title
a) <div>
b) Define the title of an image
b) <p>
c) Define the title of a table
c) <table>
d) The previous answers are not correct
d) The previous answers are not correct

Question 54:
Question 50:
In HTML, the scope attribute is used to
In HTML, to indicate that a table cell is a header, it is used
the label a) Define in a table the set of data cells for which a
cell provides header information
<tr>
b) Group a set of controls in a form
b) <th>
c) Provide additional information about the website, such as the name
<td> of the author or the creation date of the page

d) The previous answers are not correct d) The previous answers are not correct

Question 51: Question 55:


In HTML, the title attribute is used to What HTML attribute should be used to make an image accessible?
a) Define the title of the page a) access key

b) Definir el nombre de un elemento b) old

c) Provide additional information about an item c) title

d) The previous answers are not correct d) The previous answers are not correct
Question 56: Question 60:

What is the correct place in an HTML document to refer to a In HTML, a keyboard shortcut is defined using the attribute
external stylesheet?
a) shortcut
a) At the beginning of the document
b) key
b) In the <head> section
c) accesskey
c) In the <body> section
d) shortcut
d) Al final del documento

Question 61:
Question 57:
When writing an XHTML page
What tag is discouraged in XHTML 1.0?
a) The values of the attributes do not need to be enclosed in quotes
a) <b>
b) The attribute values need to be enclosed in quotes
b) <i>
c) All tags require at least one attribute
<center>
d) The previous answers are not correct
d) The previous answers are not correct

Question 62:
Question 58:
HTML tables (tag <table>)
What HTML tag is used to write JavaScript code?
a) They are not accessible, so they have to be used when there is no other.
a) <script> alternative

b) <javascript> b) They must be replaced with images that have alternative text, as this
they will be accessible
c) <scripting>
They have labels and attributes that allow them to be accessible.
d) <js>
d) The previous answers are not correct

Question 59:
Question 63:
In HTML, the <label> element enhances accessibility of
What tag is discouraged in XHTML 1.0?
a) The deaf users and the users with color blindness
a) <abbr>
b) The deaf users and the mute users
b) <b>
c) Users with color blindness and users who are deaf
c) <i>
d) Blind users and users with mobility issues or
skill <center>
Question 64: d) The previous answers are not correct

In HTML, the longdesc attribute is used to


Question 68:
a) Provide the text of a longer description than the one defined with the
alt attribute En HTML, <input name="boton" type="submit" value="cargar" id="enviar">
show a button with the text
b) Indicate the URL of a webpage where a description is provided.
far from the image button

c) Indicate the URL of an image that complements the text of a paragraph to load

d) The previous answers are not correct. c) send

d) submit
Question 65:

In HTML, the elements of a dropdown list are defined with Question 69:
<ol> In HTML, the alt attribute is used for

b) <ul> a) Indicate the URL of a webpage where a description is provided


leave an image
<li>
b) Provide the alternative text for an image
d) <option>
c) Indicate the URL of an image in an alternative format

Question 66: d) The previous answers are not correct.

In an HTML form, when a submit button is pressed, the


Data entered in the form is sent to the URL specified in the attribute Question 70:
from the form called
What are the different DTDs of XHTML?
a) method
["Strict","Transitional","Frameset"]
b) post
["Strict","Transitional","Loose","Frameset"]
c) target
c) Strict, Transitional, Loose
d) The previous answers are not correct
d) Strict, Loose, Frameset

Question 67:
Question 71:
Regarding XML, XHTML, and HTML
What does the <td> tag define in HTML?
a) XHTML is HTML written according to XML
a) A description in a table
b) XHTML and HTML are two languages derived from XML.
b) A title in a table
c) XHTML is a specific application of XML and HTML is an application
concrete of XHTML c) A row in a table
d) A cell in a table d) The previous answers are not correct

Question 72:

In HTML, which of the following statements is true?


Corregir examen Start Delete answers
a) The <ol> tag must be nested within the <li> tag

b) The <p> tag must be nested within the <strong> tag

c) The <li> tag must be nested inside the <ul> tag.

d) The <html> tag must be nested within the <body> tag

Question 73:

What attribute must be used in an HTML form to indicate a


coding for the way to send the data?

a) charset

b) coding

c) encoding

d) enctype

Question 74:

What is the correct XHTML code for a line break?

a) <br />

b)

c) <br>

d) The previous answers are not correct

Question 75:

What HTML attribute is usually used in the tag that defines a


form?

a) alt="Actividades"

b) href="#actividades"

c) method="post"

You might also like