Movatterモバイル変換


[0]ホーム

URL:


Uploaded byssusered83521
PPTX, PDF56 views

html css js bootstrap framework thisis i

The document provides a detailed overview of HTML, CSS, and Bootstrap, covering essential concepts such as front-end vs back-end coding, the structure of HTML documents, CSS syntax, and the usage of Bootstrap for responsive web design. It explains key elements, markup language, and the hierarchical organization of HTML content while introducing CSS rules and selectors, including specificity and the box model. Additionally, it outlines Bootstrap's grid system and advantages for efficient web development.

Embed presentation

Download to read offline
HTML, CSS, BootstrapFramework
What we will talkabout:Front-end vs Back-end coding at bswiftDefining HTML, CSS and JavascriptHow the client stylesheets workExamplesTools
Static Pages / Dynamic Pages
A static website is a group of self-contained,individual pages (or page), sent to the browserfrom the server one-page-at-a-time.SERVERpage.html page.html page.html
Dyamic web content is built when it isrequested, by the user directly, orprogrammatically while a user is on a page(e.g., facebook updates).Most websites contain both static and dynamicSERVER page.htmlSQL databases.netHTML
SERVERREQUESTHTMLCSSJavascriptSQL databases.netCan I havea webpage,please?back-end “recipe”front-endSERVERRESPONSEthanks!
Server-side / Client-side akaBack End / Front-end
Client-side (front-end) coding includes HTML, CSSand Javascript. This just means that our code willbe downloaded from the server and then compiledentirely in the browser.SERVERpage.html.aspSQLetc.netBROWSERstyle.cssscript.js
HTML, CSS,Javascript
Three layers of webdesign:Structure, Style, Behavior
STRUCTUREHTMLmarkup SiteplanningPRESENTATIONCSSImageryBEHAVIORJavascript
HTML
Hyper Text+Markup Language
Hyper Text
Markup LanguageA markup language isa set of markup tags.The purpose of the tags is togroup and describe pagecontent.
Markup LanguageWithout any markup to give your content structure,the browser renders unformatted and unstyled text,also known as “plain text”.
Markup LanguageHTML tags give structure and meaning to your content.“Semantic markup” refers to the use of meaningful tags todescribe content (e.g. using header tags for headercontent).
Markup LanguageOnce your content is marked up, the browser applies built-in default styles to the tags. While you can override thesestyles with css, your marked up, non-css styled documentshould be readable and have a clear hierarchy.
doctypehtmlheadbody
<!DOCTYPEhtml>EXCEPTIONThe doctype is not actually a tag,but a declaration, telling thebrowser what kind of html you areusing. The doctype above declaresHTML 5.
<html></html>The <html> elementdefines the whole HTMLdocument.
<head></head>The <head> element contains specialelements that instruct the browserwhere to find stylesheets, providemeta info, and more.
<body></body>The <body> element containsthe document content (what isshowninside the browser window).
NestingThe use of our first three tags (html, head and body),introduces and important concept: Nesting, which is whentags “wrap” other tags. When you create markup, youshould indicate nesting by indenting the nested tags with 2spaces (preferred) or a tab.<html><head> </head><body><h1></h1><p></p></body></html>
Document Hierarchy: Parents, children and siblingsJust as in a genealogy tree, the family hierarchy is describedin terms of relationships. All elements in the document havea parent (up to ‘document’, which is at the top), and mayhave children (nested inside) or siblings (placed alongside).<parent x><child and sibling y> </child and siblingy><child and sibling z> </child and siblingz></parent x>
The ‘address’ of an elementThe document hierarchy provides us with an ‘address’ foreach element.in the div with class “client-text-container”, make all of theh2 elements orange and 24px.
HTML Elements
Anatomy of anElement<tag>Content</tag>An HTML element includes boththe HTML tag and everythingbetweenthe tag (the content).
Anatomy of anElement<tag>Content</tag>Tags normally come in pairs. Thefirst tag is the start tag, and thesecond tag is the end tag.
Anatomy of anElement<h1>Main Headline</h1>HTML has a defined set of tagnames (also called keywords)that the browser understands.
The essential elementtagsPrimaryStructurehtmlheadbodyHeadElementstitlemetalinkStructuralElements(block)pbrh1 –h6 ulolaimgFormattingElements(inline)emistrongbqblockquote(span)
eSpaceNested Tags
eSpaceBasic Structure
HeadeSpace
PrevieweSpace
BodyeSpace
PrevieweSpace
HeaderseSpace
PrevieweSpace
ParagrapheSpace
PrevieweSpace
ListseSpace
PrevieweSpace
DiveSpace
PrevieweSpace
Block elementseSpace
Inline elementseSpace
PrevieweSpace
More Inline elementseSpace
PrevieweSpace
Anatomy of anElement<html lang=”en”></html>Most elements can have attributes,which provides additionalinformation about the element.
Anatomy of anElement<div class=”left-nav”></div>Attributes always follow the sameformat: name=”value”. You canuse either single or doublequotes.
The essentialattributeslink <link rel=”stylesheet” type-”text/css”href=”stylesheet/styles.css”>img <img src=”images/image.jpg”alt=”Sam”>a <a href=”http://colum.edu”>My school</a>
CSS
Cascading+Style Sheet
A stylesheet is a set of rules defininghow an html element will be“presented” in the browser.These rules are targeted tospecific elements in the htmldocument.TheStylesheet
The “cascade” part of CSS is a set ofrules for resolving conflicts with multipleCSS rules applied to the same elements.For example, if there are two rulesdefining the color or your h1 elements,the rule that comes last in the cascadeorder will “trump” the other.The Cascade
BrowserstylesheetLinked (external) stylesheetEmbedded (internal)stylesheet Inline (internal)lowimportancehighimportance
Most elements will inherit many styleproperties from their parent elements bydefault.HTML<body><div><ul><li></li></ul></div></body>relationshipparentparentparentof siteof ul and li, childof li, child ofdivof bodyand bodychild of ul, div, and bodyInheritance
bodymake the paragraph 16px, Verdana,redpmake the paragraph blue16px, Verdana,blueInheritance
Shortly after styling your first html elements,you will find yourself wanting more controlover where your styles are applied.This is where specificity comes in.Specificity refers to how specific your selectoris in naming an element.Specificity
bodymake the paragraph 16px, Verdana, redpmake the paragraph bluep.pinkmake the paragraphpinkSpecificity
HTML<div id=”plan-2323”>is some text.</p>this text.</p><p>Here<p>Hide<div><div id=”plan-2323”><p>Here is some text.</p><p class=”hideclass”>Hide this text.</p><div>CSS#plan-2323.hideclass {display: none}
CSS SyntaxSyntax = the rules for how to write thelanguage
Three terms for describing yourstyles:CSS ruleCSSselectorCSSdeclaration
Every style is defined by a selector anda declaration. The declaration contains atleast one property/value pair.Together theyare called a CSS Rule.selector {property: value;}declarationCSS Rule
body {font-family: Arial, Helvetica}p {color: #666666}h1 {font-size: 24px}a{color: blue}The selector associates css ruleswith HTML elements.CSSSelector
p {color: red}The selector is typed in front of thedeclaration, with a space separating it and theopening curly-bracket (aka curly-brace).Typically, extra spaces and returns are addedas shown for the sake of readability.CSSSelector
h1,h2,h3,h4 {font-weight: bold}You can apply styles to multiple selectors inthe same rule by separating the selectors withcommas.CSSSelector
p {property: value}The declaration is always defined in aproperty/ value pair. The two are separated bya colon.How you define the properties will affecthow HTML elements are displayed.CSSDeclaration
p {font-family: Arial, sans-serif;font-size: 14px;color: #666666;}You can apply multiple declarations to aselector(s) by separating the delcarationswith semi-colons.CSSDeclaration
CSS Selectors
p Type (element)# ID. Class
body {declaration}p {declaration}h1 {declaration}ul {declaration}The simplest selector is the type selector,which targets an html element by name.Type (element) Selectors
Element SelectoreSpace
PrevieweSpace
The essential selector types(elements)Primary Body FormattingStructure Elements Elementshtml p embody br ih1 – h6 strongul bol qa blockquoteimg spandiv
CSS#logo {declaration}HTML<img id=”logo” src=”” alt=””>An ID is an html attribute that is added toyour html markup. You reference that ID inyour css with a hash.IDSelectors
ID SelectoreSpace
PrevieweSpace
CSS.ingredients {declaration}HTML<ul class=”ingredients”>A class is an html attribute that is added toyour html markup. You reference that ID inyour css with a period.ClassSelectors
Class SelectoreSpace
PrevieweSpace
IDs vsClassesThe most important difference betweenIDs and classes is that there can be onlyone ID on a page, but multiple classes.An ID is more specific than a class.An element can have both an IDand multiple classes.
IDs vsClassesID: #344-34-4344Class: MaleClass: EmployeeID: #123-54-9877Class: FemaleClass: Employee
2 RuleseSpace
PrevieweSpace
Descendant SelectorsCSS#sidebar .author {declaration}HTML<div id=”sidebar”><p class=”author”></p></div>A space between two selectors indicates adescendant selector. In the example above,the style is targeted to an element with theclass “author” inside the id “sidebar”.
Descendent SelectoreSpace
PrevieweSpace
Multiple classesCSS.ingredients.time {declaration}time”>HTML<div class=”ingredients<h1></h1></div>Elements can have multiple classes, givingyou more control. The are written in the CSSin the exact order they appear in the html,with no spaces.
Box Model (Block)eSpace
Box Model (Block)eSpace
Box Model (Block)eSpace
PrevieweSpace
Margin collapseeSpace
Margin collapseeSpace
Box Model (Inline)eSpace
Box Model (Inline)eSpace
PrevieweSpace
Relative PositioneSpace
Absolute PositioneSpace
Fixed PositioneSpace
FloateSpace
FloateSpace
Bootstrap is Front-end FrameworkHTML, CSS, and JS framework fordeveloping responsive, mobile first projects on theweb.www.getbootstrap.com
Bootstrap is Ready-to-use Web ElementsHTML / CSS elements for button, form,table, image, navbar, label, progress bar,alert etc.
EXAMPLESof Bootstrap Elements
more EXAMPLESof Bootstrap Elements
Websites created by Bootstraphttp://unroll.me
Websites created by Bootstrapwww.fliplingo.com
Why Bootstrap?● Save 100+ hours of coding● Easy to use web elements● Quick responsive prototype /website● Great documentation
Bootstrap Package● CSS - bootstrap.css● JS - bootstrap.js● Icon Fonts - glyphicons-halflings-regular.ttf
Bootstrap CDNwww.bootstrapcdn.com
Bootstrap Playgroundhttp://bit.ly/bs-play
Bootstrap ComponentsStartWorkshop
What is Grid in web design?
12GridWhat is Grid in web design?1 2 3 4 5 6 7 8 9 10 11 12
4 Grids x 3Columns= 12 GridsWhat is Grid in web design?1 2 3 4 5 6 7 8 9 10 11 124 Grid 4 Grid 4 Grid
Bootstrap Grid12 ResponsiveGrid
Grid Overlayfor Bootstrap & Foundationhttp://bit.ly/grid-overlay
4 Sizes of Bootstrap GridSize Name Screen Size CSS ClassExtra Small Devices(Phone)0 - 767 px .col-xs-1 ~ .col-xs-12Small Devices (Tablet) 768 - 991 px .col-sm-1 ~ .col-sm-12Medium Devices (Desktop) 992 - 1219 px .col-md-1 ~ .col-md-12Large Devices(Large screendesktop)1200px + .col-lg-1 ~ .col-lg-12
4 Sizes of Bootstrap GridSize Name Screen Size CSS ClassExtra Small Devices(Phone)0 - 767 px .col-xs-1 ~ .col-xs-12Small Devices (Tablet) 768 - 991 px .col-sm-1 ~ .col-sm-12Medium Devices (Desktop) 992 - 1219 px .col-md-1 ~ .col-md-12Large Devices(Large screendesktop)1200px + .col-lg-1 ~ .col-lg-12
How many grids in each box?Bootstrap Grid Examplehttp://bit.ly/bs-agency
Bootstrap Grid Example4 grids x 3 Columns
Bootstrap Grid Example
Bootstrap Grid Example
Bootstrap Grid Example 2How many grids in each box?
Bootstrap Grid Example 26 grids x 2 Columns
Bootstrap Grid Example 2
Bootstrap Grid Example 2
Bootstrap Row1 Row = 12 Grids
Bootstrap Row3 Rows
Bootstrap Row Example
Bootstrap Row Example
Bootstrap Responsive GridColumns will stack when responsive
Bootstrap Responsive Grid1 2 3 123DesktopMobileColumns stack on mobile
Bootstrap Grid Workshop3 Easy Steps:1. Addcontainer2. Add row3. Add columns
Bootstrap Grid Workshophttp://bit.ly/bs-business

Recommended

PDF
Html / CSS Presentation
PPT
HTML & CSS.ppt
PPTX
Workshop 2 Slides.pptx
PPTX
Java script and html
PPTX
Java script and html new
PPTX
Web Information Systems Html and css
PDF
Web Concepts - an introduction - introduction
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
PPTX
PDF
Introduction to HTML and CSS
PDF
Web Design & Development - Session 2
PPTX
Module 2 CSS . cascading style sheet and its uses
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PDF
GDI Seattle Intro to HTML and CSS - Class 1
PPT
html and css- 23091 3154 458-5d4341a0.ppt
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
PPTX
Html-Prabakaran
PDF
CSS Foundations, pt 1
PPTX
HTML and CSS Basics
PPTX
Lab#1 - Front End Development
PDF
Html & Html5 from scratch
PPTX
Web Development - Lecture 5
PPT
Unit 2-CSS & Bootstrap.ppt
PPT
ppt.ppt
PDF
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
PDF
Advanced Intrusion Detection and Classification using Transfer Learning with ...
PPTX
Step-by-step guide to designing standard a microbiology laboratory in pharmac...

More Related Content

PDF
Html / CSS Presentation
PPT
HTML & CSS.ppt
PPTX
Workshop 2 Slides.pptx
PPTX
Java script and html
PPTX
Java script and html new
PPTX
Web Information Systems Html and css
PDF
Web Concepts - an introduction - introduction
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Html / CSS Presentation
HTML & CSS.ppt
Workshop 2 Slides.pptx
Java script and html
Java script and html new
Web Information Systems Html and css
Web Concepts - an introduction - introduction
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)

Similar to html css js bootstrap framework thisis i

PPTX
PDF
Introduction to HTML and CSS
PDF
Web Design & Development - Session 2
PPTX
Module 2 CSS . cascading style sheet and its uses
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PDF
GDI Seattle Intro to HTML and CSS - Class 1
PPT
html and css- 23091 3154 458-5d4341a0.ppt
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
PPTX
Html-Prabakaran
PDF
CSS Foundations, pt 1
PPTX
HTML and CSS Basics
PPTX
Lab#1 - Front End Development
PDF
Html & Html5 from scratch
PPTX
Web Development - Lecture 5
PPT
Unit 2-CSS & Bootstrap.ppt
PPT
ppt.ppt
PDF
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
Introduction to HTML and CSS
Web Design & Development - Session 2
Module 2 CSS . cascading style sheet and its uses
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Introduction to Web Development.pptx
GDI Seattle Intro to HTML and CSS - Class 1
html and css- 23091 3154 458-5d4341a0.ppt
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Html-Prabakaran
CSS Foundations, pt 1
HTML and CSS Basics
Lab#1 - Front End Development
Html & Html5 from scratch
Web Development - Lecture 5
Unit 2-CSS & Bootstrap.ppt
ppt.ppt
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx

Recently uploaded

PDF
Advanced Intrusion Detection and Classification using Transfer Learning with ...
PPTX
Step-by-step guide to designing standard a microbiology laboratory in pharmac...
PPTX
Emerging Trends and Research Frontiers in Chemical Engineering for Green and ...
PPTX
Assessment 4 SRS Presentation - Final (2).pptx
PPTX
firewall Selection in production life pptx
PPTX
Vertical turbine pump explains installed in power plants
PPTX
Power point presentation on introduction of software engineering
PPTX
Takt Time vs Cycle Time vs Lead Time.pptx
PPTX
Optimizing Plant Maintenance — Key Elements of a Successful Maintenance Plan ...
PDF
Structural Conservation Appraisal of Indian Monuments Preserving India’s Arch...
PPT
63490613-Boiler-Tube-Leakage-analysis-symptoms-causes.ppt
PPTX
How to Implement Kaizen in Your Organization for Continuous Improvement Success
PPTX
ISO 14224 Compliance & CMMS Software — A Comprehensive Guide for Reliable Mai...
PPTX
Track & Monitor Preventive Maintenance — Best Practices with MaintWiz CMMS
PPTX
How to Use Mobile CMMS to Improve Maintenance Operations & Field Productivity
PDF
IPEC Presentation - Partial discharge Pro .pdf
PDF
ACI 318-2205_American Concrete Institute.pdf
PPTX
The Importance of Maintenance Budgets — Maximize Reliability & Control Costs ...
PPT
Software Engineering Unit-1 presentation for students
PDF
Presentation-on-Energy-Transition-in-Bangladesh-Employment-and-Skills.pdf
Advanced Intrusion Detection and Classification using Transfer Learning with ...
Step-by-step guide to designing standard a microbiology laboratory in pharmac...
Emerging Trends and Research Frontiers in Chemical Engineering for Green and ...
Assessment 4 SRS Presentation - Final (2).pptx
firewall Selection in production life pptx
Vertical turbine pump explains installed in power plants
Power point presentation on introduction of software engineering
Takt Time vs Cycle Time vs Lead Time.pptx
Optimizing Plant Maintenance — Key Elements of a Successful Maintenance Plan ...
Structural Conservation Appraisal of Indian Monuments Preserving India’s Arch...
63490613-Boiler-Tube-Leakage-analysis-symptoms-causes.ppt
How to Implement Kaizen in Your Organization for Continuous Improvement Success
ISO 14224 Compliance & CMMS Software — A Comprehensive Guide for Reliable Mai...
Track & Monitor Preventive Maintenance — Best Practices with MaintWiz CMMS
How to Use Mobile CMMS to Improve Maintenance Operations & Field Productivity
IPEC Presentation - Partial discharge Pro .pdf
ACI 318-2205_American Concrete Institute.pdf
The Importance of Maintenance Budgets — Maximize Reliability & Control Costs ...
Software Engineering Unit-1 presentation for students
Presentation-on-Energy-Transition-in-Bangladesh-Employment-and-Skills.pdf

html css js bootstrap framework thisis i


[8]ページ先頭

©2009-2025 Movatter.jp