Movatterモバイル変換


[0]ホーム

URL:


DK
Uploaded byDave Kelly
PPTX, PDF3,763 views

(Fast) Introduction to HTML & CSS

HTML structures web documents and defines the semantics, or meaning, of content. CSS handles presentation and styling. HTML uses tags to define headings, paragraphs, lists, links and other content. CSS allows styling of elements using selectors, properties and values. External CSS files allow separation of concerns and reuse of styles across pages.

Embed presentation

Downloaded 102 times
(Fast) Introduction to HTML & CSSDave Kelly ( @davkell  )for @091Labs
What are HTML & CSS?HTML structures documents on the webTells browser what content is (not what it means)CSS = presentation (how things look)JavaScript adds interaction / behavioursPeanut lifted from http://www.alistapart.com/articles/understandingprogressiveenhancement/Why separate?http://www.ambientage.com/blog/091labs : 1
Standards.... define the mark-up you use tell the browser what to do with itHTML 4.01 (Don’t use)xHTML1.0Frameset  (nope)Transitional  (nope)Strict*HTML5 (New. Not fully supported / implemented. It’s the future.)All those defined standards....do all browsers work the same?
ToolsFirefox (wide support for standards)Firebug (Firefox add-on, Chrome also, but weak). Your best friend with front-end web dev.Web Developer Toolbar (Firefox add-on)ValidatorsHTML: http://validator.w3.orgCSS: http://jigsaw.w3.orgDevelopment environmentNetbeans / Aptana for me.... Your choice (not WYSIWYG!!)(My) Development processFirefox -> Webkit (chrome / safari) -> IE8 -> IE7 -> (IE6?)Browsershots.orghttp://www.ambientage.com/blog/091labs : 2
HTMLMade up of “tags”  (elements)<h1>I’m an important heading</h1> (Heading level 1)  <img src=”images/myprofilepic.jpg” alt=”It’s a picture of me!!” /> (Image tag)Elements can contain plain text, other elements, or bothNo state / no logic (Mark-up content only, not programming)xHTML Strict elements...must be properly nestedmust be closedmust be lower caseattributes must have a value
HTML TagsTags are usually paired (e.g..., <h1> and </h1>) Some elements are “self-closing” e.g. <br /> <img … />Some elements may include attributes, (additional information that is included inside the start tag).Every HTML document contains standard tags. Each document consists of a head and body The head contains the title (and more…), and The body contains the actual text that is made up of paragraphs, lists, images, and other elements
Simple HTML Examplehttp://www.ambientage.com/blog/091labs : 3
Some HTML tag examplesHeadings
 <h1></h1>  , <h2> </h2> ……  <h6> </h6>
Paragraph: <p>Some text </p>
Lists
 Ordered List <ol> <li>I’m a list item</li></ol>
 Unordered list <ul>  <li>I’m a list item</li> </ul>
Document Section <div></div>   (Important for page layouts!)
Image <img src=“../images/mypic.jpg” alt=“My Picture” title=“It’s me!” />
Links <a href=“http://www.google.com”>Google</a>
Table  <table><tr><td>table cell</td></tr>                          <tr><td>second row cell</td></tr>             </table>http://www.ambientage.com/blog/091labs : 4 & 5
Some HTML attribute examplesHTML tags can have attributes => give some more info about the tag
Most can have:<h1 id=“mainHeading” class=“myHeadingClass” title=“Website title” style=“color: #000000;”>My Heading</h1>
HTML FormsForms are used to accept information from the Web page userForms can use text boxes, password boxes, check boxes, radio buttons, text areas, drop-down lists, hidden fields, as well as Submit and Clear buttons.To create a form, the <form></form> element is used.Forms have 2 basic attributes: action & method, e.g., <form name=“myForm” action=“processPage.php” method=“post”>action = “where’s the data going?”method = “how’s it getting there? (post vs get)”
HTML Forms
HTML Forms
CSS (Cascading Style Sheets)Handles presentation of web page

Recommended

