CHAPTER 2. CONTENT VS MARKUP 20
sub: Subscript
Putbefore andafter each word or phrase you want to present
as a loweredsubscript, like the 2 inH 2 O.
Exam Question 19(p.337):The HTML tag “sub” stands for what word(s)?
Acceptable Answer:subscript
We can also do subscripting by using the relative positioning command. See
chapter 13 (page 138) for more information on positioning.
sup: Superscript
Putbefore andafter each word or phrase you want to present
as a raisedsuperscript, like the 2 inx^2.
Exam Question 20(p.337):The HTML tag “sup” stands for what word(s)?
Acceptable Answer:superscript
We can also do superscripting by using the relative positioning command.
See chapter 13 (page 138) for more information on positioning.
2.2.5 img: Image
Exam Question 21(p.337):The HTML tag “img” stands for what word(s)?
Acceptable Answer:image
Chapter 5 (page 49) will cover images in more depth. Here we introduce the
basic points.
There is notag. Image is avoidtag, meaning a tag with no content.
Havingat the end is forbidden.
The img tag requests that an image be displayed. It has several attributes
that are commonly specified.
src= To be useful, the image must have a source. That is specified using
the src= attribute. The value of this attribute is a URL that identifies the
image.
width= It is helpful to specify the size of the image. This can be done
using the width= attribute. Width is measured in pixels. If you specify
width but no height, the browser will calculate the height for you. Also,
when you say width= you simply put a number of pixels, likewidth=500