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
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
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.6k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
220
Navigating Team Friction
lara
192
16k
Unsuck your backbone
ammeep
672
58k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Producing Creativity
orderedlist
PRO
348
40k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Ethics towards AI in product and experience design
skipperchong
2
330
The Cost Of JavaScript in 2023
addyosmani
55
10k
The SEO Collaboration Effect
kristinabergwall1
1
500
The Curse of the Amulet
leimatthew05
2
13k
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/