4. Why you should want
to succeed in this class:
âGraphic Designâ is not media-specific
Build on your existing skills
Difficulty of learning these skills outside of a
structured environment
More jobs, better pay
It really is fun and empowering to code!
5. How you will succeed this class:
Take it week-by-week
Be an active learner: donât just copy and paste, ask
lots of questions, make sure you understand the
underlying concepts, and be open to changing your
assumptions about web design and coding
If you miss classes, be serious about contacting me
(or classmates) and catching up on your work
Allow yourself time to get frustrated
and start over on your assignments
9. !
The web is just one service of the internet.
!
It is system of interlinked hypertext documents
accessed via the Internet. With a web browser,
one can view web pages that may contain text,
images, videos, and other multimedia, and
navigate between them via hyperlinks.
12. User types a URL (Uniform Resource Locator)âš
into a browser, e.g., www.amazon.com
!
The URL is sent to a DNS (Domain Name Service), âš
which translates the URL into an IP address, e.g., âš
18.12.23.1
!
The correct server is found through the IP âš
address, which is sent an HTTP request (get), andâš
returns the requested html pages, images, etc, âš
back to the browser
!
15. You do not need any special software to create html,
css or javascript files, just a plain text editor. I
recommend using bbedit in class. Check out the
resources page on the class site for other options.
The file extension defines the type of language of
the file (file.html, file.css, file.js).
Your html/css/js files do not need to be on a server
to be opened in a browser.
!
16.
17. Rich Text to Plain Text
Just as with InDesign, when you receive text from
someone that has already been formatted (e.g. from
Word), you should always paste that text into TextEdit, and
convert to plain text. âš
18. Rich Text to Plain Text
In TextEdit, go to âFormatâ to âMake Plain Text.ââš
19. Rich Text to Plain Text
Copy and paste the plain text into your HTML and start
typing in tags to recreate the document structure. âš
24. Markup Languageâš
A markup language is a âš
set of markup tags.
The purpose of the tags âš
are to describe page content.âš
25. Markup Language
Without any markup to give your content structure, the
browser renders unformatted and unstyled text, also
known as âplain textâ.âš
26. Markup Language
HTML tags give structure and meaning to your content.
âSemantic markupâ refers to the use of meaningful tags to
describe content (e.g. using header tags for header content). âš
27. Markup Language
Once your content is marked up, the browser applies built-in
default styles to the tags. While you can override these styles
with css, your marked up, non-css styled document should be
readable and have a clear hierarchy. âš
29. Anatomy of an Element âš
<tag>Content</tag>
An HTML element includes bothâš
the HTML tag and everything between âš
the tag (the content).âš
30. Anatomy of an Element âš
<tag>Content</tag>âš
The element tag gives the âš
content structure and meaning.âš
31. Anatomy of an Element âš
<tag>Content</tag>âš
Tags normally come in pairs. The
first tag is the start tag, and the secondâš
tag is the end tag. âš
32. Anatomy of an Element âš
<h1>Main Headline</h1>âš
HTML has a defined set of tag âš
names (also called keywords) that âš
the browser understands.âš
33. Anatomy of an Element âš
<html lang=âenâ></html>âš
Most elements can have attributes,âš
which provides additional informatinâš
about the element. âš
34. Anatomy of an Element âš
<div class=âleft-navâ></div>âš
Attributes always follow the sameâš
format: name=âvalueâ. You can use âš
either single or double quotes. âš
37. EXCEPTIONâš
<!DOCTYPE html>âš
The doctype is not actually a tag, âš
but a declaration, telling the browserâš
what kind of html you are using. The âš
doctype above declares HTML 5.âš
42. Nesting
The use of our first three tags (html, head and body),
introduces and important concept: Nesting, which is when
tags âwrapâ other tags. When you create markup, you should
indicate nesting by indenting the nested tags with 2 spaces
(preferred) or a tab.
âš
43. Document Hierarchy: Parents, children and siblings
Just as in a genealogy tree, the family hierarchy is described in
terms of relationships. All elements in the document have a
parent (up to âdocumentâ, which is at the top), and may have
children (nested inside) or siblings (placed alongside). âš
<parent x>
<child and sibling y> </child and sibling y>
<child and sibling z> </child and sibling z>
</parent x> âš
47. <title></title>âš
âš
The title element:âš
âą defines a title in the browser toolbar, âš
âą provides a title for the page when it is âš
added to favorites
âą displays a title for the page in searchâš
engine results.
51. <link>âš
The <link> tag defines the âš
relationship between a document âš
and an external resource. It is a âš
single tag.
52. EXAMPLEâš
<link rel="stylesheet" type="text/css" href="stylesheet.css">âš
In the example above, the <link> tagâš
has three attributes: rel (relationship), âš
type, and href (hypertext reference).âš
59. <img>âš
The <img> element is a single, inline âš
tag that works anywhere in the body âš
to insert a jpg, png, svg or gif file.
60. NOTEâš
The <img> tag is empty;âš
it requires a src (source) attribute to âš
âpull inâ the image into the page. It does
not require an âaltâ tag, but if the image
is essential to the content (e.g. not a
background or decorative element), it
should have one.
61. EXAMPLEâš
<img src="images/logo.gif" alt=âAcme Corpâ>âš
All <img> tags should also contain anâš
alt attribute. This is âalternateâ textâš
that will appear if for some reason the image
link is broken or the file is unavailable.
63. <p></p>âš
The <p> element is a block-level tag âš
that contains default space-before and
space-after properties (making indentionâš
unnecessary.)
67. NOTEâš
List tags are always used in nested pairs.
!
The wrapping tags define the list type,
and indicate where the list series begins
and ends.
68. <ul>
<li></li>
</ul>âš
The <ul> (unordered list) element is a âš
block-level tag that wraps a series of <li>âš
(list item) elements. The default propertyâš
for the list items is a bullet.
70. <ol>
<li></li>
</ol>âš
The <ol> (ordered list) element is a âš
block-level tag that wraps a series of <li>âš
(list item) elements. The default propertyâš
for the list items is decimal (1, 2, 3).
73. <a></a>âš
The <a> element is an inline âš
tag that works anywhere in the âš
body to create a hyperlink.
74. EXAMPLEâš
<a href="aboutme.html">About Me</a>âš
<a href="http://www.colum.edu">My school</a>âš
<a> tags are always used in pairs,
wrapping the content you want to activate
as a link. If you use an absolute URL, it
must start with âhttp://â.
75. Relative vs Absolute links
Whenever you link to a file with an âhrefâ (hypertext reference )
or âsrcâ (source) attribute, you are providing the browser and
address to the resource. That address can be relative or
absolute.âš
root directory (www.mysite.com)
index.html
images
logo.png
report.pdf
stylesheet.css
!
76. Relative vs Absolute links
A relative link is relative to the resourceâs location in its
directory. It is like saying âthe restaurant is 2 blocks away.ââš
In the example below, if âlogo.pngâ were linked from the
homepage (index.html), the tag would be:
<img src=âimages/logo.pngâ>âš
root directory (www.mysite.com)
index.html
images
logo.png
report.pdf
stylesheet.css
77. Relative vs Absolute links
An absolute link is the full address to the resourceâs location in
the entire web. It is like saying âthe restaurant is at 222 West
Grand, Chicago IL 60625.â
<img src=âhttp://www.mysite.com/images/logo.pngâ>âš
root directory (www.mysite.com)
index.html
images
logo.png
report.pdf
stylesheet.css
78.
79. Where did those text styles come from?âš
All browsers have what is called aâš
âclient stylesheetâ that applies formattingâš
to your html elements, such as text size, font,âš
color, margins, line-height, and much more.
Your custom css overrides âš
some of these default styles.âš
80. But it is ugly!âš
Before we begin learning how to add
visual design to our pages, it is crucial
that we understand how to create a
foundation of solid structural design.âš
83. FTP Software
All premium code editors have ftp built in, which allows you to
sync your project files to the server easily.
You will often need to post or download files from the server
manually. For this you can use dedicated ftp software:
âš
Fetch, Transmit and FileZilla & Fireftp (both free) are all good
choices for Mac.âš
88. CMS
âš
âš
A Content Management System (CMS) âš
is a computer program that allows publishing, editing and
modifying content on a web site as well as maintenance from a
central page.âš