Lesson 6
Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
Mailto Link address
Changing Colors in a Page ‘bgcolor’ refers to a six digit code based on hexadecimal numbers, e,g, #00FF00 (Green) _ _ _ _ _ _ Red Green Blue –‘filename’ refers to the image file name in.gif or.jpg etc. format
Computer Science Welcome to Virtual University inhttp:// Pakistan
Title and Meta Tags Introduction to e-commerce Page goes here
Basic tags Tables use following basic tag: – (table row tag) and are used to create/add a row (table data tag) and are used to divide a row into number of columns to create cells (table header tag) and labels each column as a heading Caption of the table
A basic 2 row, 2 column table Cell1 Cell2 Cell3 Cell4 Cell 1Cell 2 Cell 3Cell 4
A slightly different table Cell1 Cell2 Cell3 Cell 1 Cell 2Cell 3
Try coding… Try to code the following table design: Cell 1 Cell 2 Cell 3
Example - COLSPAN Example - COLSPAN Spanning the text This line is extended to two columns This does not First Column Second Column Third Column
Example - ROWSPAN Spanning Text Example - ROWSPAN This line is stretched to two rows First Row Second Row This does not Third Row
Table tag attributes –Border - –Width - –Height - –Cellpadding - –Cellspacing - –Color - or
Attributes for tag –Width - –Align - –Valign-
Example - Margin A Page with a Left-Hand Margin This section contains the contents of your web page.
Forms A form is a web page populated with text boxes, drop- down lists and commands buttons to get information from the user - and Types –Submit/Reset button –Text boxes –Text area –Check boxes –Radio buttons –Lists
Example -Submit Submit Button An example of Submit button:
Example – Text Box & Text Area Text Area Example Today's Burning Question First Name: Last Name: Today's Burning Question : How to make Pakistan a developed country? Please enter your answer in the text area below: