SlideShare une entreprise Scribd logo
1  sur  18
HTML AND NAVIGATION WORKSHOP
Lee Scott
lee.scott12@bathspa.ac.uk
Workshop Brief
Find at:
http://graphics2013.artbathspa.com/htmlworkshop/brief.pdf
HTML AND NAVIGATION WORKSHOP
Week 1
Building blocks of the web: servers, clients, browsers
HTML: setting up a webpage, creating headers, text, and divs
CSS: styling text and positioning elements
Week 2
Navigation: using hyperlinks
HTML: working with Image, video, and audio elements
Troubleshooting: using browsers based web inspectors
Week 3
Interactivity: HTML5 methods and an introduction to JavaScript
Advanced text: adding font files, opacity, motion
Week 4
Present ideas to group. Feedback
Begin creating your website
Week 5
Continue working on your website
INDEPENDENT LEARNING
Web based resources
w3 schools http://www.w2schools.com
Html5rocks http://www.html5rocks.com
Dive into HTML http://diveintohtml5.info
Forums
Coding Forums http://www.codingforums.com
Github https://github.com
HTML tutorials online
YouTube search HTML tutorials in YouTube
Tizag http://www.tizag.com/htmlT
ASSIGNMENT
Build a small website
The website must take the form of an interactive story
Jack and the Beanstalk
Three Little Pigs
Mr Fox
The Cat and Mouse
Use as much or as little of the text as you like
Demonstrate an interactive approach to the text using hyperlinks
and user input events (mouse, keyboard etc)
Include a 300 word description of your approach to navigation
and the structure of your site.
Include a list of hyperlinks to a selection of web resources
(examples of work or theory) that have informed your approach.
Annotate.
WEB SERVERS, CLIENTS AND BROWSERS
Web serverClient
Browser renders HTML
WEBSITE ANATOMY
HTML
HyperTextMarkup Language
Defines webpage structure
Contains content (text, images, sounds)
HTML building blocks are called elements
CSS
Cascading StyleSheet
Used to style HTML elements (e.g. text colour, font, size)
HTML file links to a CSS file
JavaScript
Facilitates user interactivity
Alter content after it has been displayed
Libraries: jQuery
Other Languages
PHP (server side)
MYSQL
BEGINNING TO WORK WITH HTML
HTML editor
Coda, Dreamweaver, TextEdit, BlueFish, CoffeeCup, Aracnophilia
We are using TextWrangler
Web server
We need access to some web space
Our websites will be ‘hosted’ on a Bath Spa server
FTP
File Transfer Protocol
A way to transfer files from one ‘host’ (computer) to another
Allows us to ‘upload’ content to our web server
BEGINNING TO WORK WITH HTML
FTP login details
Server: ftp.artbathspa.com
Username: graphics2013
Password: weareyear2
HTML ELEMENTS AND TAGS
ELEMENTS
Individual component of a webpage
e.g. image, video, text paragraphs, sound, headers, tables
TAGS
HTML markup that represents or describes an elements
<img>, <video>, <p>, <audio>, <h1>, <table>
Tags must be opened and closed
<p> Hello World </p>
<img+ attributes…. ></img>
WEBPAGE ESSENTIALS
A series of tags to set up a web page
Save as a template!
<!DOCTYPE html>
<html>
These two tags tell the browser that the file is a HTML document
<head>
Contains a collection of metadata for the document. Metadata is
data about data.
This includes page titles, and links to CSS and JavaScript documents
<meta charset=“UTF-8”>
Character set that should be used to render the web page
<title>
Gives the webpage a title. Title shown in browser toolbar and in
web searches
<body>
Content of the webpage itself
BODY TAGS<header>
Headings
<nav>
Navigational sections. Links to pages on the website
<section>
Thematically grouped content
<article>
An article e.g. blog post or comment section
<aside>
Content placed aside. Should be thematically related to
surrounding content (section/article)
<footer>
Usually placed at the end of a document e.g. contact
information
<div>
A general container for content
<p>
Paragraph. Almost always used for text
A VERY stereotypical webpage
CSS (Cascading StyleSheets)
Link to HTML file
Styling Text
<link rel="stylesheet" type="text/css" href=”style.css">
p {
font-family: “Times New Roman”, “Arial”;
font-size:20px;
font-weight: lighter; (or normal or bold or bolder)
font-style:italic; (or normal or oblique)
color:rgba(0,0,0,255);
}
h1 {
font-family: “Times New Roman”, “Arial”;
font-size:40px;
font-weight: bold;
font-style:normal;
color:rgba(0,0,0,255);
}
CSS (Cascading StyleSheets)
Styling Structural Elements
Div, section, article, aside, nav
body {
background-color:rgba(255,0,0,0);
}
Contain CSS instructions in braces
End each instruction with a semicolon
‘color’ american spelling
rgba: red (0-255), green (0-255), blue (0-255), alpha (0-1)
#my_div {
border-style:solid;
border-width:5px;
}
‘#’ refer to a specific div described in HTML document
Border styles: dotted, solid, double, dashed
POSITIONING
Size
body {
height:1200px;
Width:800px;
} Position
#my_div {
position:absolute;
top:200px;
left: 200px;
}
options: absolute, fixed, relative, static
Just use ‘absolute’ for now.Text-align
#my_div {
text-align: left;
}
options: left, right, center
POSITIONING
Margins
margin-top:50px;
margin-bottom:40px;
margin-right:30px;
margin-left:20px
margin:50px 40px 30px 20px
Padding
padding-top:10px;
padding-bottom:10px;
padding-right:50px;
padding-left:50px
padding:10px 10px 50px 50px
POSITIONING
CSS Class
HTML
<p class=“small_font”> Text </p>
CSS
.small_font {
font-family: “Verdana”, “Arial”;
font-size:10px;
font-weight:400;
color:rgba(255,255,0,1);
}
Note: the dot indicates a class
POSITIONING
Centre <body>
body {
width: 1200px;
height: 600px;
position: fixed;
top: 50%;
left: 50%;
margin-top: -300px;
margin-left: -600px;
border-style:solid;
border-width:1px;
}
Top and Left are set at 50%.
The top left point of <body> will be placed at the midpoint of the
browser
CLONING EXERCISE
Try to create a website that looks like the image found at:
http://graphics2013.artbathspa.com/htmlworkshop/examples/mermaid.png
A copy of these slides can be found at:
http://www.slideshare.net/graphics2013/html-workshop-1-26845485
You will have to use most if not all of the techniques you have learnt so far
GOOD LUCK!

