Movatterモバイル変換


[0]ホーム

URL:


Shawn  Calvert, profile picture
Uploaded byShawn Calvert
83,593 views

Html / CSS Presentation

The document is a detailed guide on front-end and back-end coding, focusing on HTML, CSS, and JavaScript within the context of web design. It outlines the structure, style, and behavior of web pages, including the roles of static and dynamic content, as well as CSS rules and selectors. Key topics include document hierarchy, attributes, specificity in styling, and the application of styles through classes and IDs.

Embed presentation

Downloaded 5,165 times
Lunch & Learn: CSSOct 23 & 30 2013 // bswift
What we will talk about:Front-end vs Back-end coding at bswiftDefining HTML, CSS and JavascriptHow the client stylesheets workExamplesTools
Let’s get started!
Static Pages / Dynamic Pages
SERVERpage.htmlpage.htmlpage.htmlA static website is a group of self-contained,individual pages (or page), sent to the browser fromthe server one-page-at-a-time.
.netSERVERpage.htmlSQL databasesHTMLDyamic web content is built when it is requested,by the user directly, or programmatically whilea user is on a page (e.g., facebook updates).Most websites contain both static and dynamic elements.
front-endSERVERREQUESTHTMLCSSJavascriptthanks!Can I havea webpage,please?.netSQL databasesback-end “recipe”SERVERRESPONSE
Server-side / Client-sideakaBack End / Front-end
.net.aspSQLpage.htmlSERVERBROWSERstyle.cssetcscript.jsClient-side (front-end) coding includes HTML, CSSand Javascript. This just means that our code will bedownloaded from the server and then compiledentirely in the browser.
HTML, CSS, Javascript
Three layers of web design:Structure, Style, Behavior
BEHAVIORJavascriptPRESENTATIONCSSImagerySTRUCTUREHTML markupSite planningThree layers of web design
Three layers of web design
Three layers of web design
Three layers of web design
Three layers of web design
HTML
Hyper Text+Markup Language
Hyper Text
Markup LanguageA markup language is aset of markup tags.The purpose of the tags is togroup and describe page content.
Markup LanguageWithout any markup to give your content structure, thebrowser renders unformatted and unstyled text, alsoknown 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 header content).
Markup LanguageOnce your content is marked up, the browser applies built-indefault styles to the tags. While you can override these styleswith css, your marked up, non-css styled document should bereadable and have a clear hierarchy.
doctypehtmlheadbody
EXCEPTION<!DOCTYPE html>The doctype is not actually a tag,but a declaration, telling the browserwhat kind of html you are using. Thedoctype above declares HTML 5.
<html></html>The <html> element definesthe whole HTML document.
<head></head>The <head> element contains specialelements that instruct the browserwhere to find stylesheets, provide metainfo, and more.
<body></body>The <body> element containsthe document content (what is showninside 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, you shouldindicate nesting by indenting the nested tags with 2 spaces(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 described interms of relationships. All elements in the document have aparent (up to ‘document’, which is at the top), and may havechildren (nested inside) or siblings (placed alongside).<parent x><child and sibling y> </child and sibling y><child and sibling z> </child and sibling z></parent x>
The ‘address’ of an elementThe document hierarchy provides us with an ‘address’ for eachelement.in the div with class “client-text-container”, make all of the h2elements orange and 24px.
HTML Elements
Anatomy of an Element<tag>Content</tag>An HTML element includes boththe HTML tag and everything betweenthe tag (the content).
Anatomy of an Element<tag>Content</tag>Tags normally come in pairs. Thefirst tag is the start tag, and the secondtag is the end tag.
Anatomy of an Element<h1>Main Headline</h1>HTML has a defined set of tagnames (also called keywords) thatthe browser understands.
The essential element tagsPrimaryStructurehtmlStructuralElements(block)FormattingElements(inline)headpembodybrh1 – h6ulolaimg(div)istrongHeadElementstitlemetalinkbqblockquote(span)
Anatomy of an Element<html lang=”en”></html>Most elements can have attributes,which provides additional informationabout the element.
Anatomy of an Element<div class=”left-nav”></div>Attributes always follow the sameformat: name=”value”. You can useeither single or double quotes.
The essential attributeslink<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
The StylesheetA stylesheet is a set of rules defininghow an html element will be “presented”in the browser.These rules are targeted to specificelements in the html document.
The CascadeThe “cascade” part of CSS is a set of rulesfor resolving conflicts with multiple CSSrules applied to the same elements.For example, if there are two rules definingthe color or your h1 elements, the rule thatcomes last in the cascade order will“trump” the other.
low importanceBrowser stylesheethigh importanceLinked (external) stylesheetEmbedded (internal) stylesheetInline (internal) Styles
InheritanceMost elements will inherit many style propertiesfrom their parent elements by default.HTMLrelationship<body><div><ul><li></li></ul></div></body>parent of siteparent of ul and li, child of bodyparent of li, child of div and bodychild of ul, div, and body
Inheritancebodymake the paragraph 16px, Verdana, redpmake the paragraph blue16px, Verdana, blue
SpecificityShortly after styling your first html elements,you will find yourself wanting more control overwhere your styles are applied.This is where specificity comes in.Specificity refers to how specific your selector isin naming an element.
Specificitybodymake the paragraph 16px, Verdana, redpmake the paragraph bluep.pinkmake the paragraph pink16px, Verdana, pink
HTML<div id=”plan-2323”><p>Here is some text.</p><p>Hide this text.</p><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 the language
Three terms for describing your styles:CSS ruleCSS selectorCSS declaration
CSS Ruleselector {property: value;}declarationEvery style is defined by a selector anda declaration. The declaration contains at leastone property/value pair.Together they arecalled a CSS Rule.
CSS Selectorbody {font-family: Arial, Helvetica}p {color: #666666}h1 {font-size: 24px}a {color: blue}The selector associates css rules withHTML elements.
CSS Selectorp {color: red}The selector is typed in front of the declaration,with a space separating it and the openingcurly-bracket (aka curly-brace).Typically, extra spaces and returns are added asshown for the sake of readability.
CSS Selectorh1,h2,h3,h4 {font-weight: bold}You can apply styles to multiple selectors in thesame rule by separating the selectors withcommas.
CSS Declarationp {property: value}The declaration is always defined in a property/value pair. The two are separated by a colon.How you define the properties will affect howHTML elements are displayed.
CSS Declarationp {font-family: Arial, sans-serif;font-size: 14px;color: #666666;}You can apply multiple declarations to aselector(s) by separating the delcarations withsemi-colons.
CSS Selectors
pType (element)#ID.Class
Type (element) Selectorsbody {declaration}p {declaration}h1 {declaration}ul {declaration}The simplest selector is the type selector, whichtargets an html element by name.
The essential selector types (elements)PrimaryStructurehtmlBodyElementspFormattingElementsembodybrih1 – h6ulolaimgdivstrongbqblockquotespan
ID SelectorsCSS#logo {declaration}HTML<img id=”logo” src=”” alt=””>An ID is an html attribute that is added to yourhtml markup. You reference that ID in your csswith a hash.
Class SelectorsCSS.ingredients {declaration}HTML<ul class=”ingredients”>A class is an html attribute that is added to yourhtml markup. You reference that ID in your csswith a period.
IDs vs ClassesThe most important difference between IDsand classes is that there can be only one IDon a page, but multiple classes.An ID is more specific than a class.An element can have both an ID andmultiple classes.
IDs vs ClassesID: #344-34-4344Class: MaleClass: EmployeeID: #123-54-9877Class: FemaleClass: Employee
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, thestyle is targeted to an element with the class“author” inside the id “sidebar”.
Multiple classesCSS.ingredients.time {declaration}HTML<div class=”ingredients time”><h1></h1></div>Elements can have multiple classes, giving youmore control. The are written in the CSS in theexact order they appear in the html, with nospaces.
bswift Client Stylesheets
Common uses:Hiding elementsTweaking specific text stylesBranding
Some things you can change with CSScolorstypetype sizebackgroundsspacingsizesborderspositions (layout)Some things you can’t change with CSScontentmarkup
Example:Client text + Client CSS
Example:Login Branding
Example:Login Examples
END NOTESYou are not expected to writeyour own html & cssIf you do, please run it by the UX teamApply big changes only to ‘safe’ pagesMake sure we aren’t just fixing symptomsDon’t make changes that damageusability / readability / legibility
Tools
Html / CSS Presentation
Html / CSS Presentation

Recommended

PPTX
html-css
PDF
Intro to HTML and CSS basics
PPT
Css Ppt
PPTX
An Overview of HTML, CSS & Java Script
PPTX
Css ppt
PDF
Introduction to HTML and CSS
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
Cascading Style Sheets (CSS) help
PDF
HTML CSS Basics
PPTX
Html, CSS & Web Designing
PPTX
Css selectors
PPT
Web Development using HTML & CSS
PPTX
Basic Html Knowledge for students
PPT
CSS Basics
PPT
PPT
cascading style sheet ppt
PPTX
HTML, CSS and Java Scripts Basics
PPTX
HTML-(workshop)7557.pptx
PPTX
Complete Lecture on Css presentation
PDF
Bootstrap
PPTX
Css position
PPTX
Html
PPTX
Html ppt
PPTX
Html and css
PDF
Intro to HTML & CSS
ODP
Introduction of Html/css/js
PPT
Introduction to CSS
PPT
CSS ppt

More Related Content

PPTX
html-css
PDF
Intro to HTML and CSS basics
PPT
Css Ppt
PPTX
An Overview of HTML, CSS & Java Script
PPTX
Css ppt
PDF
Introduction to HTML and CSS
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
Cascading Style Sheets (CSS) help
html-css
Intro to HTML and CSS basics
Css Ppt
An Overview of HTML, CSS & Java Script
Css ppt
Introduction to HTML and CSS
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS) help

What's hot

PDF
HTML CSS Basics
PPTX
Html, CSS & Web Designing
PPTX
Css selectors
PPT
Web Development using HTML & CSS
PPTX
Basic Html Knowledge for students
PPT
CSS Basics
PPT
PPT
cascading style sheet ppt
PPTX
HTML, CSS and Java Scripts Basics
PPTX
HTML-(workshop)7557.pptx
PPTX
Complete Lecture on Css presentation
PDF
Bootstrap
PPTX
Css position
PPTX
Html
PPTX
Html ppt
PPTX
Html and css
PDF
Intro to HTML & CSS
ODP
Introduction of Html/css/js
HTML CSS Basics
Html, CSS & Web Designing
Css selectors
Web Development using HTML & CSS
Basic Html Knowledge for students
CSS Basics
cascading style sheet ppt
HTML, CSS and Java Scripts Basics
HTML-(workshop)7557.pptx
Complete Lecture on Css presentation
Bootstrap
Css position
Html
Html ppt
Html and css
Intro to HTML & CSS
Introduction of Html/css/js

Viewers also liked

PPT
Introduction to CSS
PPT
CSS ppt
KEY
HTML presentation for beginners
PDF
Basic css-tutorial
PPT
Html Ppt
PPT
CSS for Beginners
PPTX
Cookie and session
PDF
3. tutorial html web desain
PDF
HTTP & HTML & Web
ODP
[Old] Curso de programação web dia 01
PDF
HTML Web Platform
PPT
Introduction au Génie Logiciel
PDF
WebSide - eBrouchure & Presentation
PDF
Introduction to WEB HTML, CSS
PDF
The Future of the Web: HTML5
PPT
How Cascading Style Sheets (CSS) Works
PPT
Introduction to html
PPTX
Cookies!
PPT
Ppt of web development
Introduction to CSS
CSS ppt
HTML presentation for beginners
Basic css-tutorial
Html Ppt
CSS for Beginners
Cookie and session
3. tutorial html web desain
HTTP & HTML & Web
[Old] Curso de programação web dia 01
HTML Web Platform
Introduction au Génie Logiciel
WebSide - eBrouchure & Presentation
Introduction to WEB HTML, CSS
The Future of the Web: HTML5
How Cascading Style Sheets (CSS) Works
Introduction to html
Cookies!
Ppt of web development

Similar to Html / CSS Presentation

PPTX
html css js bootstrap framework thisis i
PPTX
Workshop 2 Slides.pptx
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
PDF
Web Design & Development - Session 2
PPTX
Html-Prabakaran
PDF
Web Concepts - an introduction - introduction
PPTX
Web Development - Lecture 5
PPTX
Ifi7174 lesson2
 
PPTX
Java script and html
PPTX
Java script and html new
PDF
CSS Foundations, pt 1
PPT
HTML & CSS.ppt
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPT
Unit 2-CSS & Bootstrap.ppt
PPTX
PDF
HTML2.pdf
PPTX
Web Information Systems Html and css
html css js bootstrap framework thisis i
Workshop 2 Slides.pptx
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Web Design & Development - Session 2
Html-Prabakaran
Web Concepts - an introduction - introduction
Web Development - Lecture 5
Ifi7174 lesson2
 
Java script and html
Java script and html new
CSS Foundations, pt 1
HTML & CSS.ppt
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Unit 2-CSS & Bootstrap.ppt
HTML2.pdf
Web Information Systems Html and css

More from Shawn Calvert

PDF
HTML Email
PDF
Basics of Web Navigation
PDF
User Centered Design
PDF
Intro to jQuery
PDF
Images on the Web
PDF
Introduction to Responsive Web Design
PDF
Web Layout
PDF
Web Typography
PDF
Class Intro / HTML Basics
PDF
Week 2-intro-html
PDF
Web Design I Syllabus 22 3375-03
PDF
Intro to Javascript and jQuery
PDF
HTML Foundations, pt 3: Forms
PDF
10 Usability & UX Guidelines
PDF
Usability and User Experience
PDF
Creating Images for the Web
PDF
Web Design Process
PDF
CSS Foundations, pt 2
PDF
HTML Foundations, pt 2
PDF
HTML Foundations, part 1
HTML Email
Basics of Web Navigation
User Centered Design
Intro to jQuery
Images on the Web
Introduction to Responsive Web Design
Web Layout
Web Typography
Class Intro / HTML Basics
Week 2-intro-html
Web Design I Syllabus 22 3375-03
Intro to Javascript and jQuery
HTML Foundations, pt 3: Forms
10 Usability & UX Guidelines
Usability and User Experience
Creating Images for the Web
Web Design Process
CSS Foundations, pt 2
HTML Foundations, pt 2
HTML Foundations, part 1

Recently uploaded

PDF
Security Technologys: Access Control, Firewall, VPN
PPTX
Cybercrime in the Digital Age: Risks, Impact & Protection
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PDF
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
PDF
ElyriaSoftware — Powering the Future with Blockchain Innovation
PDF
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PPTX
cybercrime in Information security .pptx
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PPTX
Chapter 3 Introduction to number system.pptx
PDF
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PDF
Digit Expo 2025 - EICC Edinburgh 27th November
PDF
December Patch Tuesday
 
PDF
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
Security Technologys: Access Control, Firewall, VPN
Cybercrime in the Digital Age: Risks, Impact & Protection
Session 1 - Solving Semi-Structured Documents with Document Understanding
Dev Dives: AI that builds with you - UiPath Autopilot for effortless RPA & AP...
ElyriaSoftware — Powering the Future with Blockchain Innovation
Day 2 - Network Security ~ 2nd Sight Lab ~ Cloud Security Class ~ 2020
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
Energy Storage Landscape Clean Energy Ministerial
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
wob-report.pptxwob-report.pptxwob-report.pptx
Cybersecurity Best Practices - Step by Step guidelines
cybercrime in Information security .pptx
Vibe Coding vs. Spec-Driven Development [Free Meetup]
Chapter 3 Introduction to number system.pptx
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
Digit Expo 2025 - EICC Edinburgh 27th November
December Patch Tuesday
 
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili

Html / CSS Presentation


[8]ページ先頭

©2009-2025 Movatter.jp