WT-III-HTML & HTML - Img-list-Table-03
WT-III-HTML & HTML - Img-list-Table-03
Images
Hypertext Links
Lists
Tables
Images
HTML Image format
HTML Image format
HTML Image
• HTML <img> tag is an empty tag that contains attributes only, closing tags are not
• All attributes of HTML image tag are given below. src , alt , width, height
Try it Yourself
Use the <img> tag to create webpage with your team logo.
• Each item in a list is specified with the content of the <li> tag.
• Some cells have row or column labels and some have data.
• The cells in the top row often contain columns labels, those in the left most column often
contains row labels and most of the rest of the cells contain the data of the table.
• The content of a cell can be text, a heading, a horizontal rule, an image or a nested table.
• The styles of the border and rules in a table are specified in HTML 5 with stylesheets.
Tables are given titles with the <caption> tag, which can immediately follow <table> tag
• If so, the colspan attribute must be set in the <th> tag to specify that the label
• If the rows have labels and there is a spanning column label, the upper left corner
coloums.
Hypertext Links
HTML Hypertext Links
• Link is the convenient way for the browser user to get from one document to any
• The resource can be an HTML document anywhere on the web, or it may be another
place in the same document or be a specific place (rather than the top) in some other
document.
HTML Hypertext Links
<a href="https://www.google.co.in/">
• A link is specified with the href (hypertext
Visit Google! </a>
reference) attribute of <a> (the anchor tag).
To use an image as a link, just put the <img> tag inside the <a> tag:
Link to an Email Address
Use mailto: inside the href attribute to create a link that opens the user's email
program (to let them send a new email):
Button as a Link
To use an HTML button as a link, you have to add some JavaScript code.
JavaScript allows you to specify what happens at certain events, such as a click of a
button:
Try it Yourself
To create table with 100% width, with vertical scroll inside table
body in HTML.