Chapter 4 Notes
Chapter 4 Notes
Chapter 4
Images, Links and Tables
Q1: What is <img> tag? / How <img> tag works? And discuss its attributes also.
Ans: <Img>: Img tag is used to insert image.
Example: <img src=”image.jpg” alt=”This is image” align=”right width=”200px” border=5>
Q4: How to import audio and video in any html web page?
Ans: Import Audio:
<audio>: audio tag is used to import audio.
Example: <audio src=”audio.mp3” controls autoplay loop></audio>
Tags: <table>,<caption> <tr> table row, <td> Table data, <th> table head.
Attribute: border, bgcolor, bordercolor, cellspacing, cellpadding, rowspan, colspan,valign.
ROWSPAN COLSPAN
1) It is used to make a cell by merging two 1) It is used to make a cell by merging
or more rows of table. two or more columns of a table.
2) ROWSPAN attribute merge cells 2) COLSPAN attribute merge cells
vertically. horizontally.
3) Ex:- <td rowspan=”2”>text</td> 3) Ex:- <td colspan=”2”>text</td>
Valign: This attribute is used in <TD> tag to set the vertical alignment of the particular cell’s content.
Its values are:
Top: It is used to put the text as close to the top of the cell as it is possible.
Middle: This is used to put text in middle of the cell.
Bottom: It is used to put the text as close to the bottom of the cell as it is possible.