Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Introduction to HTML and CSS Dennis Schwartz Anita-Borg-Celebration JS Workshop TUM Munich March 2016
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Reminder anita-borg-celebration-munich.biojs.net/materials
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf HTML Hypertext Markup Language
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body> <title> <link>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body> <title> <link> <div> <img>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body> <title> <link> <div> <img> <div> <p> <h1>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body> <title> <link> <div> <img> <div> <p> <h1> … … …
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf <html> <head> <body> <title> <link> <div> <img> <div> <p> <h1> … … …
<html> <head> <body> <title> <link> <div> <img> <div> <p> <h1> … … … @dschwartz_pf Anita-Borg-Celebration 2016 Dennis Schwartz
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Document Object Model (DOM) … … … <h1> <p> <div> <img> <div> <link> <title> <body> <head> <html>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Let’s code!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf CSS Cascading Style Sheets
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf CSS Cascading Style Sheets Making it look pretty!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Demo
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf CSS Files
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf CSS Files body { background-color: #d0e4fe; } h1 { color: orange; text-align: center; } img { margin: auto; width: 50%; border: 3px solid #73AD21; padding: 30px; }
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Selector Types p { Element Selectors color: red; } #answer { Id Selectors color: red; } .red-text { Class Selectors color: red; }
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Element Selectors HTML CSS
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Element Selectors HTML CSS <p>What is the meaning of life and everything?</p> … … <p>The answer is 42!</p>
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Element Selectors HTML CSS <p>What is the meaning of life and everything?</p> … … <p>The answer is 42!</p> What is the meaning of life and everything? The answer is 42!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Element Selectors HTML CSS p { <p>What is the meaning of life and color: red; everything?</p> } … … <p>The answer is 42!</p> What is the meaning of life and everything? The answer is 42!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Element Selectors HTML CSS p { <p>What is the meaning of life and color: red; everything?</p> } … … <p>The answer is 42!</p> What is the meaning of life and everything? The answer is 42!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Id Selectors HTML CSS
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Id Selectors HTML CSS <p>What is the meaning of life and everything?</p> … … <p id=“answer”>The answer is 42!</p> What is the meaning of life and everything? The answer is 42!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Id Selectors HTML CSS #answer { <p>What is the meaning of life and color: red; everything?</p> } … … <p id=“answer”>The answer is 42!</p> What is the meaning of life and everything? The answer is 42!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Id Selectors HTML CSS #answer { <p>What is the meaning of life and color: red; everything?</p> } … … <p id=“answer”>The answer is 42!</p> <h4>Says who?</h4> What is the meaning of life and everything? The answer is 42! Says who?
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Class Selectors HTML CSS
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Class Selectors HTML CSS <p>What is the meaning of life and everything?</p> … … <p class=“red-text”>The answer is 42!</p> <h4 class=“red-text”>Says who?</h4> What is the meaning of life and everything? The answer is 42! Says who?
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Class Selectors HTML CSS .red-text { <p>What is the meaning of life and color: red; everything?</p> } … … <p class=“red-text”>The answer is 42!</p> <h4 class=“red-text”>Says who?</h4> What is the meaning of life and everything? The answer is 42! Says who?
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Let’s code!
Dennis Schwartz Anita-Borg-Celebration 2016 @dschwartz_pf Next up: JavaScript
Recommend
More recommend