Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL

Similar documents
Bootstrap 1/20

Mateen Eslamy 10/31/13

Building beautiful websites with Bootstrap: A case study. by Michael Kennedy michaelckennedy.net

Create First Web Page With Bootstrap

Front-End UI: Bootstrap

Bootstrap Carousel Tutorial

Session 5. Web Page Generation. Reading & Reference

Bootstrap Carousel. jquery Image Sliders

This project will use an API from to retrieve a list of movie posters to display on screen.

CSC Web Technologies, Spring HTML Review

Where s My Cat? <title>where's My Cat?</title> </head> <body> <h1 class="where">where's MY CAT?</h1>

Web Programming BootStrap Unit Exercises

ADVANCED JAVASCRIPT #8

Programming web design MICHAEL BERNSTEIN CS 247

For instructions to change the logo, please refer to: ore

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Last class we looked at HTML5.

NukaCode - Front End - Bootstrap Documentation

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

The Structure of the Web. Jim and Matthew

Structure Bars. Tag Bar

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup

Creating Web Pages Using HTML

ADVANCED JAVASCRIPT. #7

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

Summary 4/5. (contains info about the html)

Programming of web-based systems Introduction to HTML5

Working Bootstrap Contact form with PHP and AJAX

A website is a way to present your content to the world, using HTML to present that content and make it look good

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

CSS (Cascading Style Sheets)

Website Development with HTML5, CSS and Bootstrap

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

SilkTest 2009 R2. Rules for Object Recognition

For instructions to change the logo, please refer to:

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Static Webpage Development

HTML: Parsing Library

,.., «..»

Description: This feature will enable user to send messages from website to phone number.

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6

BOOTSTRAP RESPONSIVE.

Responsive Web Design (RWD)

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p> <a href=" </a></p> </ul> <li> </li> <ol>

~Arwa Theme~ HTML5 & CSS3 Theme. By ActiveAxon

Programmazione Web a.a. 2017/2018 HTML5

For instructions to change the logo, please refer to:

WEB/DEVICE DEVELOPMENT CLIENT SIDE MIS/CIT 310

Silk Test Object Recognition with the Classic Agent

Web UI. Survey of Front End Technologies. Web Challenges and Constraints. Desktop and mobile devices. Highly variable runtime environment

Spring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 게시판리스트보기.

<link rel="stylesheet" href="

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

Mobile Web Development

Bootstrap 3 CSS Classes Desk Reference

Purpose of this doc. Most minimal. Start building your own portfolio page!

Deccansoft Software Services

HTML, CSS, Bootstrap, Javascript and jquery

HTML and CSS COURSE SYLLABUS

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Bootstrap

Want to read more? You can buy this book at oreilly.com in print and ebook format. Buy 2 books, get the 3rd FREE!

Index. CSS directive, # (octothorpe), intrapage links, 26

HTML: Parsing Library

Udacity Frontend Nanodegree Style Guide

Lecture 7. Action View, Bootstrap & Deploying 1 / 40

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Web development using PHP & MySQL with HTML5, CSS, JavaScript

QUICK REFERENCE GUIDE

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Wireframe :: tistory wireframe tistory.

CUSTOMER PORTAL. Custom HTML splashpage Guide

Table-Based Web Pages

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Making a live edit contact list with Coldbox REST & Vue.js

<page> 1 Document Summary Document Information <page> 2 Document Structure Text Formatting <page> 3 Links Images <page> 4

