An a tag is useless without its __________ attribute.
-href
The structure of a web page should be described with XHTML, but the styling of the web page should be left to ______________________________.
-Cascading Style Sheets
Describe the basic structure of the markup on any web page.
The element that encloses everything on a web page (except for the DOCTYPE declaration and perhaps a comment) is the html element. Enclosed within this element are, at the next level, the head element and the body element, sometimes referred to as “sibling” elements. Finally, a title element is enclosed within the head element. For readability these elements are often indented as shown below, where the level of indentation is two spaces:
<html>
<head>
<title> … </title>
</head>
<body>
…
</body>
</html>
One method that we can use so that common markup will be placed in several of our web pages is called Server-Side Includes.
In order to have a better understanding of how a browser actually “lays out” a web page when that page is being displayed, one should understand the difference between block-level elements and inline elements.
The opening and closing delimiters of an XHTML entity are
C. & and ;
The basic structure of any web page includes a title element and a paragraph element.
-False
The “invention” of the font tag to help early web developers add some style to their pages is now regarded as a major forward-looking advance in web history.
-False
An XHTML tag and an XHTML element are synonymous.
-False
The blank space before the forward slash in an empty element like <br /> is there because
-some older browsers may get “confused” if it's not there
The first HTML specification was written in
-the early 1990s
Which of the following elements is not part of the basic structure of every web page?
form
The acronym for the web server feature that lets us place common markup in many different web pages is SSI
The first HTML specification was written by Tim Berners-Lee
The file used for the “home page” of a website is called any of the above, or even something else
The two attributes required for an img tag are _____ and _____.
src, alt
Explain why we need to have these things we call XHTML entities.
XHTML uses certain characters in a special way. For example it encloses its tags in “angle brackets” denoted by the symbols < and >. Such characters are therefore called, not surprisingly, “special characters” or “meta characters”. A problem arises when we want to use such characters “as themselves”. That is, for example, we may want to use < as a “less than” sign, and not have it interpreted as the beginning of a tag. This is where we need to make use of an XHTML entity. In this case instead of using the symbol <, we would use the expression <, which would be interpreted as the required symbol. This is the typical situation in which we find XHTML entities useful, but many other symbols, especially non-standard ones, can also be represented by an XHTML entity, such as © for the copyright symbol ©.
One method that we can use so that common markup will be placed in several of our web pages is called Server-Side Includes
Outline the necessary steps if you want to validate one of your web pages.
If you want to validate one of your web pages, the first order of business is to make sure that that page itself is ready to be validated. This generally means that
a. The file containing the page must be supplied with an appropriate DOCTYPE declaration (for XHTML strict, in our case).
b. An appropriate meta element must be placed within the head element to indicate the character encoding in use. [There are, in fact, other ways to achieve this, but this is a widely used way to do it.]
c. The xmlns attribute, with an appropriate value, should be given to the html tag, to indicate the namespace from which the markup tag information in the document is to be taken.
Next, make sure that all the makup rules (for XHTML in our case) have been followed. And finally, perform the actual validation process by submitting your document to the W3C validator (for example). This may easily become an iterative process, since if you have problems, the validator will point them out, and you should then attempt to correct them and re-validate.
Match the description with the corresponding listed item.
1-meta element, 2-#, 3-!, 4-DOCTYPE
The first HTML specification was written by
The basic structure of any web page includes a title element and a paragraph element.
-False
Suppose that XHTML had a tag called abcd. Then the opening tag of an abcd element could look like
<abcd>
Which of the following is the one false statement?
XHTML tags always come in pairs.
The blank space before the forward slash in an empty element like <br /> is there because
some older browsers may get “confused” if it's not there
If you want to place a list on a web page, you must enclose the list in an li tag pair.
-False
The opening and closing delimiters of an XHTML entity are
& and ;
A table element will generally always contain both tr elements and td elements.
-True
Before submitting one of your web pages to a validator, you should make sure you have placed an appropriate DOCTYPE declaration at the beginning of the page.
-True
-href
The structure of a web page should be described with XHTML, but the styling of the web page should be left to ______________________________.
-Cascading Style Sheets
Describe the basic structure of the markup on any web page.
The element that encloses everything on a web page (except for the DOCTYPE declaration and perhaps a comment) is the html element. Enclosed within this element are, at the next level, the head element and the body element, sometimes referred to as “sibling” elements. Finally, a title element is enclosed within the head element. For readability these elements are often indented as shown below, where the level of indentation is two spaces:
<html>
<head>
<title> … </title>
</head>
<body>
…
</body>
</html>
One method that we can use so that common markup will be placed in several of our web pages is called Server-Side Includes.
In order to have a better understanding of how a browser actually “lays out” a web page when that page is being displayed, one should understand the difference between block-level elements and inline elements.
The opening and closing delimiters of an XHTML entity are
C. & and ;
The basic structure of any web page includes a title element and a paragraph element.
-False
The “invention” of the font tag to help early web developers add some style to their pages is now regarded as a major forward-looking advance in web history.
-False
An XHTML tag and an XHTML element are synonymous.
-False
The blank space before the forward slash in an empty element like <br /> is there because
-some older browsers may get “confused” if it's not there
The first HTML specification was written in
-the early 1990s
Which of the following elements is not part of the basic structure of every web page?
form
The acronym for the web server feature that lets us place common markup in many different web pages is SSI
The first HTML specification was written by Tim Berners-Lee
The file used for the “home page” of a website is called any of the above, or even something else
The two attributes required for an img tag are _____ and _____.
src, alt
Explain why we need to have these things we call XHTML entities.
XHTML uses certain characters in a special way. For example it encloses its tags in “angle brackets” denoted by the symbols < and >. Such characters are therefore called, not surprisingly, “special characters” or “meta characters”. A problem arises when we want to use such characters “as themselves”. That is, for example, we may want to use < as a “less than” sign, and not have it interpreted as the beginning of a tag. This is where we need to make use of an XHTML entity. In this case instead of using the symbol <, we would use the expression <, which would be interpreted as the required symbol. This is the typical situation in which we find XHTML entities useful, but many other symbols, especially non-standard ones, can also be represented by an XHTML entity, such as © for the copyright symbol ©.
One method that we can use so that common markup will be placed in several of our web pages is called Server-Side Includes
Outline the necessary steps if you want to validate one of your web pages.
If you want to validate one of your web pages, the first order of business is to make sure that that page itself is ready to be validated. This generally means that
a. The file containing the page must be supplied with an appropriate DOCTYPE declaration (for XHTML strict, in our case).
b. An appropriate meta element must be placed within the head element to indicate the character encoding in use. [There are, in fact, other ways to achieve this, but this is a widely used way to do it.]
c. The xmlns attribute, with an appropriate value, should be given to the html tag, to indicate the namespace from which the markup tag information in the document is to be taken.
Next, make sure that all the makup rules (for XHTML in our case) have been followed. And finally, perform the actual validation process by submitting your document to the W3C validator (for example). This may easily become an iterative process, since if you have problems, the validator will point them out, and you should then attempt to correct them and re-validate.
Match the description with the corresponding listed item.
1-meta element, 2-#, 3-!, 4-DOCTYPE
The first HTML specification was written by
The basic structure of any web page includes a title element and a paragraph element.
-False
Suppose that XHTML had a tag called abcd. Then the opening tag of an abcd element could look like
<abcd>
Which of the following is the one false statement?
XHTML tags always come in pairs.
The blank space before the forward slash in an empty element like <br /> is there because
some older browsers may get “confused” if it's not there
If you want to place a list on a web page, you must enclose the list in an li tag pair.
-False
The opening and closing delimiters of an XHTML entity are
& and ;
A table element will generally always contain both tr elements and td elements.
-True
Before submitting one of your web pages to a validator, you should make sure you have placed an appropriate DOCTYPE declaration at the beginning of the page.
-True
No comments:
Post a Comment