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
HTML & Bootstrap
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jeremy Yen
October 22, 2013
Technology
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
HTML & Bootstrap
Tutorial In Action
Jeremy Yen
October 22, 2013
More Decks by Jeremy Yen
See All by Jeremy Yen
dEXonation
jeremy5189
0
120
A day of full stack developer @ NFU
jeremy5189
0
220
Club Mate and Hacker - 34C3 @ SITCON
jeremy5189
2
740
SITCON 2017 論壇系統開發分享 @ SITCON 2017 Summer
jeremy5189
0
240
poManeuver: Poland into space
jeremy5189
0
480
How we hacked a forum
jeremy5189
0
520
Bdecisive - Booking.com Taipei Hack 2nd Prize
jeremy5189
0
590
Social Intelligence Smart-device project
jeremy5189
0
71
IoT made easy @ SITCON x HK
jeremy5189
0
110
Other Decks in Technology
See All in Technology
現場との対話から始める “作る前に問い直す”業務改善
mochico50
2
310
ダッシュボード"開発"について 〜使われるダッシュボードのつくりかた〜
kimichan
0
220
データ活用研修 データマネジメント【MIXI 26新卒技術研修】
mixi_engineers
PRO
2
300
インシデント事例と パッケージの全量解析に学ぶ ソフトウェアサプライチェーンの守り方 / supply-chain-attack-defense
flatt_security
0
1.1k
kaonavi Tech Night#1
kaonavi
0
180
AI時代におけるテストの基礎の再定義 / Rethinking the Fundamentals of Testing in the AI Era
mineo_matsuya
14
5.6k
書籍セキュアAPIについて
riiimparm
0
330
OPENLOGI Company Profile for engineer
hr01
1
75k
Claude CodeとAmazon Bedrock AgentCoreでつくる、自分だけのAIアシスタント
ymae
0
110
「守りたい体験」を渡すだけで E2E を生成させられるようになった話
hinac0
2
1.1k
どこまでAIに任せるか 〜確率論と決定論の境界決定〜
shukob
0
520
システム監視入門
grimoh
2
560
Featured
See All Featured
Paper Plane
katiecoart
PRO
2
52k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
470
Embracing the Ebb and Flow
colly
88
5.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
910
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
500
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Transcript
HTML & Bootstrap Tutorial In Action NTUST Jeremy Yen
HTML REVIEW http://office.ntustsg.com/bootstrap.zip 2
基本⾴頁⾯面 <!DOCTYPE html> <html> <head> ! <title>頁面標題</title> ! <meta http-equiv="content-type"
content="text/ html;charset=utf-8" /> </head> <body> ! <!-- 頁面內容 --> </body> </html> 3
連結 <a href="連結位置" title="滑鼠小提示文 字" target="_blank">顯示文字</a> 加入 target="_blank" 會使連結在新視窗 開啟
4
圖⽚片 <img src="圖片位置" alt="圖片說明" title="滑鼠小提示文字"/> 5
可點選的圖⽚片 <a href="http:/ /www.google.com"> ! <img src="google.png"> </a> 6
標題 <h1>標題</h1> <h2>標題</h2> <h3>標題</h3> <h4>標題</h4> 數字越大字型越小 7
⽂文件結構 <p>文章段落</p> <div>分區標籤</div> <span>小分區標籤</span> <br/> 換行 <hr/> 水平線 8
⽂文字樣式 <strong>粗體</strong> <i>斜體</i> <del>刪除線</del> 9
列表 <ul> ! <li>項目</li> ! <li>項目</li> </ul> 10
表單 <form method="POST" action=""> ! <legend>標題</legend> ! <input type="text" value="輸入值">
! <select> ! ! <option value="">下拉選單</option> ! </select> ! <button>按鈕</button> </form> 11
ID / Class <a href="連結位置" id="link" class= "link">顯示文字</a> 同 ID
在同一個頁面只能出現一個 12
ID 選擇器 <style> ! #link { ! ! color: red;
! } </style> 13
Class 選擇器 <style> ! .link { ! ! color: red;
! } </style> 14
Try It 在⼀一個⾴頁⾯面中隨便加⼊入上述元素 15
Twitter Bootstrap 開放的 CSS 樣式資源庫 16
使⽤用⽅方法 <link href="bootstrap.css" rel="stylesheet"> 17
⾺馬上⽣生效 18
運作原理 將你的 HTML 加⼊入特定 class 後,Bootstrap CSS 會 ⾃自動套⽤用樣式上去 19
參考 • 官⽅方⽂文件與範例 • http://getbootstrap.com/2.3.2/base-css.html • COSCUP 2012 簡報 •
https://speakerdeck.com/evenwu/twitter- bootstrap-hao-yong-de-wang-ye-she-ji- kuang-jia-1 20
⾺馬上動⼿手 ⾄至參考網站複製 HTML 並編輯教材裡的 index.htm 21