Aims:
| Browser | Layout engine |
|---|---|
| IE | Trident |
| Firefox | Gecko |
| Opera | Presto |
| Chrome | WebKit |
| Safari |
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section
{
display: block;
}
normalize.cssborder-radius is CSS3
p
{
border-style: 1px solid blue;
border-radius: 15px;
}
…if a user's browser doesn't support border-radius, it ignores it —they'll see square corners
| Layout engine | Browsers | Prefix |
|---|---|---|
| Gecko | Firefox | -moz- |
| WebKit | Chrome, Safari, iPhone & Android | -webkit- |
| Presto | Opera, Opera Mini | -o- |
| Trident | IE | -ms- |
| KHTML | Konqueror | -khtml- |
p
{
border-style: 1px solid blue;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
}
p
{
border-style: 1px solid blue;
-moz-border-radius-topright: 24px;
-moz-border-radius-topleft: 24px;
-webkit-border-top-right-radius: 24px;
-webkit-border-top-left-radius: 24px;
border-top-right-radius: 24px;
border-top-left-radius: 24px;
}
What do you notice?
Diagram from Wikipedia
#box
{
width : 300px;
padding : 30px;
border : 20px;
margin : 10px;
}
<link rel="stylesheet" type="text/css" href="styles.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6_only_styles.css" />
<![endif]-->
video tag
<video src="wedding.webm" controls="controls" preload="preload"> </video>(or
preload="none" if you don't want the video loaded when the page loads)
<video controls="controls" preload="preload">
<source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'>
<source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'>
</video>