css3_cheat_sheetv4.2.pdf
(
711 KB
)
Pobierz
HTML5 Cheat Sheet
learn by doing
<DOCTYPE>
<HEAD>
<!DOCTYPE html PUBLIC "
-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/
DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style.css"
type="text/css">
<html xmlns="http://www.w3.org/
1999/xhtml" lang="en"
xml:lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<! DOCTYPE html>
<html lang="en">
<NAV>
A section of the page that links to
other pages on the site or to other
sections of that particular page
<HEADER>
A group of introductory or
navigational aids
<div id="navigation">
<ul>
<li>Home</li>
<li>About/li>
<li>Work</li>
<li>Shop</li>
<li>Contact</li>
</ul>
</div>
<div id="header">
<h1>OMG, Look at the
Zombies!</h1>
</div>
<header>
<h1>OMG, Look at the
Zombies!</h1>
</header>
<nav>
<ul>
<li>Home</li>
<li>About/li>
<li>Work</li>
<li>Shop</li>
<li>Contact</li>
</ul>
</nav>
<HGROUP>
<header>
<hgroup>
<h1>WeAreFamly</h1>
<h2>All your brains are
belong tous</h2>
</hgroup>
</header>
<SECTION>
A grouping of content based
around a theme
<section>
<header>
<h1>ACCBasketbalNews</h1>
</header>
<h2>UNC Beats Duke in Championship Game!
</h2>
<p>The Blue Devils are routed by the Tarheels
atCameron IndoorStadium.</p>
</section>
<div id="acc-news">
<h2>ACC Basketball
News</h2>
<h3>UNC Beats Duke in
Champsionship Game!</h3>
<p>The Blue Devils are routed
by the Tarheels at Cameron
Indoor Stadium.</p>
</div>
Produced by
Produced by
page 1 of 2
envylabs.com
nvylabs.com
HTML5
Cheat Sheet
HTML5
Cheat Sheet
learn by doing
<ARTICLE>
<ASIDE>
An independent, self-contained
composition
Content related to an article but
not critical to its understanding
<div id="acc-news">
<h2>ACC Basketball
News</h2>
<h3>UNC Beats Duke In
Championship Game!</h3>
<p>The Blue Devils are routed
by the Tarheels at Cameron
Indoor Stadium.</p>
</div>
<article>
<header>
<h1>UNC Beats Duke In
Championship Game</h1>
</header>
<p>The Blue Devils are routed by
the Tarheels at Cameron Indoor
Stadium.</p>
<aside>
<p>Former Duke Players Cry at
Game’s End</p>
</aside>
</article>
<section>
<header>
<h1>ACC Basketball
News</h1>
</header>
<article>
<header>
<h1>UNC Beats Duke In
Championship Game!
</h1>
</header>
<p>The Blue Devils are
routed by the Tarheels at
Cameron Indoor
Stadium.</p>
</article>
</section>
<FOOTER>
Includes information that closes out
a particular section
<div id="footer">
<h3>Talk to Me Goose</h3>
<p>© 2011 Maverick &
Goose Ventures.</p>
</div>
<footer>
<h3>Talk to Me Goose</h3>
<p>© 2011 Maverick &
Goose Ventures.</p>
</footer>
<FORMS>
New stuff:
- Input types
- email
- url
- number
- date
- color
- search
- Native placeholder text
<CANVAS>
Canvas is a section of your page
where you can use javascript to
create whatever you want.
<input type="email"
id="news-email"
placeholder="e.g. beer@aol.com"
required/>
<canvas width="400" height="325">
<p>Sorry, no soup for you!</p>
</canvas>
Produced by
Produced by
page 2 of 2
envylabs.com
nvylabs.com
CSS3 Cheat Sheet
learn by doing
BORDER-
RADIUS
BOX-SHADOW
-webkit-border-radius
-moz-border-radius
border-radius
-webkit-box-shadow
-moz-box-shadow
box-shadow
-webkit-border-top-left-radius
-webkit-border-top-right-radius
-webkit-border-bottom-left-radius
-webkit-border-bottom-right-radius
syntax:
x y blur color
example:
box-shadow: 5px 5px #000;
-moz-border-radius-topleft
-moz-border-radius-topright
-moz-border-radius-bottomright
-moz-border-radius-bottomleft
TEXT-SHADOW
-webkit-text-shadow
-moz-text-shadow
text-shadow
syntax:
x y blur color
border-top-left-radius
border-top-right-radius
border-bottom-right-radius
border-bottom-left-radius
example:
text-shadow: 5px 5px #000;
example:
border-radius: 5px
-webkit-transition
-moz-transition
transition
TRANSITION
TRANSFORM
-webkit-transform
-moz-transform
transform
example:
transform: scale(1.5);
syntax:
css-property duration timing-function
scale(val)
rotate(val)
skew(val, [val])
translate(val, [val])
fx
{
RGBA/HSLA
RGBA/HSLA
example:
transition: opacity .2s ease-in-out;
BACKGROUND
GRADIENTS
-webkit-gradient(type, point, [radius], point, [radius], color-stops);
example: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#A4B183), to(#C2D19B));
-moz-linear-gradient([point or angle], color-stop, color-stop, [color-stop])
example: -moz-linear-gradient(19%, 75% 90deg, #A4B183, #C2D19B);
linear-gradient(color-stop, color-stop);
MULTIPLE
BACKGROUND
background:url(path_to_file) no-repeat right top, url(path_to_file) repeat center top;
FONTS
RGBA/HSLA
rgba(red, green, blue, opacity);
hsla(hue, saturation, lightness, alpha);
@font-face {
font-family: “Font Family Name”;
src: url(“path_to_file”);
format(“font_type”);
}
example:
background: rgba(208, 208, 198, 0.5);
Plik z chomika:
Vaxx
Inne pliki z tego folderu:
level2 - CSS3.mp4
(181429 KB)
level3 - header and nav.mp4
(173015 KB)
level1 - HTML.mp4
(167189 KB)
level4 - footers and forms.mp4
(180256 KB)
Three_For_Five.pdf
(7112 KB)
Inne foldery tego chomika:
Backbone JS
CoffeScript
CSS
GIT
Inne
Zgłoś jeśli
naruszono regulamin