Contenu connexe

Tendances

WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themes
vegasgeek
 
Drupal is not your Website
Drupal is not your Website Drupal is not your Website
Drupal is not your Website
Phase2
 

Tendances (20)

WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themes
 
Custom Menu Support for WordPress Themes
Custom Menu Support for WordPress ThemesCustom Menu Support for WordPress Themes
Custom Menu Support for WordPress Themes
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
How to create a WordPress Site
How to create a WordPress Site How to create a WordPress Site
How to create a WordPress Site
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPress
 
Drupal is not your Website
Drupal is not your Website Drupal is not your Website
Drupal is not your Website
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress Theme
 
Beginning WordPress
Beginning WordPressBeginning WordPress
Beginning WordPress
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Becoming a Respected WordPress Developer
Becoming a Respected WordPress DeveloperBecoming a Respected WordPress Developer
Becoming a Respected WordPress Developer
 
Getting Everything You want Out of SharePoint
Getting Everything You want Out of SharePointGetting Everything You want Out of SharePoint
Getting Everything You want Out of SharePoint
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
WordPress Theme Development Basics
WordPress Theme Development BasicsWordPress Theme Development Basics
WordPress Theme Development Basics
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
How to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseHow to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public Release
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
 
CSS Eye for the Programmer Guy
CSS Eye for the Programmer GuyCSS Eye for the Programmer Guy
CSS Eye for the Programmer Guy
 
WordPress 101
WordPress 101WordPress 101
WordPress 101
 
WordPress for Beginner
WordPress for BeginnerWordPress for Beginner
WordPress for Beginner
 

En vedette

бернулли
бернуллибернулли
бернулли
ritulya
 
хээлтэгч мал сэдэв2
хээлтэгч мал сэдэв2хээлтэгч мал сэдэв2
хээлтэгч мал сэдэв2
otgooPhh
 
зхлекц6
зхлекц6зхлекц6
зхлекц6
otgooPhh
 
лекц 1 энто
лекц 1 энтолекц 1 энто
лекц 1 энто
otgooPhh
 
Guia de exel
Guia de exelGuia de exel
Guia de exel
zykro31
 
Technology in the classroom
Technology in the classroomTechnology in the classroom
Technology in the classroom
tbrown83
 
01.nakit çek hareketleri
01.nakit çek hareketleri01.nakit çek hareketleri
01.nakit çek hareketleri
Umut Karademir
 
презентация Microsoft office power point
презентация Microsoft office power pointпрезентация Microsoft office power point
презентация Microsoft office power point
ZhukovaMaria
 

En vedette (20)

УПРИЗМ - просто о сложном
УПРИЗМ - просто о сложномУПРИЗМ - просто о сложном
УПРИЗМ - просто о сложном
 
бернулли
бернуллибернулли
бернулли
 
Science and technology of multifunctional oxide and ultrananocrystalline diam...
Science and technology of multifunctional oxide and ultrananocrystalline diam...Science and technology of multifunctional oxide and ultrananocrystalline diam...
Science and technology of multifunctional oxide and ultrananocrystalline diam...
 
