SlideShare une entreprise Scribd logo
1  sur  36
Session No 4

Developed by: Saif Ullah Dar

1/7/2014

1
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

USING IMAGES
IMAGE ATTRIBUTES
WRAPPING TEXT AROUND IMAGE
SUITABLE IMAGE FORMATS
USING TABLE
TABLE TAGS
TABLE CAPTION
TABLE HEADING <TH> TAG
TABLE ROW <TR> TAG
TABLE DATA <TD> TAG

Developed by: Saif Ullah Dar

1/7/2014

2
 The






image tag

In Html images are defined by using the <img>
tag
Images are very important to beautify as well as
to depicts many concepts on your web page. Its
is true that one single image is worth than
thousands of words. So as a Web Developer you
should have clear understanding on how to use
images in your web pages.
The <img> tag is a open tag ( does not have a
</img>)
<img src="image URL"
attr_name="attr_value"...more attributes />
Developed by: Saif Ullah Dar

1/7/2014

3
Following are most frequently used attributes for
<img> tag.
 width: sets width of the image. This will have a
value like 10 or 20%etc.
 height: sets height of the image. This will have a
value like 10 or 20% etc.
 border: sets a border around the image. This
will have a value like 1 or 2 etc.
 src: specifies URL of the image file.
 alt: this is an alternate text which will be
displayed if image is missing.
 align: this sets horizontal alignment of the image
and takes value either left, right or center.


Developed by: Saif Ullah Dar

1/7/2014

4
 hspace:

horizontal space around the image.
This will have a value like 10 or 20%etc.
 vspace: vertical space around the image.
This will have a value like 10 or 20%etc.
 name: name of the image with in the
document.
 id: id of the image with in the document.
 style: this will be used if you are using CSS.
 title: specifies a text title. The browser,
perhaps flashing the title when the mouse
passes over the link.
Developed by: Saif Ullah Dar

1/7/2014

5
 Attributes







of <img> tag

src : To display an image on a page, you need to use
the src attribute . The value of the src is the url of the
image to be displayed
Syntax
<img src=“url”>
Image Width, Height , Align And Border
<img
src="http://www.tutorialspoint.com/images/html.gif"
alt="HTML Tutorial" width="100" height="100"
border="2" align="right" title="HTML Tutorial" />

Developed by: Saif Ullah Dar

1/7/2014

6


Attributes of <img> tag
alt :The alt attribute is used to define an "alternate
text" for an image. The value of the alt attribute is an
author-defined text:
 Syntax
<img src=“url” alt=“user defined text”>
 width & height : the size of the image can be
controlled by using the width and height attributes
 Syntax
<img src=“url” width=“size in pixels” height=“size in
pixels”>


Developed by: Saif Ullah Dar

1/7/2014

7


Attributes of <img> tag
align : An image can be aligned with the surrounding
text by using the align attribute
 Syntax
<img src=“url” width=“value in pixels” height=“value in
pixels” align=“positon, ie left,right,top bottom…” >




Images can be used as hyperlinks also.

<a href=“http://w3.ibm.com”> <img src=“logo.gif” width=“30
height=“40” ></a>

Developed by: Saif Ullah Dar

1/7/2014

8
<html>
<body>
<p>
An image
<img src=“home.gif"
align="bottom" width="48" height="48">
in the text
</p>
<p>
An image
<img src ="home.gif"
align="middle" width="48" height="48">
in the text
</p> </body> </html>

Developed by: Saif Ullah Dar

1/7/2014

9
<p>This is the first paragraph that appears above the
paragraph with the image!</p>
<p><img
src="http://www.tutorialspoint.com/images/html.gif"
width="75" height="75" alt="HTML Tutorial" align="right">