Zero to Hero. CSS Frameworks. Zero to Hero. - Boris Fritscher 1 / 26. Bootstrap (

CSC Web Programming. Introduction to HTML

Integrating the Quotation page with your site

CSS (Cascading Style Sheets): An Overview

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

For instructions to change the logo, please refer to: ore

26 $host = "localhost" ; 27 $user = "marcolg" ; 28 $password = "" ; 52 $connessione = new mysqli ($host, $user, $password );

Building Web Applications

CIS 228 (Spring, 2012) Final, 5/17/12

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Produced by. Agile Software Development. Eamonn de Leastar

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

HTML Forms. By Jaroslav Mohapl

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

WEB DESIGNING COURSE SYLLABUS

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

Certified HTML5 Developer VS-1029

А «- - «Exellent»» 50, 18, «Exellent»., , -., -. -,, html -. - «Exellent»,.

Basic Bootstrap Classes

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

WEBSI TE DESIGNING TRAINING

How the Internet Works

Transcription:

Chapter6: Bootstrap 3 Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL

Objective To apply Bootstrap to a web site To know how to build various bootstrap commands to be a content

Topics Bootstrap Installation Typography Grid system Tables Thumbnails Jumbotron Badges Dropdown menus Input Carousel

What is Bootstrap Bootstrap is a group of design template for webpage creation. Easily manipulate display contents on different devices (tablet, mobile, desktop) Bootstrap consists modified CSS, JavaScript and HTML. Bootstrap introduce by Mark Otto and Jacob Thornto at Twitter. Open-source www.getbootstrap.com

Installation Download bootstrap from getbootstrap.com

Installation: extraction file After file is extracted, we have get three folders in bootstrap-3.3.5-dist

Installation: call Bootstrap <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>bootstrap 101 Template</title> <link href= css/bootstrap.min.css" rel="stylesheet"> </head> <body> <h1>hello, world!</h1> <script src="jquery/jquery-1.11.3.min.js"></script> <script src= js/bootstrap.min.js"></script> </body> </html>

Installation: request jquery What is jquery? Client-side JavaScript library jquery uses for navigate document, DOM, event handling, and AJAX

Installation: download jquery https://jquery.com/download Put the file in /jquery/

Typography Header Small by header Highlight Quote message <h1> <h6> <small> <mark> Keyboard shortcut <kbd> Text color <blockquote> class= text-info.text-muted.text-primary.text-success.text-info.text-warning.text-danger

Example <h1>สว สด <small> สว สด </small> </h1> <h3 class="text-danger">sawadee<small> sawadee </small> </h3> <p> ทดสอบ<mark>ภาษาไทย </mark> </p> <blockquote> Thailand is a country on Southeast Asia s Indochina peninsula known for tropical beaches, opulent royal palaces, ancient ruins and ornate temples displaying figures of Buddha, a revered symbol. In Bangkok, the capital, an ultramodern cityscape rises next to quiet canal and riverside communities. Commercial hubs such as Chinatown consist of labyrinthine alleys crammed with shop houses, markets and diners. <footer> from www.google.com </footer> </blockquote> <p> Copy texts presses <kbd> CTRL+C </kbd> </p>

Grid System Display web page on different devices has a problem, using grid class being answer. Grid class sets for four kinds of display xs for phone xm for tables md for desktop lg for large desktop

Grid System: row & column column row <div class= row > <div class= col-md-1 > aa </div> <div class= col-md-1 > bb </div> </div>

Example <div class="row"> <div class="col-md-1" style="background-color:lavender;"> aa </div> <div class="col-md-1" style="background-color:pink;"> bb </div> <div class="col-md-4" style="background-color:lavender;"> cc </div> <div class="col-md-4" style="background-color:green;"> dd </div> </div>

Tablet Mobile

Example: mobile display <div class="row"> <div class="col-xs-1" style="background-color:lavender;"> aa </div> <div class="col-xs-1" style="background-color:pink;"> bb </div> <div class="col-xs-4" style="background-color:lavender;"> cc </div> <div class="col-xs-4" style="background-color:green;"> dd </div> </div>

Tablet Mobile

Tables Table style.table.table-striped.table-bordered.table-hover.table-condensed Row colors <tr class= > success info warning danger

<table class="table"> <thead> <th> Id </th> <th> Email </th> </thead> Example <tbody> <tr> </tr> </tbody> </table> <td> 12345</td> <td> abc@abcd.com</td>

Thumbnails Image shapes.img-rounded.img-circle.img-thumbnail

Example <img src="picture.jpg" class="img-circle" width="200"> <img src="picture.jpg" class="img-rounded" width="200">

<table class="table"> <thead> <th> image </th> <th> Email </th> </thead> Example <tbody> <tr> <td> <img src="picture.jpg" class="img-circle" width="200"> </td> <td> abc@abcd.com</td> </tr> <tr> <td> <img src="picture.jpg" class="img-circle" width="200"> </td> <td> def@abcd.com</td> </tr> </tbody> </table>

Jumbotron Jabotron is information banner presenting on a gray box with rounded corners. Example: <div class=container> <div class="jumbotron"> <h1>สว สด </h1> </div> </div> <p> ขอตอนร บเข าส ว ชาน </p>

Badges Badges are numerical indicator on label shows number of item in a link Example: <div class=container> <div class="jumbotron"> <h1>สว สด <span class="badge">13</span></h1> <p> ขอตอนร บเข าส ว ชาน </p> </div> <a href="#">friends <span class="badge">14</span></a><br> <a href="#">powers <span class="badge">56</span></a><br> <img src="picture.jpg" class="img-circle" width="200"> <span class="badge"> 56</span> </div>

Class in dropdown.dropdown.dropdown-header.dropdown-toggle.caret Dropdown menu

Example <div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"> Thai University <span class="badge">3</span> <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="http://www.swu.ac.th">swu</a></li> <li><a href="http://www.kmitl.ac.th">kmitl</a></li> <li><a href="http://www.msu.ac.th">msu</a></li> </ul> </div>

Input Bootstrap apply five inputs.form-group Input <input type = text, password >.formcontrol Textarea Select list <textarea class= form-control > <select>.. <option> xx </option> </select>.checkbox Checkbox <input type= checkbok > Checkbox inline.checkbox-inline.radio.radio.radio disable

<div class="form-group"> <label>name:</label> <input type="text" class="form-control" id="usr"> Example <label>password:</label> <input type="password" class="form-control" id="pwd"> <label>message:</label> <textarea class="form-control" rows="5" id="comment"></textarea> <label>select:</label> <div class="checkbox"> <label><input type="checkbox" value="">option 1</label> <label><input type="checkbox" value="">option 2</label> </div> </div>

<br/> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> Example <div class="form-group"> <label>name:</label> <input type="text" class="form-control" id="usr"> <label>password:</label> <input type="password" class="form-control" id="pwd"> <label>message:</label> <textarea class="form-control" rows="5" id="comment"></textarea> <label>select:</label> <div class="checkbox"> <label><input type="checkbox" value="">option 1</label> <label><input type="checkbox" value="">option 2</label> </div> </div> </div> </div>

<div class="radio"> <label><input type="radio" name="optradio">option 1</label> </div> <div class="radio"> <label><input type="radio" name="optradio">option 2</label> </div> <div class="radio disabled"> <label><input type="radio" name="optradio" disabled>option 3</label> </div> <div class="form-group"> <label for="sel1">select list:</label> <select class="form-control" id="sel1"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select> </div> Add more code from previous example

Carousel Carousal is slideshow creation from JavaScript

<div class="container"> <div id="mycarousel" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#mycarousel" data-slide-to="0" class="active"></li> <li data-target="#mycarousel" data-slide-to="1"></li> </ol> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="picture.jpg" width="400"> <div class="carousel-caption"> <h3>htext</h3> <p>description</p> </div> </div> <div class="item"> <img src="picture2.jpg" width="400"> <div class="carousel-caption"> <h3>htext</h3> <p>description</p> </div> </div> </div> </div></div>

Add more style <style>.carousel-inner >.item > img,.carousel-inner >.item > a > img { width: 40%; margin: auto; } </style>

Reference http://www.w3schools.com/bootstrap/ http://getbootstrap.com/