лекц6
лекц6лекц6
лекц6
 
Instagram_Segmentation
Instagram_SegmentationInstagram_Segmentation
Instagram_Segmentation
 
хээлтэгч мал сэдэв2
хээлтэгч мал сэдэв2хээлтэгч мал сэдэв2
хээлтэгч мал сэдэв2
 
зхлекц6
зхлекц6зхлекц6
зхлекц6
 
лекц 1 энто
лекц 1 энтолекц 1 энто
лекц 1 энто
 
Guia de exel
Guia de exelGuia de exel
Guia de exel
 
Üslü Sayılar
Üslü SayılarÜslü Sayılar
Üslü Sayılar
 
Technology in the classroom
Technology in the classroomTechnology in the classroom
Technology in the classroom
 
Electrical power from heat: All-scale hierarchical thermoelectrics with and w...
Electrical power from heat: All-scale hierarchical thermoelectrics with and w...Electrical power from heat: All-scale hierarchical thermoelectrics with and w...
Electrical power from heat: All-scale hierarchical thermoelectrics with and w...
 
Mapas mentales
Mapas mentalesMapas mentales
Mapas mentales
 
01.nakit çek hareketleri
01.nakit çek hareketleri01.nakit çek hareketleri
01.nakit çek hareketleri
 
Expired Food delivery service
Expired Food delivery serviceExpired Food delivery service
Expired Food delivery service
 
AUR 2013 Опыт внедрения технологии пространственного проектирования
AUR 2013 Опыт внедрения технологии пространственного проектирования AUR 2013 Опыт внедрения технологии пространственного проектирования
AUR 2013 Опыт внедрения технологии пространственного проектирования
 
презентация Microsoft office power point
презентация Microsoft office power pointпрезентация Microsoft office power point
презентация Microsoft office power point
 
A Unique View
A Unique ViewA Unique View
A Unique View
 
Opportunities at the Alexander von Humboldt Foundation (AvH).
Opportunities at the Alexander von Humboldt Foundation (AvH).Opportunities at the Alexander von Humboldt Foundation (AvH).
Opportunities at the Alexander von Humboldt Foundation (AvH).
 
Donusumgeometrisi8mat sunusu
Donusumgeometrisi8mat sunusuDonusumgeometrisi8mat sunusu
Donusumgeometrisi8mat sunusu
 

Similaire à Html workshop 1

GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
JagadishBabuParri
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
Thinkful
 

Similaire à Html workshop 1 (20)

GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websites
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
Fundamentals of web_design_v2
Fundamentals of web_design_v2Fundamentals of web_design_v2
Fundamentals of web_design_v2
 
Html5
Html5Html5
Html5
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 
The web context
The web contextThe web context
The web context
 
