Prepared by: Anthony Larrain
These notes serve as an outline to the lecture, they are not intended to be complete. Attend class to get more details.
img tag(the image tag) to display images in our webpages.Note: Thanks to CSS we should avoid the align attribute
Suppose I have an image file river2.jpg in the same directory as my html document with
width 400 and height 152. Suppose my HTML file had the following code
A river in the smokey mountain, taken summer 1985 The webpage would display
A River in the Smokey Mountains, taken summer 1985.
div tag.div tagThe div tag defines a division within a web page. The div tag allows individual sections of an HTML
page to be styled.
table tagtable tag allows you to arrange text and graphics into multiple rows and columns. tr tag creates the rows of the table. td tag creates the data cells.
A data cell can contain text, images, lists, paragraphs, horizontal rules, tables, etc.th tag creates headings.size of a table and its cells automatically adjust to fit the data. We can control the size
of a table using the width attribute. You can specify the value for the width in percentages or pixelsSee Example table1.html. Don't forget to view the source.
align attribute or writing a style.
See Examples table2.html Or table3.html Don't forget to view the source.
cellpadding attribute.
inside the table tag. We can also control the spacing between the cells by using the cellspacing attribute.
See Example table4.html.
See Example table5.html. Notice, I also decreased the padding and spacing.
width attribute inside the first rows td
tagsSee Example table7.html. Remember view source
See Example table8.html.
valign attribute in the second td tag