The image will appear along the right hand side of the
paragraph. As you can see this is very nice for adding a little
eye candy that relates to the specified paragraph.</p>
<p>The left and right image-alignment values tell the
browser to place an image against the left or right margin,
respectively, of the current text flow. The browser then
renders subsequent document content in the remaining
portion of the flow adjacent to the image. The net result is
that the document content following the image gets wrapped
around the image. </p>
Developed by: Saif Ullah Dar

1/7/2014

10
Developed by: Saif Ullah Dar

1/7/2014

11
<p>This is the first paragraph that appears above the
paragraph with the image!</p>
<p><img
src="http://www.tutorialspoint.com/images/html.gif"
vspace="10" hspace="15" width="75" height="75" alt="HTML
Tutorial" align="right">
The image will appear along the right hand side of the
paragraph. As you can see this is very nice for adding a little
eye candy that relates to the specified paragraph.</p>
<p>The left and right image-alignment values tell the
browser to place an image against the left or right margin,
respectively, of the current text flow. The browser then
renders subsequent document content in the remaining
portion of the flow adjacent to the image. The net result is
that the document content following the image gets wrapped
around the image. </p>
Developed by: Saif Ullah Dar

1/7/2014

12
Developed by: Saif Ullah Dar

1/7/2014

13






The images in Graphics Interchange Format - GIF format are best used for
banners, clip art, and buttons. The main reason for this is that gifs can
have a transparent background which is priceless when it comes to web
design. On the down side, gifs are usually larger files, not as compressed
as a jpeg, which calls for slow load times and large transfer rates. Gifs
are also limited to the 256 color scheme.
This images in Joint Photographic Experts Group - JPEG format have an
unlimited color wheel, and have a high compression rate downsizing your
load times and saving hard drive space. JPEGs don't allow for transparent
backgrounds, but their size/quality ratio is outstanding. Its best to use
JPEG format for photo galleries, or artwork to allow the viewer to catch
that extra bit of detail. Avoid Jpegs for graphical design, stick to using
them for thumbnails and backgrounds.
The images in Portable Network Graphics - PNG format is an extensible
file format for the lossless, portable, well-compressed storage of raster
images. PNG provides a patent-free replacement for GIF and can also
replace many common uses of TIFF. Indexed-color, gray scale, and true
color images are supported, plus an optional alpha channel. Sample
depths range from 1 to 16 bits. PNG also compresses better than GIF in
almost every case (5% to 25% in typical cases).

Developed by: Saif Ullah Dar

1/7/2014

14
 Table

allows to organize and present data in
an orderly and concise manner.
 Tabular structures were introduced with
HTML 3.2.
 A table can contains wide variety of
information, such as headers, anchors, lists,
paragraphs, forms, images, preformatted
text and even nested tables.
 HTML tables are composed of rows and
columns.

Developed by: Saif Ullah Dar

1/7/2014

15
 Tables

are very useful to arrange in HTML and
they are used very frequently by almost all
web developers. Tables are just like
spreadsheets and they are made up of rows
and columns.
 You will create a table in HTML/XHTML by
using <table> tag. Inside <table> element the
table is written out row by row. A row is
contained inside a <tr> tag . which stands for
table row. And each cell is then written
inside the row element using a <td> tag .
which stands for table data.
Developed by: Saif Ullah Dar

1/7/2014

16
 Tables

are very useful to arrange in HTML and
they are used very frequently by almost all
web developers. Tables are just like
spreadsheets and they are made up of rows
and columns.
 You will create a table in HTML/XHTML by
using <table> tag. Inside <table> element the
table is written out row by row. A row is
contained inside a <tr> tag . which stands for
table row. And each cell is then written
inside the row element using a <td> tag .
which stands for table data.
Developed by: Saif Ullah Dar

1/7/2014

17
Developed by: Saif Ullah Dar

1/7/2014

18
Code Snippet To Fulfill the Requirement
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

19
For starting a table
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

20
It is an attribute of table tag to specify the thickness of the border of the table in
pixels.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

21
Table Border set to 1

Developed by: Saif Ullah Dar

1/7/2014

22
If Table Border set to 5

