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

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

More Related Content

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

What's hot

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

Viewers also liked

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

Similar to Html / CSS Presentation

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

More from Shawn Calvert

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

Recently uploaded

PPTX
Software Analysis &Design ethiopia chap-2.pptx
PDF
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
PDF
Security Technologys: Access Control, Firewall, VPN
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PDF
December Patch Tuesday
 
PDF
Security Forum Sessions from Houston 2025 Event
PDF
The major tech developments for 2026 by Pluralsight, a research and training ...
PDF
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
PPTX
Chapter 3 Introduction to number system.pptx
PDF
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PPTX
cybercrime in Information security .pptx
PPTX
Protecting Data in an AI Driven World - Cybersecurity in 2026
PPTX
Cybercrime in the Digital Age: Risks, Impact & Protection
PPTX
Data Privacy and Protection: Safeguarding Information in a Connected World
Software Analysis &Design ethiopia chap-2.pptx
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
Security Technologys: Access Control, Firewall, VPN
wob-report.pptxwob-report.pptxwob-report.pptx
Vibe Coding vs. Spec-Driven Development [Free Meetup]
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
December Patch Tuesday
 
Security Forum Sessions from Houston 2025 Event
The major tech developments for 2026 by Pluralsight, a research and training ...
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
Chapter 3 Introduction to number system.pptx
Eredità digitale sugli smartphone: cosa resta di noi nei dispositivi mobili
Usage Control for Process Discovery through a Trusted Execution Environment
Energy Storage Landscape Clean Energy Ministerial
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
cybercrime in Information security .pptx
Protecting Data in an AI Driven World - Cybersecurity in 2026
Cybercrime in the Digital Age: Risks, Impact & Protection
Data Privacy and Protection: Safeguarding Information in a Connected World

Html / CSS Presentation


[8]ページ先頭

©2009-2025 Movatter.jp