PPT
HTML & CSS.ppt
PDF
HTML & CSS Masterclass
PPT
Cascading Style Sheets (CSS) help
PDF
Introduction to HTML and CSS
PPTX
Html
PPTX
Css ppt
PPTX
Cascading style sheet
PPT
cascading style sheet ppt
PDF
Intro to HTML and CSS basics
PPTX
Basic Html Knowledge for students
PDF
Intro to HTML & CSS
PPTX
PPTX
HTML (Web) basics for a beginner
PPT
PPT
Css Ppt
PPTX
HTML-(workshop)7557.pptx
PPT
Hyperlinks in HTML
PPT
Html basics
ODP
CSS Basics
PDF
HTML CSS Basics
PPTX
Cascading style sheets (CSS)
PPTX
Css types internal, external and inline (1)
PPTX
HTML/HTML5
PDF
Html / CSS Presentation
PPTX
Css borders
ODP
Html
PPTX
html-css
PPTX
Introduction to HTML and CSS
PPT
How Cascading Style Sheets (CSS) Works

More Related Content

PPT
HTML & CSS.ppt
PDF
HTML & CSS Masterclass
PPT
Cascading Style Sheets (CSS) help
PDF
Introduction to HTML and CSS
PPTX
Html
PPTX
Css ppt
PPTX
Cascading style sheet
PPT
cascading style sheet ppt
HTML & CSS.ppt
HTML & CSS Masterclass
Cascading Style Sheets (CSS) help
Introduction to HTML and CSS
Html
Css ppt
Cascading style sheet
cascading style sheet ppt

What's hot

PDF
Intro to HTML and CSS basics
PPTX
Basic Html Knowledge for students
PDF
Intro to HTML & CSS
PPTX
PPTX
HTML (Web) basics for a beginner
PPT
PPT
Css Ppt
PPTX
HTML-(workshop)7557.pptx
PPT
Hyperlinks in HTML
PPT
Html basics
ODP
CSS Basics
PDF
HTML CSS Basics
PPTX
Cascading style sheets (CSS)
PPTX
Css types internal, external and inline (1)
PPTX
HTML/HTML5
PDF
Html / CSS Presentation
PPTX
Css borders
ODP
Html
PPTX
html-css
Intro to HTML and CSS basics
Basic Html Knowledge for students
Intro to HTML & CSS
HTML (Web) basics for a beginner
Css Ppt
HTML-(workshop)7557.pptx
Hyperlinks in HTML
Html basics
CSS Basics
HTML CSS Basics
Cascading style sheets (CSS)
Css types internal, external and inline (1)
HTML/HTML5
Html / CSS Presentation
Css borders
Html
html-css

Viewers also liked

PPTX
Introduction to HTML and CSS
PPT
How Cascading Style Sheets (CSS) Works
PDF
Html5 i css3
PDF
HTML with a little CSS
PDF
HTML5 and CSS3 Refresher
PPTX
Presentation about html5 css3
 
PPTX
Introduction to HTML5 & CSS3
PPTX
Front-end development introduction (HTML, CSS). Part 1
PPTX
HTML5 & CSS3
PPT
Introduction to HTML
PPT
Web Development using HTML & CSS
Introduction to HTML and CSS
How Cascading Style Sheets (CSS) Works
Html5 i css3
HTML with a little CSS
HTML5 and CSS3 Refresher
Presentation about html5 css3
 
Introduction to HTML5 & CSS3
Front-end development introduction (HTML, CSS). Part 1
HTML5 & CSS3
Introduction to HTML
Web Development using HTML & CSS

Similar to (Fast) Introduction to HTML & CSS

PPTX
Markup Documents
PPT
Supplement web design
PPS
Web Designing
PPTX
Html, CSS & Web Designing
PPT
Cascading Style Sheets
PPTX
Web1O1 - Intro to HTML/CSS
PPT
HTML & CSS Workshop Notes
PPT
XHTML and CSS
 
PPT
Html xhtml css
 
PDF
Sperimentazioni di Tecnologie e Comunicazioni Multimediali: Lezione 3
PPT
CSS Part I
PPTX
Html n CSS
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
PPTX
PPT
Lecture 4
PPT
Semantically Correct And Standards Compliance Html
PPT
xhtml_css.ppt
ODP
Cascading Style Sheets - Part 01
PPTX
Introduction to HTML+CSS+Javascript.pptx
Markup Documents
Supplement web design
Web Designing
Html, CSS & Web Designing
Cascading Style Sheets
Web1O1 - Intro to HTML/CSS
HTML & CSS Workshop Notes
XHTML and CSS
 
Html xhtml css
 