Developed by: Saif Ullah Dar

1/7/2014

23
For starting a table
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

For ending a table
Developed by: Saif Ullah Dar

1/7/2014

24
For starting a table caption, It is like a title which resides outside the border of
the table. It is an optional attribute.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

25
For starting a table caption, It is like a title which resides outside the border of
the table. It is an optional attribute.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

For ending a table caption
Developed by: Saif Ullah Dar

1/7/2014

26
Table Caption

Developed by: Saif Ullah Dar

1/7/2014

27
For starting a table row
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

28
For starting a table row
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

For ending a table row.
Developed by: Saif Ullah Dar

1/7/2014

29
Row 1
Row 2

Developed by: Saif Ullah Dar

1/7/2014

30
For providing a table heading. By default the header cell will appear in bolder
type and the default alignment is center.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

31
For providing a table heading. By default the header cell will appear in bolder
type and the default alignment is center.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

For ending a table heading.
Developed by: Saif Ullah Dar

1/7/2014

32
Table Heading

Developed by: Saif Ullah Dar

1/7/2014

33
For providing the table data. By default the alignment is left.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

Developed by: Saif Ullah Dar

1/7/2014

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

34
For providing the table data. By default the alignment is left.
<html>
<body>
<table border=“1”>
<caption>IBM Strategic Business Unit</caption>
<tr>
<th>Unit Name</th>
<th>Description</th>
</tr>
<tr>
<td>BCS</td>
<td>Business Consultancy Services</td>
</tr>

<tr>

<td>SWG</td>
<td>Software Group</td>
</tr>
</table>

</body>
</html>

For ending a table data tag.
Developed by: Saif Ullah Dar

1/7/2014

35
SAIF ULLAH DAR

Developed by: Saif Ullah Dar

1/7/2014

36

Contenu connexe

Tendances

WordPress Theme Development Basics
WordPress Theme Development BasicsWordPress Theme Development Basics
WordPress Theme Development BasicsTech Liminal
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress ThemesLaura Hartwig
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep DiveGabriel Walt
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsGabriel Walt
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
 
HTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowPrabhdeep Singh
 
Introduction to Sightly and Sling Models
Introduction to Sightly and Sling ModelsIntroduction to Sightly and Sling Models
Introduction to Sightly and Sling ModelsStefano Celentano
 
User Defined Characters Solution Proposal
User Defined Characters Solution ProposalUser Defined Characters Solution Proposal
User Defined Characters Solution ProposalJun Fujisawa
 
Web engineering and Technology
Web engineering and TechnologyWeb engineering and Technology
Web engineering and Technologychirag patil
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesGabriel Walt
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookScottperrone
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examplesAlfredo Torre
 
Introduction to Sightly
Introduction to SightlyIntroduction to Sightly
Introduction to SightlyAnkit Gubrani
 
Integrating with Adobe Marketing Cloud - Summit 2014
Integrating with Adobe Marketing Cloud - Summit 2014Integrating with Adobe Marketing Cloud - Summit 2014
Integrating with Adobe Marketing Cloud - Summit 2014Paolo Mottadelli
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)Thinkful
 

Tendances (19)

EVOLVE'14 | Enhance | Gabriel Walt | Sightly Component Development
EVOLVE'14 | Enhance | Gabriel Walt | Sightly Component DevelopmentEVOLVE'14 | Enhance | Gabriel Walt | Sightly Component Development
EVOLVE'14 | Enhance | Gabriel Walt | Sightly Component Development
 
WordPress Theme Development Basics
WordPress Theme Development BasicsWordPress Theme Development Basics
WordPress Theme Development Basics
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep Dive
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core Components
 
HTML 5 Basics Part One
HTML 5 Basics Part OneHTML 5 Basics Part One
HTML 5 Basics Part One
 
Seo hints
Seo hintsSeo hints
Seo hints
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
HTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to know
 
