HTML and XHTML Quiz Questions
HTML and XHTML Quiz Questions
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:
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
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
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>
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.
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
d) The previous answers are not correct d) The previous answers are not correct
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
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
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 -->
<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
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>
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
both in the <head> and in the <body> d) The previous answers are not correct
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
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
c) Indicate the URL of an image that complements the text of a paragraph to load
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
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:
Question 73:
a) charset
b) coding
c) encoding
d) enctype
Question 74:
a) <br />
b)
c) <br>
Question 75:
a) alt="Actividades"
b) href="#actividades"
c) method="post"