Elm: Your first app. Evan Misshula Evan Misshula Elm: Your first app / 33
|
|
- Ursula Shaw
- 6 years ago
- Views:
Transcription
1 Elm: Your first app Evan Misshula Evan Misshula Elm: Your first app / 33
2 Our learning objectives Rendering a page with declarations Managing state with Model-View-Update Handling user interaction Evan Misshula Elm: Your first app / 33
3 Rendering a page Web browsers translate Hypertext Markup Languages (HTML)into Document Object Model (DOM) The DOM is made of nodes Changing the nodes changes the page Two most common nodes Text Elements Evan Misshula Elm: Your first app / 33
4 Components of Elements and Text Nodes Elements have a tagname "div" "img" may have children text nodes have textcontent and are childless Evan Misshula Elm: Your first app / 33
5 Describing a page To describe a page in Elm We do not use markup Evan Misshula Elm: Your first app / 33
6 Describing a page To describe a page in Elm We do not use markup We call functions to create nodes Evan Misshula Elm: Your first app / 33
7 Describing a page To describe a page in Elm We do not use markup We call functions to create nodes Button in HTML <button class="myclass" id="myid">submit</button> Evan Misshula Elm: Your first app / 33
8 Describing a page To describe a page in Elm We do not use markup We call functions to create nodes Button in HTML <button class="myclass" id="myid">submit</button> Button in Elm node "button" [ class "myclass", id "myid"][ text "Submit"] Evan Misshula Elm: Your first app / 33
9 Virtual DOM We usually call these virtual DOM nodes HTML They come from the HTML module Many intuitive named functions Evan Misshula Elm: Your first app / 33
10 Image function This function of node: node "img" [ src "logo.png"][] Evan Misshula Elm: Your first app / 33
11 Image function This function of node: node "img" [ src "logo.png"][] is equal to: Evan Misshula Elm: Your first app / 33
12 Image function This function of node: node "img" [ src "logo.png"][] is equal to: img [ src "logo.png"][] Evan Misshula Elm: Your first app / 33
13 Good style img is a helper function best to use them to make your code more readable only case of no helper is for the blink operator Evan Misshula Elm: Your first app / 33
14 Let s render a page Evan Misshula Elm: Your first app / 33
15 Let s render a page if you have elm installed 1 cd to your Documents directory 2 mkdir a photoblast directory Evan Misshula Elm: Your first app / 33
16 Let s render a page if you have elm installed 1 cd to your Documents directory 2 mkdir a photoblast directory 1 open Emacs 2 C-x C-f Main.elm Evan Misshula Elm: Your first app / 33
17 Let s render a page add if you have elm installed 1 cd to your Documents directory 2 mkdir a photoblast directory 1 open Emacs 2 C-x C-f Main.elm import Html exposing (div, h1, img, text) import Html.Attributes exposing (..) Evan Misshula Elm: Your first app / 33
18 No elm, No problem Evan Misshula Elm: Your first app / 33
19 No elm, No problem use Evan Misshula Elm: Your first app / 33
20 No elm, No problem use add to the left pane Evan Misshula Elm: Your first app / 33
21 No elm, No problem use add to the left pane import Html exposing (div, h1, img, text) import Html.Attributes exposing (..) Evan Misshula Elm: Your first app / 33
22 No let s add a view view model = div [ class "content"] [h1 [][text "Photo blast"], div [ id "thumbnails" ] [ img [ src " [], img [ src " [], img [ src " [], img [ src " [] ] main = view "no model yet" Evan Misshula Elm: Your first app / 33
23 Add some styles Evan Misshula Elm: Your first app / 33
24 Add some styles 1 Create a file called SecurityBlast.elm Evan Misshula Elm: Your first app / 33
25 Add some styles 1 Create a file called SecurityBlast.elm 1 Make sure to add ~module SecurityBlast exposing (..) Evan Misshula Elm: Your first app / 33
26 Add some styles 1 Create a file called SecurityBlast.elm 1 Make sure to add ~module SecurityBlast exposing (..) 1 Expose all of the elements in Html and Html.Attributes Evan Misshula Elm: Your first app / 33
27 view model = div [ class "content"] [h1 [][text "Photo blast"], div [ id "thumbnails" ] [ img [ src " [], img [ src " [], img [ src " [], img [ src " [] ] ] main = view "no model yet" Evan Misshula Elm: Your first app / 33 New file named SecurityBlast.elm module SecurityBlast exposing (..) import Html exposing (..) import Html.Attributes exposing (..)
28 Exposing SecurityBlast The module command defines a module of our own Files in our project can import this like any other modlule/library import SecurityBlast exposing (main) Evan Misshula Elm: Your first app / 33
29 Exposing SecurityBlast The module command defines a module of our own Files in our project can import this like any other modlule/library import SecurityBlast exposing (main) Because of the exposing (..) we are exposing all of our top-level values Evan Misshula Elm: Your first app / 33
30 Exposing SecurityBlast The module command defines a module of our own Files in our project can import this like any other modlule/library import SecurityBlast exposing (main) Because of the exposing (..) we are exposing all of our top-level values main view Evan Misshula Elm: Your first app / 33
31 Exposing SecurityBlast The module command defines a module of our own Files in our project can import this like any other modlule/library import SecurityBlast exposing (main) Because of the exposing (..) we are exposing all of our top-level values main view only exposed values can be imported Evan Misshula Elm: Your first app / 33
32 Installing package dependencies Evan Misshula Elm: Your first app / 33
33 Installing package dependencies on the command line elm-package install elm-lang/html Evan Misshula Elm: Your first app / 33
34 Installing package dependencies on the command line elm-package install elm-lang/html in Emacs C-c M-k to open the package list m to mark the packate x to install marked packages Evan Misshula Elm: Your first app / 33
35 Compiling the elm file to js Evan Misshula Elm: Your first app / 33
36 Compiling the elm file to js In the shell elm-make SecurityBlast.elm --output elm.js Evan Misshula Elm: Your first app / 33
37 Compiling the elm file to js In the shell elm-make SecurityBlast.elm --output elm.js In Emacs C-c C-n Evan Misshula Elm: Your first app / 33
38 <body> <div id="elm-area"></div> <script src="elm.js"></script> <script> Evan Misshula Elm: Your first app / 33 Make an HTML File <!doctype html> <head> <style> body { background-color: rgb(44,44,44); color: white;} img { border: 1px solid white; margin: 5px; }.large { width: 500px; float: right; }.selected { margin: 0 ; border: 6px solid #60b5cc; }.content { margin: 40px auto; width: 960px; } #thumbnails { width: 400px: float: left; } h1 {font-family: Verdana; color: #60b5cc; } </style> </head>
39 Elm runtime When we compiled we added elm runtime adds even listeners efficiently schedules DOM updates and http requests stores and manages application state Evan Misshula Elm: Your first app / 33
40 Embed When we called Elm.SecurityBlast.embed we told elm runtime to: open the SecurityBlast module make it the Main entrypoint of the application Evan Misshula Elm: Your first app / 33
41 Now we can make it interactive Evan Misshula Elm: Your first app / 33
42 Now we can make it interactive How do we have data flow through and manage it? Evan Misshula Elm: Your first app / 33
43 Now we can make it interactive How do we have data flow through and manage it? Evan Misshula Elm: Your first app / 33
44 How was state stored Developers used to store state in the DOM itself Evan Misshula Elm: Your first app / 33
45 How was state stored Developers used to store state in the DOM itself Was a menu collapsed or expanded? Which value did a user choose? Evan Misshula Elm: Your first app / 33
46 How was state stored Developers used to store state in the DOM itself Was a menu collapsed or expanded? Which value did a user choose? Check the DOM for "expanded" or "collapsed" class Querey the DOM for the choice Evan Misshula Elm: Your first app / 33
47 Not Done today Doesn t scale Slow Error prone Evan Misshula Elm: Your first app / 33
48 Keep State out of the DOM Redux (js) Pedestal (js) re-frame (clojurescript) Evan Misshula Elm: Your first app / 33
49 How? Evan Misshula Elm: Your first app / 33
50 How? Declare a model initialmodel = [ { url = "capish.jpg" }, { url = "dog.jpg" }, { url = "damnhigh.jpg" }, { url = "incorrect.jpg" } ] main = view initialmodel Evan Misshula Elm: Your first app / 33
51 Write a view functions We will render a thumbnail of each of our pictures Evan Misshula Elm: Your first app / 33
52 Write a view functions We will render a thumbnail of each of our pictures Elm does this through a view function Evan Misshula Elm: Your first app / 33
53 Write a view functions We will render a thumbnail of each of our pictures Elm does this through a view function a typical application has a single view function accepts the model as a parameter returns Html Elm runtime takes the Html and renders it Evan Misshula Elm: Your first app / 33
54 Break up the task 1 Write viewthumbnail which renders Html for one thumbnail 2 replace our view function urlprefix = " view model = div [ class "content" ] [ h1 [] [ text "Security Blast"], div [ id "thumbnails" ][] ] viewthumbnail thumbnail = img [ src (urlprefix ++ thumbnail.url) ] [] Evan Misshula Elm: Your first app / 33
55 The view function Evan Misshula Elm: Your first app / 33
56 The view function Use the List.map function to iterate over the collection of thumbnails view model = div [ class "content"] [ h1 [] [ text "Security Blast"], div [ id "thumbnails" ] (List.map viewthumbnail model) ] viewthumbnail thumbnail = img [ src (urlprefix ++ thumbnail.url) ] [] Evan Misshula Elm: Your first app / 33
57 What s the difference? All we have done is change the internal representation so we can connect model and view now we can add interactivity Evan Misshula Elm: Your first app / 33
58 Expand the model Evan Misshula Elm: Your first app / 33
59 Expand the model user clicks on the thumbnail Evan Misshula Elm: Your first app / 33
60 Expand the model user clicks on the thumbnail it becomes selected Evan Misshula Elm: Your first app / 33
61 Expand the model user clicks on the thumbnail it becomes selected 1 bigger version 2 blue border Evan Misshula Elm: Your first app / 33
62 Expand the model user clicks on the thumbnail it becomes selected 1 bigger version 2 blue border initialmodel = { photos = [ { url = "capish.jpg" }, { url = "dog.jpg" }, { url = "damnhigh.jpg" }, { url = "incorrect.jpg" } ], selectedurl = "capish.jpg" } Evan Misshula Elm: Your first app / 33
63 Update viewthumbnail viewthumbnail selectedurl thumbnail = if selectedurl == thumbnail.url then img [ src (urlprefix ++ thumbnail.url), class "selected" ] [] else img [ src (urlprefix ++ thumbnail.url)] [] Evan Misshula Elm: Your first app / 33
64 Refactor code Evan Misshula Elm: Your first app / 33
65 Refactor code We use classlist to make the code more terse Evan Misshula Elm: Your first app / 33
66 Refactor code We use classlist to make the code more terse viewthumbnail selectedurl thumbnail = img [ src (urlprefix ++ thumbnail.url), classlist [ ( "selected", selectedurl == thumbnail.url)] ] [] Evan Misshula Elm: Your first app / 33
67 Pass selectedurl to the view view model = div [ class "content"] [ h1 [] [ text "Security Blast"], div [ id "thumbnails" ] (List.map (\photo -> viewthumbnail model.selectedurl photo) model.photos ), img [ class "large", src (urlprefix ++ "large/" ++ model.selecteedurl) ] [] ] Evan Misshula Elm: Your first app / 33
68 Homework for Wednesday, May 9 Evan Misshula Elm: Your first app / 33
69 Homework for Wednesday, May 9 Make it work Evan Misshula Elm: Your first app / 33
Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student
Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS
More informationIntroduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
More informationLING 408/508: Computational Techniques for Linguists. Lecture 14
LING 408/508: Computational Techniques for Linguists Lecture 14 Administrivia Homework 5 has been graded Last Time: Browsers are powerful Who that John knows does he not like? html + javascript + SVG Client-side
More informationIndex. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148
Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,
More informationPart 3: Images & form styling NOMZAMO S WEBSITE
Part 3: Images & form styling NOMZAMO S WEBSITE 1 OUR MISSION: In this lesson, we ll learn 3 new things 1. How to include the logo image 2.How to add background image 3.How to style the email input form
More informationMinistry of Higher Education and Scientific Research
Morning Study Department of information technology Institute of Technical - Duhok. University of Polytechnic Duhok. Subject: Web Technology Course book for 2nd year. Lecturer s name: MSc. Ayman Nashwan
More informationKillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX
KillTest Q&A Exam : 9A0-803 Title : Certified Dreamweaver 8 Developer Exam Version : DEMO 1 / 7 1. What area, in the Insert bar, is intended for customizing and organizing frequently used objects? A. Layout
More informationrecall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)
HTML & Web Pages recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML) HTML specifies formatting within a page using tags in its
More informationIBM Forms V8.0 Custom Themes IBM Corporation
IBM Forms V8.0 Custom Themes Agenda 2 Overview Class Names How to Use Best Practice Styling Form Items Test Custom CSS Sample Overview 3 To create custom theme you must be familiar with the basic concept
More informationWeb Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh
Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags Recap on HTML and creating our template file Introduction
More informationCSC 121 Computers and Scientific Thinking
CSC 121 Computers and Scientific Thinking Fall 2005 HTML and Web Pages 1 HTML & Web Pages recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language
More informationweek8 Tommy MacWilliam week8 October 31, 2011
tmacwilliam@cs50.net October 31, 2011 Announcements pset5: returned final project pre-proposals due Monday 11/7 http://cs50.net/projects/project.pdf CS50 seminars: http://wiki.cs50.net/seminars Today common
More informationFundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container
ITU 07204: Fundamentals of Web Technologies Lecture 6: CSS Layouts (Intro) Dr. Lupiana, D FCIM, Institute of Finance Management Semester 2 Agenda: CSS Layout (Box Model) 2 CSS Layout: Box Model All HTML
More informationGIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar
GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever
More informationIntroduction to using HTML to design webpages
Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the
More informationCSS: Cascading Style Sheets
CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS
More informationWebsite Development with HTML5, CSS and Bootstrap
Contact Us 978.250.4983 Website Development with HTML5, CSS and Bootstrap Duration: 28 hours Prerequisites: Basic personal computer skills and basic Internet knowledge. Course Description: This hands on
More informationAGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES
CLASS :: 14 04.28 2017 3 Hours AGENDA CREATE A WORKS PAGE [ HTML ] :: Open index.html :: Save As works.html :: Edit works.html to modify header, 3 divisions for works, then add your content :: Edit index.html
More informationExam Review Lectures. Tim Capes. November 29, 2011
Exam Review Lectures Tim Capes November 29, 2011 Exam Breakdown Eight total questions: Exam Breakdown Eight total questions: Number systems questions (10) Exam Breakdown Eight total questions: Number systems
More informationPositioning in CSS: There are 5 different ways we can set our position:
Positioning in CSS: So you know now how to change the color and style of the elements on your webpage but how do we get them exactly where we want them to be placed? There are 5 different ways we can set
More informationMarkup Language. Made up of elements Elements create a document tree
Patrick Behr Markup Language HTML is a markup language HTML markup instructs browsers how to display the content Provides structure and meaning to the content Does not (should not) describe how
More informationFLOATING AND POSITIONING
15 FLOATING AND POSITIONING OVERVIEW Understanding normal flow Floating elements to the left and right Clearing and containing floated elements Text wrap shapes Positioning: Absolute, relative, fixed Normal
More informationChapter 3 Style Sheets: CSS
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE JEFFREY C. JACKSON Chapter 3 Style Sheets: CSS 1 Motivation HTML markup can be used to represent Semantics: h1 means that an element is a top-level heading
More informationHTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web
HTML & CSS SWE 432, Fall 2017 Design and Implementation of Software for the Web HTML: HyperText Markup Language LaToza Language for describing structure of a document Denotes hierarchy of elements What
More informationIBM Bluemix Node-RED Watson Starter
IBM Bluemix Node-RED Watson Starter Cognitive Solutions Application Development IBM Global Business Partners Duration: 45 minutes Updated: Feb 14, 2018 Klaus-Peter Schlotter kps@de.ibm.com Version 1 Overview
More informationCIS 228 (Spring, 2012) Final, 5/17/12
CIS 228 (Spring, 2012) Final, 5/17/12 Name (sign) Name (print) email I would prefer to fail than to receive a grade of or lower for this class. Question 1 2 3 4 5 6 7 8 9 A B C D E TOTAL Score CIS 228,
More informationChapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?
LATIHAN BAB 1 Chapter 1 Self Test 1. What is a web browser? 2. What does HTML stand for? 3. Identify the various parts of the following URL: http://www.mcgrawhill.com/books/ webdesign/favorites.html ://
More informationFundamentals of Website Development
Fundamentals of Website Development CSC 2320, Fall 2015 The Department of Computer Science In this chapter History of HTML HTML 5-2- 1 The birth of HTML HTML Blows and standardization -3- -4-2 HTML 4.0
More informationThird party edm - material specification
In order to ensure a quick and smooth turnaround of EDMs, as well as to ensure correct and accurate delivery of the creative, it is necessary that the clients follow the guidelines below when submitting
More informationA Balanced Introduction to Computer Science, 3/E
A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 2 HTML and Web Pages 1 HTML & Web Pages recall: a Web page is
More informationAGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css
CLASS :: 12 05.04 2018 3 Hours AGENDA CREATE A WORKS PAGE [ HTML ] :: Open index.html :: Save As works.html :: Edit works.html to modify header, 3 divisions for works, then add your content :: Edit index.html
More informationPerfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5
Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives
More informationGetting Started with CSS Sculptor 3
Getting Started with CSS Sculptor 3 With CSS Sculptor, you can quickly create a cross-browser compatible layout with custom widths, margins, padding, background images and more. Additionally, you can use
More informationintroduction to XHTML
introduction to XHTML XHTML stands for Extensible HyperText Markup Language and is based on HTML 4.0, incorporating XML. Due to this fusion the mark up language will remain compatible with existing browsers
More informationHTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.
HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information
More informationHTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية
HTML Mohammed Alhessi M.Sc. Geomatics Engineering Wednesday, February 18, 2015 Eng. Mohammed Alhessi 1 W3Schools Main Reference: http://www.w3schools.com/ 2 What is HTML? HTML is a markup language for
More informationCreate a cool image gallery using CSS visibility and positioning property
GRC 275 A8 Create a cool image gallery using CSS visibility and positioning property 1. Create a cool image gallery, having thumbnails which when moused over display larger images 2. Gallery must provide
More informationCascading Style Sheets CSCI 311
Cascading Style Sheets CSCI 311 Learning Objectives Learn how to use CSS to style the page Learn to separate style from structure Styling with CSS Structure is separated from style in HTML5 CSS (Cascading
More informationAppendix D CSS Properties and Values
HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by
More informationStamp Builder. Documentation. v1.0.0
Stamp Email Builder Documentation http://getemailbuilder.com v1.0.0 THANK YOU FOR PURCHASING OUR EMAIL EDITOR! This documentation covers all main features of the STAMP Self-hosted email editor. If you
More informationScripting for Multimedia LECTURE 5: INTRODUCING CSS3
Scripting for Multimedia LECTURE 5: INTRODUCING CSS3 CSS introduction CSS Level 1 --> CSS Level 2 --> CSS Level 3 (in modules) More than 50 modules are published Cascading style sheets (CSS) defines how
More informationIntroduction to HTML & CSS. Instructor: Beck Johnson Week 2
Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!
More informationCreating a Job Aid using HTML and CSS
Creating a Job Aid using HTML and CSS In this tutorial we will apply what we have learned about HTML and CSS. We will create a web page containing a job aid about how to buy from a vending machine. Optionally,
More informationProgrammazione Web a.a. 2017/2018 HTML5
Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text
More informationWeb Design & Dev. Combo. By Alabian Solutions Ltd , 2016
Web Design & Dev. Combo By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 HTML PART 1 Intro to the web The web Clients Servers Browsers Browser Usage Client/Server
More informationWeb Design and Development ACS Chapter 12. Using Tables 11/23/2017 1
Web Design and Development ACS-1809 Chapter 12 Using Tables 11/23/2017 1 Using Tables Understand the concept and uses of tables in web pages Create a basic table structure Format tables within web pages
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More informationHTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources
HTML + CSS ScottyLabs WDW OVERVIEW What are HTML and CSS? How can I use them? WHAT ARE HTML AND CSS? HTML - HyperText Markup Language Specifies webpage content hierarchy Describes rough layout of content
More informationVISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012
VISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012 CSS 4 TWO COLUMN LAYOUT MORE ON DIVS Last week: Applied margins borders and padding and calculating the size of elements using box model. Wrote CSS shorthand
More informationCSc 337 LECTURE 15: REVIEW
CSc 337 LECTURE 15: REVIEW HTML and CSS Tracing Draw a picture of how the following HTML/CSS code will look when the browser renders it on-screen. Assume that the HTML is wrapped in a valid full page with
More informationCSS. https://developer.mozilla.org/en-us/docs/web/css
CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties
More informationUnit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors
Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!
More informationDownloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -
Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will
More informationG I F T U N I V E R S I T Y
G I F T U N I V E R S I T Y G U J R A N W A L A (Chartered by the Govt. of the Punjab, Recognized by HEC) Department of Computer Science BS Computer Science Web Development/Web Programming Mid Term Examination
More informationFirst Diploma Unit 10 Client Side Web. Week 4 CSS and Images
First Diploma Unit 10 Client Side Web Week 4 CSS and Images Last Session CSS box model Concept of identity - id This Session External style sheets Using CSS in conjunction with images Introduction External
More informationStudy Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo
Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx
More informationIntroduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100
Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!
More informationCS144 Notes: Web Standards
CS144 Notes: Web Standards Basic interaction Example: http://www.youtube.com - Q: what is going on behind the scene? * Q: What entities are involved in this interaction? * Q: What is the role of each entity?
More informationGRAPHIC WEB DESIGNER PROGRAM
NH128 HTML Level 1 24 Total Hours COURSE TITLE: HTML Level 1 COURSE OVERVIEW: This course introduces web designers to the nuts and bolts of HTML (HyperText Markup Language), the programming language used
More information3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />
1. Decide whether each of these forms should be sent via the GET or POST method: A form for accessing your bank account online A form for sending t-shirt artwork to the printer A form for searching archived
More informationThe internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.
Review The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data. It is not the internet! It is a service of the internet.
More information<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***
Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember
More informationUI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
More informationCIS 228 (Fall, 2012) Exam 2, 11/20/12
CIS 228 (Fall, 2012) Exam 2, 11/20/12 Name (sign) Name (print) email Question 1 2 3 4 5 6 7 8 9 10 TOTAL Score CIS 228, exam 2 1 11/20/12 True or false: Question 1 Unordered lists can contain ordered sub-lists.
More informationCSE 154: Web Programming Autumn 2018
CSE 154: Web Programming Autumn 2018 Practice Midterm Exam 2 Note: We strongly recommend printing out practice exams and working through them with only your cheatsheet (provided on the course website)
More informationCreating HTML files using Notepad
Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the
More informationCSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017
CSCB20 Week 7 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 Cascading Style Sheets (CSS) Examples of CSS CSS provides a powerful and stillevolving toolkit of style
More informationLab 1: Introducing HTML5 and CSS3
CS220 Human- Computer Interaction Spring 2015 Lab 1: Introducing HTML5 and CSS3 In this lab we will cover some basic HTML5 and CSS, as well as ways to make your web app look and feel like a native app.
More informationWebsite Design (Weekend) By Alabian Solutions Ltd , 2016
Website Design (Weekend) By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 TECHNOLOGIES DATE TIME Day1 Section 1 HTML Part 1 12am 5pm Intro to the web The web
More informationMake a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1
Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web
More informationPIC 40A. Midterm 1 Review
PIC 40A Midterm 1 Review XHTML and HTML5 Know the structure of an XHTML/HTML5 document (head, body) and what goes in each section. Understand meta tags and be able to give an example of a meta tags. Know
More informationWeb Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1
Web Programming and Design MPT Senior Cycle Tutor: Tamara Week 1 What will we cover? HTML - Website Structure and Layout CSS - Website Style JavaScript - Makes our Website Dynamic and Interactive Plan
More informationDATABASE SYSTEMS. Introduction to web programming. Database Systems Course, 2016
DATABASE SYSTEMS Introduction to web programming Database Systems Course, 2016 AGENDA FOR TODAY Client side programming HTML CSS Javascript Server side programming: PHP Installing a local web-server Basic
More informationLet's see a couple of examples
Javascript Examples Let's see a couple of examples Last 2 sessions we talked about Javascript Today: - Review Javascript basics by going through some examples - In the process we will also learn some new
More informationHTML & CSS. Rupayan Neogy
HTML & CSS Rupayan Neogy But first My Take on Web Development There is always some tool that makes your life easier. Hypertext Markup Language The language your web browser uses to describe the content
More informationAssignments (4) Assessment as per Schedule (2)
Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More informationCOMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS
COMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS Goals Practice working with the CSS box model, positioning and layout Step 1. Create your infrastructure
More informationTo link to an external stylesheet, the link element is placed within the head of the html page:
CSS Basics An external style sheet is simply a text file (use BBEdit or Textwrangler) containing style rules, saved with the.css extension. It s best practice to keep style sheets for a site grouped within
More informationHTML & CSS November 19, 2014
University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Digital Humanities Workshop Series Center for Digital Research in the Humanities 11-19-2014 HTML & CSS November 19, 2014
More information1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014
1/6/2019 12:28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 CATALOG INFORMATION Dept and Nbr: CS 50A Title: WEB DEVELOPMENT 1 Full Title: Web Development 1 Last Reviewed:
More informationHTML and CSS a further introduction
HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few
More informationAdding CSS to your HTML
Adding CSS to your HTML Lecture 3 CGS 3066 Fall 2016 September 27, 2016 Making your document pretty CSS is used to add presentation to the HTML document. We have seen 3 ways of adding CSS. In this lecture,
More informationReasoning with Style
Reasoning with Style Pierre Genevès (CNRS) Joint work with: Martí Bosch (Universitat Politècnica de Catalunya) Nabil Layaïda (Inria) IJCAI, July 30 th 2015, Buenos Aires Style Brief History of World Wide
More informationCOPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with
More informationUniform Resource Locators (URL)
The World Wide Web Web Web site consists of simply of pages of text and images A web pages are render by a web browser Retrieving a webpage online: Client open a web browser on the local machine The web
More informationUX/UI Controller Component
http://www.egovframe.go.kr/wiki/doku.php?id=egovframework:mrte:ux_ui:ux_ui_controller_component_3.5 UX/UI Controller Component Outline egovframework offers the user an experience to enjoy one of the most
More informationLecture B3 Style : Algorithmic Thinking. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007
Lecture B3 Style : Algorithmic Thinking Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Functionalia Instructor Chipp Jansen, chipp@sci.brooklyn.cuny.edu Course Web Page http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/
More informationSanta Tracker. Release Notes Version 1.0
Santa Tracker Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen and on the right sidebar click on Manage in the App Parameters area. Edit any
More informationBlock & Inline Elements
Block & Inline Elements Every tag in HTML can classified as a block or inline element. > Block elements always start on a new line (Paragraph, List items, Blockquotes, Tables) > Inline elements do not
More informationFixed Size Ad Specifications
Fixed Size Ad Specifications The following fixed size ad units are recommended as part of the new ad portfolio. These have been recommended based on Attitudes and Usage Study to determine which of the
More informationIntroduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder
Introduction to HTML SSE 3200 Web-based Services Michigan Technological University Nilufer Onder What is HTML? Acronym for: HyperText Markup Language HyperText refers to text that can initiate jumps to
More informationNEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS
NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS LESSON 1 GETTING STARTED Before We Get Started; Pre requisites; The Notepad++ Text Editor; Download Chrome, Firefox, Opera, & Safari Browsers; The
More informationHTML CS 4640 Programming Languages for Web Applications
HTML CS 4640 Programming Languages for Web Applications 1 Anatomy of (Basic) Website Your content + HTML + CSS = Your website structure presentation A website is a way to present your content to the world,
More informationHTML5: Adding Style. Styling Differences. HTML5: Adding Style Nancy Gill
HTML5: Adding Style In part 2 of a look at HTML5, Nancy will show you how to add CSS to the previously unstyled document from part 1 and why there are some differences you need to watch out for. In this
More informationwelcome to BOILERCAMP HOW TO WEB DEV
welcome to BOILERCAMP HOW TO WEB DEV Introduction / Project Overview The Plan Personal Website/Blog Schedule Introduction / Project Overview HTML / CSS Client-side JavaScript Lunch Node.js / Express.js
More informationWeb Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2
Web Programming and Design MPT Senior Cycle Tutor: Tamara Week 2 Plan for the next 4 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style Introduction to JavaScript
More informationComp 426 Midterm Fall 2013
Comp 426 Midterm Fall 2013 I have not given nor received any unauthorized assistance in the course of completing this examination. Name: PID: This is a closed book exam. This page left intentionally blank.
More information