Sperimentazioni di Tecnologie e Comunicazioni Multimediali: Lezione 3
CSS Part I
Html n CSS
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Lecture 4
Semantically Correct And Standards Compliance Html
xhtml_css.ppt
Cascading Style Sheets - Part 01
Introduction to HTML+CSS+Javascript.pptx

Recently uploaded

PDF
Is It Possible to Have Wi-Fi Without an Internet Provider
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PDF
API-First Architecture in Financial Systems
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
December Patch Tuesday
 
PDF
ElyriaSoftware — Powering the Future with Blockchain Innovation
PDF
DevFest El Jadida 2025 - Product Thinking
PPTX
Chapter 3 Introduction to number system.pptx
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
DOCX
Introduction to the World of Computers (Hardware & Software)
PDF
Six Shifts For 2026 (And The Next Six Years)
DOCX
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
PDF
Unser Jahresrückblick – MarvelClient in 2025
PDF
GPUS and How to Program Them by Manya Bansal
PDF
Security Forum Sessions from Houston 2025 Event
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PDF
The year in review - MarvelClient in 2025
PPT
software-security-intro in information security.ppt
PDF
Digit Expo 2025 - EICC Edinburgh 27th November
Is It Possible to Have Wi-Fi Without an Internet Provider
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
API-First Architecture in Financial Systems
Energy Storage Landscape Clean Energy Ministerial
December Patch Tuesday
 
ElyriaSoftware — Powering the Future with Blockchain Innovation
DevFest El Jadida 2025 - Product Thinking
Chapter 3 Introduction to number system.pptx
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
Introduction to the World of Computers (Hardware & Software)
Six Shifts For 2026 (And The Next Six Years)
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
Unser Jahresrückblick – MarvelClient in 2025
GPUS and How to Program Them by Manya Bansal
Security Forum Sessions from Houston 2025 Event
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
Usage Control for Process Discovery through a Trusted Execution Environment
The year in review - MarvelClient in 2025
software-security-intro in information security.ppt
Digit Expo 2025 - EICC Edinburgh 27th November

