Beruflich Dokumente
Kultur Dokumente
Adding Graphics
To understand how images work on the
Web, you need to know two things:
They dont reside in your HTML files.
Instead, you store each image as a
separate file.
To display pictures on a page, you use the
<img> element in your HTML document.
Type of
Compressio
n
JPEG
Lossy
GIF
Lossless
PNG-8
Lossless
PNG-24
Lossless
24-bit (16.7
million
colors)
Lossless (but
its
optional, as
SVG data is
24-bit (16.7
million
colors)
Art drawn in an
illustration program.
However, versions of IE
before IE 9 dont
SVG
Maximum
Colors
24-bit (16.7
million
colors)
Photos.
<TABLE>
class attribute
The class attribute specifies one or
more classnames for an element.
The class attribute is mostly used to
point to a class in a style sheet.
HTML5Semantic Elements
What are Semantic Elements?
A semantic element clearly describes its meaning
to both the browser and the developer.
Examples ofnon-semanticelements: <div> and
<span> - Tells nothing about its content.
Examples ofsemanticelements: <form>,
<table>, and <img> - Clearly defines its content.
- <header>
- <footer>
- <nav>
- etc.
Question?