Sei sulla pagina 1di 3

1.

What is the markup language used exclusively to


provide formatting and alter the appearance of Web
page elements?
a. ASP.NET
b. CSS
c. XHTML
d. XML
2. What attribute that must be present for strict
XHTML compliance is often missing when images are
placed on a Web page?
a. img
b. src
c. alt
d. p
3. Which of the simple CSS selectors requires no
special syntax?
a. Class selector
b. ID selector
c. Internal style sheet
d. Type selector
4. What is the generally accepted technique for page
layout that also passes strict XHTML validation?
a. CSS
b. Tables
c. Frames
d. Partitions
5. What tool do you use to ensure that web pages
follow a specified markup language standard?
a) element writer
b) DocType
c) DTD
d) XHTML
6. What declaration statement establishes the
XHTML document as strict, transitional, and
frameset?
a) <DTD>
b) <xhtmll>
c) <meta http>
d) <!DOCTYPE>
7. Which of the following is not a commonly used
element on web pages?
a) <head>
b) <title>
c) <body>
d) <text>
8. What attribute is required for XHTML?
a) xmlns
b) content
c) xml

d) xhtml
9. What do you use to display HTML elements
including fonts, borders, color, size, and so forth with
today's web pages?
a) XUL
b) SVG
c) CSS
d) MIME
10. What tag starts a table row?
a) <table>
b) <row>
c) <tr>
d) <table row>
11. Which is the first thing a user will see in the head
information of a Web page?
A - Title
B - Body
C - Class
D Value
12. Which folder in the default Visual Studio
template contains a file named, Site.CSS?
A - Styles
B - Scripts
C - Properties
D - Web Applications
13. The <!DOCTYPE> statement is optional in HTML
but required for XHTML.
a. True
b. False
14. The <!DOCTYPE> statement is optional in XHTML.
a. True
b. False
15. <meta> element is required for XHTML.
a. True
b. False
16. <meta> element is not required for XHTML.
a. True
b. False
17. <Text> is valid for XHTML.
a. True
b. False
18. <Text> is not valid for XHTML.
a. True
b. False

Complete the following sentences by writing the


correct word or words in the blanks provided.
1. XHTML is the markup language created by forcing
HTML to follow the syntax rules of the
XML..markup language.
2. A validated XHTML document is
consideredwell formed.
3. A validated XHTML document has been checked for
proper syntax ...
4. The src . attribute of the <img> tag
is used to locate the file for embedding an image into
a Web page.
5. A internal . Style Sheet is
located within the same document as the HTML and
uses the <style> tag rather than the style attribute.
6. The CSS Class selector uses the # .. symbol to
locate the selected elements.
7. The <table> .. element
should be limited to organizing data, not laying out
Web pages.
8. attribute. define any properties that an
element might want to include.
9. CSS..define how to display HTML
elements, including characteristics such as fonts,
borders, color, size, etc.
10. Class..contains sets of programming
code bundled with data meant to complete a specific
task.
11. class selector an attribute to locate
elements.
12. DTD.is a tool used by the developer to
ensure that Web pages follow a specified markup
language.
13. What does DTD stand for?...... document type
definition..........................................................
14. element is the name of an XHTML structure.
15 HTML ..is the predominant markup language
for Web pages and is the basic building-blocks of Web
pages.
16. tags..are markers used to define elements
in HTML and XMTL files.
17. _ W3C _ is the main international standards
organization for the World Wide Web.
18. _XHTML____ is a family of XML markup languages
that mirrors or extends versions of the widely used
Hypertext Markup Language (HTML), the language in
which Web pages are written.
19. What code is used to embed the user.jpg file in
the <body> element in HTML?
<img src="user.jpg"/> .
20. If the developer wants a page to follow all the
XHTML standards, the word strict . is placed in
a declaration statement in the Web page for
validation.
21. If the developer wants a page to follow some
older HTML techniques, the word.... transistional..... is

placed in a declaration statement in the Web page for


validation.
22. If the developer wants a page to use frames, the
word frameset . is placed in a declaration
statement in the Web page for validation.
23. Which four HTML elements are required for
XHTML? Answer in <element> form in the correct
order. <html>,<head>,<title>,<body>
24. The <html> element is the required "root"
element of an XHTML page. Answer in <element>
form.
25. All nested elements within the <html> starting and
ending tags are called child .elements of the
<html> element.
26. Which attribute within the <html> element is
required? xmlns ..
27. Which attribute specifies the namespace for the
document, which ensures that elements having the
same name are uniquely identified?.... xmlns........
28. Which HTML element holds data about the data in
the Web page such as type of content, page refresh
rate, the author of the page, character set, etc?
Answer in <element> form. <meta>
29. Code the <html> element with the required
attribute and set it to the default namespace.
..<html xmlns="http://www.w3.org/1999/xhtml"> ..
30. In XHTML you replace deprecated elements with
elements in CSS . (acronym form)
31. <Text> element is replace by element in the
<body>. Answer in element form: _<p>_
32. break and anchor elements must be place within
which HTML element? Answer in element form: <p> ..
33. Create anchor that will link to a desination on the
same page. Name the anchor "TheAnchor" and name
the link "Click Here": <a href="#TheAnchor">Click
Here</a>.
34. Which attribute is required for the <img> element
for XHTML validation? ........alt.......................
38. Which container element is required within
XHTML to place text within? Answer in element form:
<p>
35. <img> element must be place within which parent
element? Answer in element form: <p> .
36. Create the code to place an image called
sample.jpg with a description of "Hello" and place it
within the correct parent element: .. <p><img
src="sample.jpg" alt="Hello" /></p> .
37. HTML coding was never intended to formata
document. Rather, it was developed primarily to
define the content.. and layout of a Web
document.
38. Where do you place the <link> element in
HTML?..head.....
39. Code the element to create an external style sheet
and call it "External.css". <link rel="stylesheet"
type="text/css" href="External.css"/>

40. Which attribute within <link> is used to provide


the location of the style sheet? href
41. Which attribute within <link> is used to define
what Web standard it follows? type
42. selector is used to set styles for
<elements> within HTML.
43. ID selector is used to search for a
particular element to apply a style.
44. Code an ID selector for selector headers4 and
place it witin the element <h4> with the text of
"Hello". <h4 id="headers4">Hello</h4>..
45. class selector is used to search for
a group of elements to apply a style.
46. Code a class selector called top with font family
arial. .top {font-family:arial;}
47. Which element is preferrd for ogranizing text on a
web page?........<div>...........

Potrebbero piacerti anche