(Fast) Introduction to HTML & CSS

  • 1.
    (Fast) Introduction toHTML & CSSDave Kelly ( @davkell )for @091Labs
  • 2.
    What are HTML& CSS?HTML structures documents on the webTells browser what content is (not what it means)CSS = presentation (how things look)JavaScript adds interaction / behavioursPeanut lifted from http://www.alistapart.com/articles/understandingprogressiveenhancement/Why separate?http://www.ambientage.com/blog/091labs : 1
  • 3.
    Standards.... define themark-up you use tell the browser what to do with itHTML 4.01 (Don’t use)xHTML1.0Frameset (nope)Transitional (nope)Strict*HTML5 (New. Not fully supported / implemented. It’s the future.)All those defined standards....do all browsers work the same?
  • 4.
    ToolsFirefox (wide supportfor standards)Firebug (Firefox add-on, Chrome also, but weak). Your best friend with front-end web dev.Web Developer Toolbar (Firefox add-on)ValidatorsHTML: http://validator.w3.orgCSS: http://jigsaw.w3.orgDevelopment environmentNetbeans / Aptana for me.... Your choice (not WYSIWYG!!)(My) Development processFirefox -> Webkit (chrome / safari) -> IE8 -> IE7 -> (IE6?)Browsershots.orghttp://www.ambientage.com/blog/091labs : 2
  • 5.
    HTMLMade up of“tags”  (elements)<h1>I’m an important heading</h1> (Heading level 1)  <img src=”images/myprofilepic.jpg” alt=”It’s a picture of me!!” /> (Image tag)Elements can contain plain text, other elements, or bothNo state / no logic (Mark-up content only, not programming)xHTML Strict elements...must be properly nestedmust be closedmust be lower caseattributes must have a value
  • 6.
    HTML TagsTags areusually paired (e.g..., <h1> and </h1>) Some elements are “self-closing” e.g. <br /> <img … />Some elements may include attributes, (additional information that is included inside the start tag).Every HTML document contains standard tags. Each document consists of a head and body The head contains the title (and more…), and The body contains the actual text that is made up of paragraphs, lists, images, and other elements
  • 7.
  • 8.
    Some HTML tagexamplesHeadings
  • 9.
    <h1></h1>, <h2> </h2> …… <h6> </h6>
  • 10.
  • 11.
  • 12.
    Ordered List<ol> <li>I’m a list item</li></ol>
  • 13.
    Unordered list<ul> <li>I’m a list item</li> </ul>
  • 14.
    Document Section <div></div> (Important for page layouts!)
  • 15.
    Image <img src=“../images/mypic.jpg”alt=“My Picture” title=“It’s me!” />
  • 16.
  • 17.
    Table <table><tr><td>tablecell</td></tr> <tr><td>second row cell</td></tr> </table>http://www.ambientage.com/blog/091labs : 4 & 5
  • 18.
    Some HTML attributeexamplesHTML tags can have attributes => give some more info about the tag
  • 19.
    Most can have:<h1id=“mainHeading” class=“myHeadingClass” title=“Website title” style=“color: #000000;”>My Heading</h1>
  • 20.
    HTML FormsForms areused to accept information from the Web page userForms can use text boxes, password boxes, check boxes, radio buttons, text areas, drop-down lists, hidden fields, as well as Submit and Clear buttons.To create a form, the <form></form> element is used.Forms have 2 basic attributes: action & method, e.g., <form name=“myForm” action=“processPage.php” method=“post”>action = “where’s the data going?”method = “how’s it getting there? (post vs get)”
  • 21.
  • 22.
  • 23.
    CSS (Cascading StyleSheets)Handles presentation of web page
  • 24.
    It allows documentauthors to specify the look of a web page (e.g. fonts, spacing, margins,etc.) separately from the structure of the web page (e.g. body, text, links, etc.)
  • 25.
    There are 3ways document styles can be defined: 1. Inline (No!)2. Internal (ehhhm….no)External (Yes!)Concept of the “Cascade”
  • 26.
    If a duplicatestyle is declared, it “cascades” through various layers, each overriding the previous…The CascadeThe LayersUser agent settings (default browser styles - user is usually able to modify some of these)Any External (Linked) style sheets (.css file)Any Internal styles (in head section inside <style> tags)Inline Styles (in the style attribute of an element)Each level of style overrides the previous level where duplicate properties are definedCreating Style RulesThere are 2 pieces to each rule:
  • 27.
    The Selector ~tells the rule what elements it should apply to
  • 28.
    The Rule ~does the formatting of the element
  • 29.
    Made up ofa property:value pair
  • 30.
    The formatting ofrules:Selector { property1: value1;property2: value2; propertyN: valueN;}http://www.ambientage.com/blog/091labs : 6
  • 31.
    Selectors: Match byElementEasiest selector method is to use an element name, e.g.
  • 32.
    p { color:#000000; }
  • 33.
    Doing this causesall the tags of that name (i.e.<p>) to be formatted according to the style rule declared.
  • 34.
    Possible to dothis for multiple elements
  • 35.
    h1, h2, h5,p { colour: #ff0000;}Selectors: Match by ClassUsed to display elements of the same type in different ways, e.g.
  • 36.
    If the pageyou’re working with has 2 colours in its background, you need to put light text on the dark background, and dark text on the light background
  • 37.
    Classes are definedusing a dot (.) and a given name, e.g.
  • 38.
  • 39.
    To use theclass in the document:
  • 40.
    <p class=“lightText”>This iswhite text</p>Selectors: Match by IdentifierUsed to display a specific element in a different way, e.g.
  • 41.
    If you needan element on a page presented in a particular way, you can use an Identifier (remember an element’s id attribute is unique to a page)
  • 42.
    Identifiers are definedusing a hash (#) and a given name, e.g.
  • 43.
  • 44.
    To use theclass in the document:
  • 45.
    <h1 id=“siteTitle”>My SiteName</h1>Inline Style Rules…only apply to the current element…Overrides other styles if duplicates declared (because of the cascade)Maintenance nightmare
  • 46.
    Internal Style Rules…onlyapply to the current page…still slightly nightmarish to maintain
  • 47.
    External Style Sheets(.css)These allow you to…
  • 48.
    customise & alterthe look of multiple web pages
  • 49.
    ensure continuity ofdesign throughout the website
  • 50.
    To link anexternal style sheet to a HTML page use the <link> tag in the <head> section of the document, e.g.http://www.ambientage.com/blog/091labs : 7
  • 51.
    Link StylesPseudo-classes areidentifiers understood by the browser to apply to a subset of elements, without the element needing to be explicitly tagged with the styleQuestions?Get in touch… dkelly@ambientage.com
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.

[8]ページ先頭

©2009-2025 Movatter.jp