Css
CssCss
Css
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Html workshop 1

  • 1. HTML AND NAVIGATION WORKSHOP Lee Scott lee.scott12@bathspa.ac.uk Workshop Brief Find at: http://graphics2013.artbathspa.com/htmlworkshop/brief.pdf
  • 2. HTML AND NAVIGATION WORKSHOP Week 1 Building blocks of the web: servers, clients, browsers HTML: setting up a webpage, creating headers, text, and divs CSS: styling text and positioning elements Week 2 Navigation: using hyperlinks HTML: working with Image, video, and audio elements Troubleshooting: using browsers based web inspectors Week 3 Interactivity: HTML5 methods and an introduction to JavaScript Advanced text: adding font files, opacity, motion Week 4 Present ideas to group. Feedback Begin creating your website Week 5 Continue working on your website
  • 3. INDEPENDENT LEARNING Web based resources w3 schools http://www.w2schools.com Html5rocks http://www.html5rocks.com Dive into HTML http://diveintohtml5.info Forums Coding Forums http://www.codingforums.com Github https://github.com HTML tutorials online YouTube search HTML tutorials in YouTube Tizag http://www.tizag.com/htmlT
  • 4. ASSIGNMENT Build a small website The website must take the form of an interactive story Jack and the Beanstalk Three Little Pigs Mr Fox The Cat and Mouse Use as much or as little of the text as you like Demonstrate an interactive approach to the text using hyperlinks and user input events (mouse, keyboard etc) Include a 300 word description of your approach to navigation and the structure of your site. Include a list of hyperlinks to a selection of web resources (examples of work or theory) that have informed your approach. Annotate.
  • 5. WEB SERVERS, CLIENTS AND BROWSERS Web serverClient Browser renders HTML
  • 6. WEBSITE ANATOMY HTML HyperTextMarkup Language Defines webpage structure Contains content (text, images, sounds) HTML building blocks are called elements CSS Cascading StyleSheet Used to style HTML elements (e.g. text colour, font, size) HTML file links to a CSS file JavaScript Facilitates user interactivity Alter content after it has been displayed Libraries: jQuery Other Languages PHP (server side) MYSQL
  • 7. BEGINNING TO WORK WITH HTML HTML editor Coda, Dreamweaver, TextEdit, BlueFish, CoffeeCup, Aracnophilia We are using TextWrangler Web server We need access to some web space Our websites will be ‘hosted’ on a Bath Spa server FTP File Transfer Protocol A way to transfer files from one ‘host’ (computer) to another Allows us to ‘upload’ content to our web server
  • 8. BEGINNING TO WORK WITH HTML FTP login details Server: ftp.artbathspa.com Username: graphics2013 Password: weareyear2
  • 9. HTML ELEMENTS AND TAGS ELEMENTS Individual component of a webpage e.g. image, video, text paragraphs, sound, headers, tables TAGS HTML markup that represents or describes an elements <img>, <video>, <p>, <audio>, <h1>, <table> Tags must be opened and closed <p> Hello World </p> <img+ attributes…. ></img>
  • 10. WEBPAGE ESSENTIALS A series of tags to set up a web page Save as a template! <!DOCTYPE html> <html> These two tags tell the browser that the file is a HTML document <head> Contains a collection of metadata for the document. Metadata is data about data. This includes page titles, and links to CSS and JavaScript documents <meta charset=“UTF-8”> Character set that should be used to render the web page <title> Gives the webpage a title. Title shown in browser toolbar and in web searches <body> Content of the webpage itself
  • 11. BODY TAGS<header> Headings <nav> Navigational sections. Links to pages on the website <section> Thematically grouped content <article> An article e.g. blog post or comment section <aside> Content placed aside. Should be thematically related to surrounding content (section/article) <footer> Usually placed at the end of a document e.g. contact information <div> A general container for content <p> Paragraph. Almost always used for text A VERY stereotypical webpage
  • 12. CSS (Cascading StyleSheets) Link to HTML file Styling Text <link rel="stylesheet" type="text/css" href=”style.css"> p { font-family: “Times New Roman”, “Arial”; font-size:20px; font-weight: lighter; (or normal or bold or bolder) font-style:italic; (or normal or oblique) color:rgba(0,0,0,255); } h1 { font-family: “Times New Roman”, “Arial”; font-size:40px; font-weight: bold; font-style:normal; color:rgba(0,0,0,255); }
  • 13. CSS (Cascading StyleSheets) Styling Structural Elements Div, section, article, aside, nav body { background-color:rgba(255,0,0,0); } Contain CSS instructions in braces End each instruction with a semicolon ‘color’ american spelling rgba: red (0-255), green (0-255), blue (0-255), alpha (0-1) #my_div { border-style:solid; border-width:5px; } ‘#’ refer to a specific div described in HTML document Border styles: dotted, solid, double, dashed
  • 14. POSITIONING Size body { height:1200px; Width:800px; } Position #my_div { position:absolute; top:200px; left: 200px; } options: absolute, fixed, relative, static Just use ‘absolute’ for now.Text-align #my_div { text-align: left; } options: left, right, center
  • 15. POSITIONING Margins margin-top:50px; margin-bottom:40px; margin-right:30px; margin-left:20px margin:50px 40px 30px 20px Padding padding-top:10px; padding-bottom:10px; padding-right:50px; padding-left:50px padding:10px 10px 50px 50px
  • 16. POSITIONING CSS Class HTML <p class=“small_font”> Text </p> CSS .small_font { font-family: “Verdana”, “Arial”; font-size:10px; font-weight:400; color:rgba(255,255,0,1); } Note: the dot indicates a class
  • 17. POSITIONING Centre <body> body { width: 1200px; height: 600px; position: fixed; top: 50%; left: 50%; margin-top: -300px; margin-left: -600px; border-style:solid; border-width:1px; } Top and Left are set at 50%. The top left point of <body> will be placed at the midpoint of the browser
  • 18. CLONING EXERCISE Try to create a website that looks like the image found at: http://graphics2013.artbathspa.com/htmlworkshop/examples/mermaid.png A copy of these slides can be found at: http://www.slideshare.net/graphics2013/html-workshop-1-26845485 You will have to use most if not all of the techniques you have learnt so far GOOD LUCK!

Notes de l'éditeur

  1. Can use sound but be aware that the module is about interactive text, so its important to demonstrate an interactive approach to text.
  2. Javascript: So we could write some javascript that changes the colour of some text when it is clicked on Libraries: Prewritten javascript that simplifies the scripting process. Instead of writing long passages of javascript to say, spin some text, you can find a library that reduces this down to about one line. A very good one is jQuery. We will be using that when we look at interactivity using javascript. Jquery: javascript library that simplifies the scripting process. A good introduction to javascript. We will be using this.Other: we won’t be using them but its useful to know there are lots of other toolsPHP server side scripting language – communicating with servers (looking up data in a database)MYSQL – database management