Introduction to Sightly and Sling Models
Introduction to Sightly and Sling ModelsIntroduction to Sightly and Sling Models
Introduction to Sightly and Sling Models
 
Day of code
Day of codeDay of code
Day of code
 
User Defined Characters Solution Proposal
User Defined Characters Solution ProposalUser Defined Characters Solution Proposal
User Defined Characters Solution Proposal
 
Web engineering and Technology
Web engineering and TechnologyWeb engineering and Technology
Web engineering and Technology
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager Sites
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
 
Introduction to Sightly
Introduction to SightlyIntroduction to Sightly
Introduction to Sightly
 
Integrating with Adobe Marketing Cloud - Summit 2014
Integrating with Adobe Marketing Cloud - Summit 2014Integrating with Adobe Marketing Cloud - Summit 2014
Integrating with Adobe Marketing Cloud - Summit 2014
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 

En vedette

C programming session 09
C programming session 09C programming session 09
C programming session 09Dushmanta Nath
 
C programming session 07
C programming session 07C programming session 07
C programming session 07Dushmanta Nath
 
C programming session 11
C programming session 11C programming session 11
C programming session 11Dushmanta Nath
 
C programming session 03
C programming session 03C programming session 03
C programming session 03Dushmanta Nath
 
C programming session 05
C programming session 05C programming session 05
C programming session 05Dushmanta Nath
 
C programming session 08
C programming session 08C programming session 08
C programming session 08Dushmanta Nath
 
C programming session 02
C programming session 02C programming session 02
C programming session 02Dushmanta Nath
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Dushmanta Nath
 
C programming session 01
C programming session 01C programming session 01
C programming session 01Dushmanta Nath
 
Java script Session No 1
Java script Session No 1Java script Session No 1
Java script Session No 1Saif Ullah Dar
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptFahim Abdullah
 
C language (Collected By Dushmanta)
C language  (Collected By Dushmanta)C language  (Collected By Dushmanta)
C language (Collected By Dushmanta)Dushmanta Nath
 

En vedette (16)

Java script session 3
Java script session 3Java script session 3
Java script session 3
 
C programming session 09
C programming session 09C programming session 09
C programming session 09
 
C programming session 07
C programming session 07C programming session 07
C programming session 07
 
Session no 2
Session no 2Session no 2
Session no 2
 
C programming session 11
C programming session 11C programming session 11
C programming session 11
 
Session No1
Session No1 Session No1
Session No1
 
C programming session 03
C programming session 03C programming session 03
C programming session 03
 
C programming session 05
C programming session 05C programming session 05
C programming session 05
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
C programming session 01
C programming session 01C programming session 01
C programming session 01
 
Java script Session No 1
Java script Session No 1Java script Session No 1
Java script Session No 1
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
Session 3 Java Script
Session 3 Java ScriptSession 3 Java Script
Session 3 Java Script
 
C language (Collected By Dushmanta)
C language  (Collected By Dushmanta)C language  (Collected By Dushmanta)
C language (Collected By Dushmanta)
 

Similaire à HTML Image and Table Session

Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptxMaruthiPrasad96
 
In Class Assignment 1 .docx
In Class Assignment 1                                        .docxIn Class Assignment 1                                        .docx
In Class Assignment 1 .docxjaggernaoma
 
Best Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsBest Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsRapidValue
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3Gopi A
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_languageIshaq Shinwari
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questionsVipul Naik
 
Animation in the web
Animation in the webAnimation in the web
Animation in the webVishal Polley
 
Designing web page marquee and img tag
Designing web page  marquee and img tagDesigning web page  marquee and img tag
Designing web page marquee and img tagJesus Obenita Jr.
 
IT230-Assignment 1 Solved.pdf
IT230-Assignment 1 Solved.pdfIT230-Assignment 1 Solved.pdf
IT230-Assignment 1 Solved.pdfDark179280
 
World wide web with multimedia
World wide web with multimediaWorld wide web with multimedia
World wide web with multimediaAfaq Siddiqui
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxwewit44414
 

