Appendix I Introduction to HyperText (Apache web server tutorial) Markup Language 4:

Appendix I Introduction to HyperText Markup Language 4: Part 1 1395 SELF-REVIEW EXERCISES I.1 State whether the following statements are true or false. If false, explain why. a) The document type for an HTML document is optional. b) The use of the em and strongelements is deprecated. c) The name of your site s home page should always be homepage.html. d) It is a good programming practice to insert comments into your HTML document that explain what you are doing. e) A hyperlink is inserted around text with the link element. I.2 Fill in the blanks in each of the following statements: a) The element is used to insert a horizontal rule. b) Superscript is formatted with the element and subscript is formatted with the element. c) The element is located within the tags. d) The least important header is the element and the most important text header is . e) The element is used to create an unordered list. I.3 Identify each of the following as either an element or attribute: a) html b) width c) href d) br e) h3 f) a g) src ANSWERS TO SELF-REVIEW EXERCISES I.1 a) False. The document type is required for HTMl documents. b) False. The use of the iand b elements is deprecated. Elements em and strong may be used instead. c) False. The name of your home page should always be index.html. d) True. e) False. A hyperlink is inserted around text with the a (anchor) element. I.2 a) hr. b) sup, sub. c) title. d) h6, h1.e) ul. I.3 a) Tag. b) Attribute. c) Attribute. d) Tag. e) Tag. f) Tag. g) Attribute. EXERCISES I.4 Use HTML to mark up the first paragraph of this appendix. Use h1 for the section header, p for text, strong for the first word of every sentence, and em for all capital letters. I.5 Why is this code valid? (Hint: you can find the W3C specification for the p element at www.w3.org/TR/html4)

Here s some text…


And some more text…

I.6 Why is this code invalid? [Hint: you can find the W3C specification for the br element at the same URL given in Exercise 2.5.]

Here s some text…

And some more text…

Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply