Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Web Development 101
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Karl Li
September 12, 2014
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Development 101
Karl Li
September 12, 2014
More Decks by Karl Li
See All by Karl Li
Rebuild flyingV with Laravel
killtw
0
1.6k
Web Development 102
killtw
0
75
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
3.7M
Building the Perfect Custom Keyboard
takai
2
800
Building Applications with DynamoDB
mza
96
7.1k
The Curse of the Amulet
leimatthew05
2
13k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Mobile First: as difficult as doing things right
swwweet
225
10k
Tell your own story through comics
letsgokoyo
1
960
Claude Code のすすめ
schroneko
67
230k
Believing is Seeing
oripsolob
1
150
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
150
Transcript
Web Development 101
Karl Li Back-end Developer @killtw http://about.me/killtw
A basic website includes
HTML
Basic HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title>
<link rel="stylesheet" href="/path/to/a/css/file.css"> </head> <body> blah blah blah <script src="/path/to/a/javascript/file.js"></script> </body> </html>
<a href="https://www.flyingv.cc/">FlyingV</a>
Common Elements <a>Link</a> <p>Paragraph</p> <div>Division</div> <span></span> <strong>Bold</strong> <em>Italics</em> <h1>Title</h1> <table>Table</table>
<ul>Unordered list</ul> <li>List</li> <script>Javascript</script> <style>.css {}</style> <hr> <br> <img>
More Elements <header></header> <footer></footer> <article></article> <nav></nav> <canvas></canvas> <svg></svg> <audio></audio> <video></video>
Removed Elements <b></b> <center></center> <font></font> <strike></strike>
Font <i></i> <em></em> <strong></strong> <del></del>
Link <a href="https://www.flyingv.cc/" target="_blank">FlyingV</a>
Title h1 h2 h3 h4 h5 h6
Table <table> <thead> <tr> <th>Name</th> <th>Account</th> </tr> </thead> <tbody> <tr>
<td>Karl Li</td> <td>killtw</td> </tr> </tbody> </table>
Images <img src="https://www.flyingv.cc/images/logo2x.png" title="flyingV" alt="Logo">
Form <form action="/register" method="post"> <div> <label for="nickname">Name: </label> <input type="text"
id="nickname" name="nickname" placeholder="Your name here."> </div> <div> <label for="bio">Bio: </label> <textarea name="bio" id="bio" cols="30" rows="10"></textarea> </div> <div> <label for="gender">Gender: </label> <select name="gender" id="gender"> <option value="0">Male</option> <option value="1">Female</option> </select> </div> </form>
CSS
Basic selector { property: value; } Example h1 { color:
blue; font-size: 18px; } h2, h3 { font-weight: bold; }
Last come, first served h4 { color: red; font-size: 10px;
} h4 { color: gray; } Cut in h4 { color: orange !important; }
Selectors For element table {} For ID #content {} #avatar
img {} For class .lists {} a.title {}
Pseudoclass Selectors a:link { color: black; } a:visited { color:
purple; } a:hover { color: pink; } a:active { color: yellow; }
Box Model
Margin Distance to other elements .list { margin: up right
down left; }
Border table { border: 1px; border-color: pink; border-style: dotted; }
Padding Distance between content and borders div#backers { padding: up
right down left; }
Font » font-family » font-size » font-weight » font-decoration »
font-indent » color
Good tools make you more efficient » Sublime Text »
Emmet » JS Bin / Codepen » Twitter Bootstrap » Google Chrome
Why Sublime Text is awesome? » Fast » Light »
Plugins » Cross Platform » FREE!
Emmet html:5 ul>li*5 table[border=1px]>(thead>tr>(th{Name}+th{Account}))+ (tbody>(tr>(td{User$$}+td{Account$$}))*5) ul>(li>a[href=http://https://www.flyingv.cc/project/ $]{Project_$})*10
JS Bin
Codepen
Bootstrap http://getbootstrap.com/ Built at Twitter
Grid system
Grid options
One more thing...
SITCON http://sitcon.org/2014/ Rails Girls Taipei http://railsgirls.com/taipei Django Grils Taipei http://djangogirls.org/taipei/