Similaire à HTML Image and Table Session (20)

Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
Html basic
Html basicHtml basic
Html basic
 
In Class Assignment 1 .docx
In Class Assignment 1                                        .docxIn Class Assignment 1                                        .docx
In Class Assignment 1 .docx
 
Html 5
Html 5Html 5
Html 5
 
CAP 756 UNIT 1.pptx
CAP 756 UNIT 1.pptxCAP 756 UNIT 1.pptx
CAP 756 UNIT 1.pptx
 
Best Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue SolutionsBest Practices for Android UI by RapidValue Solutions
Best Practices for Android UI by RapidValue Solutions
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
 
Animation in the web
Animation in the webAnimation in the web
Animation in the web
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
html5_css3
html5_css3html5_css3
html5_css3
 
Designing web page marquee and img tag
Designing web page  marquee and img tagDesigning web page  marquee and img tag
Designing web page marquee and img tag
 
Html5 CSS3 jQuery Basic
Html5 CSS3 jQuery BasicHtml5 CSS3 jQuery Basic
Html5 CSS3 jQuery Basic
 
IT230-Assignment 1 Solved.pdf
IT230-Assignment 1 Solved.pdfIT230-Assignment 1 Solved.pdf
IT230-Assignment 1 Solved.pdf
 
World wide web with multimedia
World wide web with multimediaWorld wide web with multimedia
World wide web with multimedia
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Html and html5 cheat sheets
Html and html5 cheat sheetsHtml and html5 cheat sheets
Html and html5 cheat sheets
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
 
ARTICULOENINGLES
ARTICULOENINGLESARTICULOENINGLES
ARTICULOENINGLES
 

Plus de Saif Ullah Dar

Plus de Saif Ullah Dar (7)

Session no 3
Session no 3Session no 3
Session no 3
 
Session no 1
Session no 1Session no 1
Session no 1
 
Session no 1 html
Session no 1 htmlSession no 1 html
Session no 1 html
 
Session no 3 bzu
Session no 3 bzuSession no 3 bzu
Session no 3 bzu
 
Session no 2 For BZU
Session no 2 For BZUSession no 2 For BZU
Session no 2 For BZU
 
Java script session 4
Java script session 4Java script session 4
Java script session 4
 
Xml Session No 1
Xml Session No 1Xml Session No 1
Xml Session No 1
 

Dernier

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Dernier (20)

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

