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

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

More Related Content

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

What's hot

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

Viewers also liked

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

Similar to (Fast) Introduction to HTML & CSS

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

Recently uploaded

PPTX
Software Analysis &Design ethiopia chap-2.pptx
PDF
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PDF
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
PDF
GPUS and How to Program Them by Manya Bansal
PPTX
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
PPTX
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
PDF
The year in review - MarvelClient in 2025
DOCX
Introduction to the World of Computers (Hardware & Software)
PDF
December Patch Tuesday
 
PDF
Unser Jahresrückblick – MarvelClient in 2025
PDF
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
PPTX
Chapter 3 Introduction to number system.pptx
PPT
software-security-intro in information security.ppt
PDF
Six Shifts For 2026 (And The Next Six Years)
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
PPTX
cybercrime in Information security .pptx
PPTX
Cybersecurity Best Practices - Step by Step guidelines
PPTX
AI's Impact on Cybersecurity - Challenges and Opportunities
Software Analysis &Design ethiopia chap-2.pptx
Day 1 - Cloud Security Strategy and Planning ~ 2nd Sight Lab ~ Cloud Security...
Session 1 - Solving Semi-Structured Documents with Document Understanding
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
GPUS and How to Program Them by Manya Bansal
Conversational Agents – Building Intelligent Assistants [Virtual Hands-on Wor...
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
The year in review - MarvelClient in 2025
Introduction to the World of Computers (Hardware & Software)
December Patch Tuesday
 
Unser Jahresrückblick – MarvelClient in 2025
Our Digital Tribe_ Cultivating Connection and Growth in Our Slack Community 🌿...
Chapter 3 Introduction to number system.pptx
software-security-intro in information security.ppt
Six Shifts For 2026 (And The Next Six Years)
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
cybercrime in Information security .pptx
Cybersecurity Best Practices - Step by Step guidelines
AI's Impact on Cybersecurity - Challenges and Opportunities

(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