HTML Image and Table Session

  • 1. Session No 4 Developed by: Saif Ullah Dar 1/7/2014 1
  • 2. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. USING IMAGES IMAGE ATTRIBUTES WRAPPING TEXT AROUND IMAGE SUITABLE IMAGE FORMATS USING TABLE TABLE TAGS TABLE CAPTION TABLE HEADING <TH> TAG TABLE ROW <TR> TAG TABLE DATA <TD> TAG Developed by: Saif Ullah Dar 1/7/2014 2
  • 3.  The     image tag In Html images are defined by using the <img> tag Images are very important to beautify as well as to depicts many concepts on your web page. Its is true that one single image is worth than thousands of words. So as a Web Developer you should have clear understanding on how to use images in your web pages. The <img> tag is a open tag ( does not have a </img>) <img src="image URL" attr_name="attr_value"...more attributes /> Developed by: Saif Ullah Dar 1/7/2014 3
  • 4. Following are most frequently used attributes for <img> tag.  width: sets width of the image. This will have a value like 10 or 20%etc.  height: sets height of the image. This will have a value like 10 or 20% etc.  border: sets a border around the image. This will have a value like 1 or 2 etc.  src: specifies URL of the image file.  alt: this is an alternate text which will be displayed if image is missing.  align: this sets horizontal alignment of the image and takes value either left, right or center.  Developed by: Saif Ullah Dar 1/7/2014 4
  • 5.  hspace: horizontal space around the image. This will have a value like 10 or 20%etc.  vspace: vertical space around the image. This will have a value like 10 or 20%etc.  name: name of the image with in the document.  id: id of the image with in the document.  style: this will be used if you are using CSS.  title: specifies a text title. The browser, perhaps flashing the title when the mouse passes over the link. Developed by: Saif Ullah Dar 1/7/2014 5
  • 6.  Attributes      of <img> tag src : To display an image on a page, you need to use the src attribute . The value of the src is the url of the image to be displayed Syntax <img src=“url”> Image Width, Height , Align And Border <img src="http://www.tutorialspoint.com/images/html.gif" alt="HTML Tutorial" width="100" height="100" border="2" align="right" title="HTML Tutorial" /> Developed by: Saif Ullah Dar 1/7/2014 6
  • 7.  Attributes of <img> tag alt :The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is an author-defined text:  Syntax <img src=“url” alt=“user defined text”>  width & height : the size of the image can be controlled by using the width and height attributes  Syntax <img src=“url” width=“size in pixels” height=“size in pixels”>  Developed by: Saif Ullah Dar 1/7/2014 7
  • 8.  Attributes of <img> tag align : An image can be aligned with the surrounding text by using the align attribute  Syntax <img src=“url” width=“value in pixels” height=“value in pixels” align=“positon, ie left,right,top bottom…” >   Images can be used as hyperlinks also. <a href=“http://w3.ibm.com”> <img src=“logo.gif” width=“30 height=“40” ></a> Developed by: Saif Ullah Dar 1/7/2014 8
  • 9. <html> <body> <p> An image <img src=“home.gif" align="bottom" width="48" height="48"> in the text </p> <p> An image <img src ="home.gif" align="middle" width="48" height="48"> in the text </p> </body> </html> Developed by: Saif Ullah Dar 1/7/2014 9
  • 10. <p>This is the first paragraph that appears above the paragraph with the image!</p> <p><img src="http://www.tutorialspoint.com/images/html.gif" width="75" height="75" alt="HTML Tutorial" align="right"> The image will appear along the right hand side of the paragraph. As you can see this is very nice for adding a little eye candy that relates to the specified paragraph.</p> <p>The left and right image-alignment values tell the browser to place an image against the left or right margin, respectively, of the current text flow. The browser then renders subsequent document content in the remaining portion of the flow adjacent to the image. The net result is that the document content following the image gets wrapped around the image. </p> Developed by: Saif Ullah Dar 1/7/2014 10
  • 11. Developed by: Saif Ullah Dar 1/7/2014 11
  • 12. <p>This is the first paragraph that appears above the paragraph with the image!</p> <p><img src="http://www.tutorialspoint.com/images/html.gif" vspace="10" hspace="15" width="75" height="75" alt="HTML Tutorial" align="right"> The image will appear along the right hand side of the paragraph. As you can see this is very nice for adding a little eye candy that relates to the specified paragraph.</p> <p>The left and right image-alignment values tell the browser to place an image against the left or right margin, respectively, of the current text flow. The browser then renders subsequent document content in the remaining portion of the flow adjacent to the image. The net result is that the document content following the image gets wrapped around the image. </p> Developed by: Saif Ullah Dar 1/7/2014 12
  • 13. Developed by: Saif Ullah Dar 1/7/2014 13
  • 14.    The images in Graphics Interchange Format - GIF format are best used for banners, clip art, and buttons. The main reason for this is that gifs can have a transparent background which is priceless when it comes to web design. On the down side, gifs are usually larger files, not as compressed as a jpeg, which calls for slow load times and large transfer rates. Gifs are also limited to the 256 color scheme. This images in Joint Photographic Experts Group - JPEG format have an unlimited color wheel, and have a high compression rate downsizing your load times and saving hard drive space. JPEGs don't allow for transparent backgrounds, but their size/quality ratio is outstanding. Its best to use JPEG format for photo galleries, or artwork to allow the viewer to catch that extra bit of detail. Avoid Jpegs for graphical design, stick to using them for thumbnails and backgrounds. The images in Portable Network Graphics - PNG format is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, gray scale, and true color images are supported, plus an optional alpha channel. Sample depths range from 1 to 16 bits. PNG also compresses better than GIF in almost every case (5% to 25% in typical cases). Developed by: Saif Ullah Dar 1/7/2014 14
  • 15.  Table allows to organize and present data in an orderly and concise manner.  Tabular structures were introduced with HTML 3.2.  A table can contains wide variety of information, such as headers, anchors, lists, paragraphs, forms, images, preformatted text and even nested tables.  HTML tables are composed of rows and columns. Developed by: Saif Ullah Dar 1/7/2014 15
  • 16.  Tables are very useful to arrange in HTML and they are used very frequently by almost all web developers. Tables are just like spreadsheets and they are made up of rows and columns.  You will create a table in HTML/XHTML by using <table> tag. Inside <table> element the table is written out row by row. A row is contained inside a <tr> tag . which stands for table row. And each cell is then written inside the row element using a <td> tag . which stands for table data. Developed by: Saif Ullah Dar 1/7/2014 16
  • 17.  Tables are very useful to arrange in HTML and they are used very frequently by almost all web developers. Tables are just like spreadsheets and they are made up of rows and columns.  You will create a table in HTML/XHTML by using <table> tag. Inside <table> element the table is written out row by row. A row is contained inside a <tr> tag . which stands for table row. And each cell is then written inside the row element using a <td> tag . which stands for table data. Developed by: Saif Ullah Dar 1/7/2014 17
  • 18. Developed by: Saif Ullah Dar 1/7/2014 18
  • 19. Code Snippet To Fulfill the Requirement <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 19
  • 20. For starting a table <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 20
  • 21. It is an attribute of table tag to specify the thickness of the border of the table in pixels. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 21
  • 22. Table Border set to 1 Developed by: Saif Ullah Dar 1/7/2014 22
  • 23. If Table Border set to 5 Developed by: Saif Ullah Dar 1/7/2014 23
  • 24. For starting a table <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> For ending a table Developed by: Saif Ullah Dar 1/7/2014 24
  • 25. For starting a table caption, It is like a title which resides outside the border of the table. It is an optional attribute. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 25
  • 26. For starting a table caption, It is like a title which resides outside the border of the table. It is an optional attribute. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> For ending a table caption Developed by: Saif Ullah Dar 1/7/2014 26
  • 27. Table Caption Developed by: Saif Ullah Dar 1/7/2014 27
  • 28. For starting a table row <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 28
  • 29. For starting a table row <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> For ending a table row. Developed by: Saif Ullah Dar 1/7/2014 29
  • 30. Row 1 Row 2 Developed by: Saif Ullah Dar 1/7/2014 30
  • 31. For providing a table heading. By default the header cell will appear in bolder type and the default alignment is center. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 31
  • 32. For providing a table heading. By default the header cell will appear in bolder type and the default alignment is center. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> For ending a table heading. Developed by: Saif Ullah Dar 1/7/2014 32
  • 33. Table Heading Developed by: Saif Ullah Dar 1/7/2014 33
  • 34. For providing the table data. By default the alignment is left. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> Developed by: Saif Ullah Dar 1/7/2014 <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> 34
  • 35. For providing the table data. By default the alignment is left. <html> <body> <table border=“1”> <caption>IBM Strategic Business Unit</caption> <tr> <th>Unit Name</th> <th>Description</th> </tr> <tr> <td>BCS</td> <td>Business Consultancy Services</td> </tr> <tr> <td>SWG</td> <td>Software Group</td> </tr> </table> </body> </html> For ending a table data tag. Developed by: Saif Ullah Dar 1/7/2014 35
  • 36. SAIF ULLAH DAR Developed by: Saif Ullah Dar 1/7/2014 36