SlideShare ist ein Scribd-Unternehmen logo
1 von 89
Downloaden Sie, um offline zu lesen
22-3375 Web Design I // Columbia College Chicago
HTML Foundations, pt 1
Directories
Room 902
<a href=” ”>
Room 902Room 901 Room 903
9th Floor
9th Floor/Room 902/
Room 902Room 901 Room 903
9th Floor
../Room 902/
Two dots in front of a forward slash means:
“step up one directory.” In this example it says:
“step out of room 903 and then back into room 902, talk to “
Room 902Room 901 Room 903
9th Floor8th Floor 10th Floor ++
Wabash
Campus
Mich Ave
Campus
Book & Paper
Center
++
Columbia
College
University
of IL
SAAIC ++
/Columbia College/Wabash Campus/9th Floor/Room 902/
http://Columbia College/Wabash Campus/9th Floor/Room 902/
Relative link to root
A relative link (does not start with “http://”) with a slash at the
beginning forces the link to start at the root of the website. This
will only work on the server, not when you are working locally.
Absolute links
Absolute links are typically used for linking to pages or files
outside of your site’s directories.
The index file
When an absolute link is directed to a folder, the browser
needs to know which file to open. By default, it looks for a file
named “index” (the extension is not important, usually is it
index.html, or index.php). This is why the homepage is always
named “index”.
So, <a href=”http://www.mysite.com/”> and
<a href=”http://www.mysite.com/index.html”> will open the
same file.
root directory (www.mysite.com)
index.html
images
logo.png
Tutorial: Relative Linking
Create a webpage with all three of these images placed:
FTP
File Transfer Protocol
Local
(your computer)
Host
(www)
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.
Wordpress
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.
index.php database
Dynamic CMS
WALKTHROUGH: Set up a theme in Wordpress
WALKTHROUGH: Create a post in Wordpress
HTML
Hyper Text
+
Markup Language
Hyper Text
Markup Language
A markup language is a
set of markup tags.
The purpose of the tags
are to describe page content.
Markup Language
Without any markup to give your content structure, the
browser renders unformatted and unstyled text, also
known as “plain text”.
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).
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.
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.
Rich Text to Plain Text
In TextEdit, go to ‘Format’ to ‘Make Plain Text.’
Rich Text to Plain Text
Copy and paste the plain text into your HTML and start
typing in tags to recreate the document structure.
HTML Elements
Anatomy of an Element
An HTML element includes both
the HTML tag and everything between
the tag (the content).
<tag>Content</tag>
Anatomy of an Element
The element tag gives the
content structure and meaning.
<tag>Content</tag>
Anatomy of an Element
Tags normally come in pairs. The
first tag is the start tag, and the second
tag is the end tag.
<tag>Content</tag>
Anatomy of an Element
HTML has a defined set of tag
names (also called keywords) that
the browser understands.
<h1>Main Headline</h1>
Anatomy of an Element
Most elements can have attributes,
which provides additional informatin
about the element.
<html lang=”en”></html>
Anatomy of an Element
Attributes always follow the same
format: name=”value”. You can use
either single or double quotes.
<div class=”left-nav”></div>
Where did those text styles come from?
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.
Tags: Basic Structure
doctype
html
head
body
<!DOCTYPE html>
EXCEPTION
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.
<html></html>
The <html> element defines
the whole HTML document.
<html lang=”en”></html>
The <html> element should have a “lang”
attribute to tell the browser what language
your page is written in.
<head></head>
The <head> contains special elements
that instruct the browser where to find
stylesheets & javascript files, as well as
provide meta data about your site.
<body></body>
The <body> element contains
the document content (what is shown
inside the browser window).
Tutorial: Set up a basic html template
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.
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>
Tags: Head Tags
title
base
meta
link
script
style
<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.
<title>My Portfolio</title>
EXAMPLE
<meta>
The <meta> tag provides metadata
about the HTML document. Metadata
will not be displayed on the page, but
will be machine readable.
<meta charset="utf-8">
The <meta> is a single tag —
it does not require a closing tag.
EXAMPLE
Tags: Paragraphs
<p></p>
The <p> element is a block-level tag
that contains default space-before and
space-after properties (making indention
unnecessary.)
EXAMPLE
Tags: Headings
<h1></h1>
through
<h6></h6>
The header elements are block-level
tags that give you the ability to assign
semantic weight (importance) to your
headlines.
EXAMPLE
Tags: Lists
<ul>
<ol>
<dl>
List tags are always used in nested pairs.
The wrapping tags define the list type,
and indicate where the list series begins
and ends.
NOTE
<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.
EXAMPLE
<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).
EXAMPLE
Tags: Formatting
(partial list)
big
q
blockquote
cite
i (or) em
small
b (or) strong
sub
sup
del
EXAMPLES
EXAMPLES
Tags: Special Elements
<br>
The <br> element is a single, inline
tag that works anywhere in the body
to create a single line break. In a <p>
element, it is the equivalent of a
soft return.
EXAMPLE
A horizontal rule is created by
using the single tag <hr>. It is a block
level element (so it will clear the elements
above and below.
<hr>
Escape & Special Characters
In HTML, some characters are reserved for the code, like brackets
(< >), ampersands (&), and quotes (“ and ‘). Other characters, like
em & en dashes, em spaces, curly quotes, copyright symbols,
fractions, etc, are not included in the “standard” character sets. In
both cases, you work around this by using special codes that will
translate into those characters in the browser. Below are the ones
you will probably use the most:
& &amp;
“ &ldquo;
” &ldquo;
‘ &amp;
’ &amp;
– &ndash;
— &mdash;
© &copy;
← &larr;
→ &rarr;
Tags: Images
<img>
The <img> element is a single, inline
tag that works anywhere in the body
to insert a jpg, png, svg or gif file.
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.
NOTE
<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.
EXAMPLE
Tags: Anchors (linking)
<a></a>
The <a> element is an inline
tag that works anywhere in the
body to create a hyperlink.
EXAMPLE
<a href="aboutme.html">About Me</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://”.
<a href="http://www.colum.edu">My school</a>
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
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
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
 
HTML
HTMLHTML
HTML
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Xhtml
XhtmlXhtml
Xhtml
 
HTML5 - My First Webpage
HTML5 - My First Webpage HTML5 - My First Webpage
HTML5 - My First Webpage
 
Introduction to XHTML
Introduction to XHTMLIntroduction to XHTML
Introduction to XHTML
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
HTML Tags
HTML Tags HTML Tags
HTML Tags
 
Session4
Session4Session4
Session4
 
HTML email design and usability
HTML email design and usabilityHTML email design and usability
HTML email design and usability
 
Html vs xhtml
Html vs xhtmlHtml vs xhtml
Html vs xhtml
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
Web designing (1) - Html Basic Codding
Web designing (1) - Html Basic CoddingWeb designing (1) - Html Basic Codding
Web designing (1) - Html Basic Codding
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
 
Html beginners tutorial
Html beginners tutorialHtml beginners tutorial
Html beginners tutorial
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
Html basics
Html basicsHtml basics
Html basics
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
 

Ähnlich wie HTML Foundations, part 1

Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.docbutest
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2Shawn Calvert
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
Web Design Basics
Web Design BasicsWeb Design Basics
Web Design BasicsCindy Royal
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags Nisa Soomro
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centrejatin batra
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptxStefan Oprea
 

Ähnlich wie HTML Foundations, part 1 (20)

Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html and html5 cheat sheets
Html and html5 cheat sheetsHtml and html5 cheat sheets
Html and html5 cheat sheets
 
HTML
HTMLHTML
HTML
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
HTML Foundations, pt 2
HTML Foundations, pt 2HTML Foundations, pt 2
HTML Foundations, pt 2
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Web Design Basics
Web Design BasicsWeb Design Basics
Web Design Basics
 
Html basic
Html basicHtml basic
Html basic
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 

Mehr von Shawn Calvert

Basics of Web Navigation
Basics of Web NavigationBasics of Web Navigation
Basics of Web NavigationShawn Calvert
 
User Centered Design
User Centered DesignUser Centered Design
User Centered DesignShawn Calvert
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignShawn Calvert
 
Web Design I Syllabus 22 3375-03
Web Design I Syllabus 22 3375-03Web Design I Syllabus 22 3375-03
Web Design I Syllabus 22 3375-03Shawn Calvert
 
Intro to Javascript and jQuery
Intro to Javascript and jQueryIntro to Javascript and jQuery
Intro to Javascript and jQueryShawn Calvert
 
HTML Foundations, pt 3: Forms
HTML Foundations, pt 3: FormsHTML Foundations, pt 3: Forms
HTML Foundations, pt 3: FormsShawn Calvert
 
10 Usability & UX Guidelines
10 Usability & UX Guidelines10 Usability & UX Guidelines
10 Usability & UX GuidelinesShawn Calvert
 
Usability and User Experience
Usability and User ExperienceUsability and User Experience
Usability and User ExperienceShawn Calvert
 
Creating Images for the Web
Creating Images for the WebCreating Images for the Web
Creating Images for the WebShawn Calvert
 
CSS Foundations, pt 2
CSS Foundations, pt 2CSS Foundations, pt 2
CSS Foundations, pt 2Shawn Calvert
 
22-3530, Photo Communications Syllabus
22-3530, Photo Communications Syllabus22-3530, Photo Communications Syllabus
22-3530, Photo Communications SyllabusShawn Calvert
 
An Overview of Stock Photography
An Overview of Stock PhotographyAn Overview of Stock Photography
An Overview of Stock PhotographyShawn Calvert
 

Mehr von Shawn Calvert (20)

Basics of Web Navigation
Basics of Web NavigationBasics of Web Navigation
Basics of Web Navigation
 
User Centered Design
User Centered DesignUser Centered Design
User Centered Design
 
Intro to jQuery
Intro to jQueryIntro to jQuery
Intro to jQuery
 
Images on the Web
Images on the WebImages on the Web
Images on the Web
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
Web Layout
Web LayoutWeb Layout
Web Layout
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Web Design I Syllabus 22 3375-03
Web Design I Syllabus 22 3375-03Web Design I Syllabus 22 3375-03
Web Design I Syllabus 22 3375-03
 
Intro to Javascript and jQuery
Intro to Javascript and jQueryIntro to Javascript and jQuery
Intro to Javascript and jQuery
 
HTML Foundations, pt 3: Forms
HTML Foundations, pt 3: FormsHTML Foundations, pt 3: Forms
HTML Foundations, pt 3: Forms
 
10 Usability & UX Guidelines
10 Usability & UX Guidelines10 Usability & UX Guidelines
10 Usability & UX Guidelines
 
Usability and User Experience
Usability and User ExperienceUsability and User Experience
Usability and User Experience
 
Creating Images for the Web
Creating Images for the WebCreating Images for the Web
Creating Images for the Web
 
Web Design Process
Web Design ProcessWeb Design Process
Web Design Process
 
CSS Foundations, pt 2
CSS Foundations, pt 2CSS Foundations, pt 2
CSS Foundations, pt 2
 
22-3530, Photo Communications Syllabus
22-3530, Photo Communications Syllabus22-3530, Photo Communications Syllabus
22-3530, Photo Communications Syllabus
 
An Overview of Stock Photography
An Overview of Stock PhotographyAn Overview of Stock Photography
An Overview of Stock Photography
 
Color Photography
Color PhotographyColor Photography
Color Photography
 
PSA posters
PSA postersPSA posters
PSA posters
 
Composition & Light
Composition & LightComposition & Light
Composition & Light
 

Kürzlich hochgeladen

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Kürzlich hochgeladen (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

HTML Foundations, part 1

  • 1. 22-3375 Web Design I // Columbia College Chicago HTML Foundations, pt 1
  • 3.
  • 5. Room 902Room 901 Room 903 9th Floor 9th Floor/Room 902/
  • 6. Room 902Room 901 Room 903 9th Floor ../Room 902/ Two dots in front of a forward slash means: “step up one directory.” In this example it says: “step out of room 903 and then back into room 902, talk to “
  • 7. Room 902Room 901 Room 903 9th Floor8th Floor 10th Floor ++ Wabash Campus Mich Ave Campus Book & Paper Center ++ Columbia College University of IL SAAIC ++
  • 8. /Columbia College/Wabash Campus/9th Floor/Room 902/ http://Columbia College/Wabash Campus/9th Floor/Room 902/ Relative link to root A relative link (does not start with “http://”) with a slash at the beginning forces the link to start at the root of the website. This will only work on the server, not when you are working locally. Absolute links Absolute links are typically used for linking to pages or files outside of your site’s directories.
  • 9. The index file When an absolute link is directed to a folder, the browser needs to know which file to open. By default, it looks for a file named “index” (the extension is not important, usually is it index.html, or index.php). This is why the homepage is always named “index”. So, <a href=”http://www.mysite.com/”> and <a href=”http://www.mysite.com/index.html”> will open the same file. root directory (www.mysite.com) index.html images logo.png
  • 10. Tutorial: Relative Linking Create a webpage with all three of these images placed:
  • 11. FTP
  • 12. File Transfer Protocol Local (your computer) Host (www)
  • 13. 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.
  • 14.
  • 15.
  • 17. 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.
  • 19.
  • 20. WALKTHROUGH: Set up a theme in Wordpress
  • 21. WALKTHROUGH: Create a post in Wordpress
  • 22. HTML
  • 25. Markup Language A markup language is a set of markup tags. The purpose of the tags are to describe page content.
  • 26. Markup Language Without any markup to give your content structure, the browser renders unformatted and unstyled text, also known as “plain text”.
  • 27. 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).
  • 28. 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.
  • 30. 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.
  • 31. Rich Text to Plain Text In TextEdit, go to ‘Format’ to ‘Make Plain Text.’
  • 32. Rich Text to Plain Text Copy and paste the plain text into your HTML and start typing in tags to recreate the document structure.
  • 34. Anatomy of an Element An HTML element includes both the HTML tag and everything between the tag (the content). <tag>Content</tag>
  • 35. Anatomy of an Element The element tag gives the content structure and meaning. <tag>Content</tag>
  • 36. Anatomy of an Element Tags normally come in pairs. The first tag is the start tag, and the second tag is the end tag. <tag>Content</tag>
  • 37. Anatomy of an Element HTML has a defined set of tag names (also called keywords) that the browser understands. <h1>Main Headline</h1>
  • 38. Anatomy of an Element Most elements can have attributes, which provides additional informatin about the element. <html lang=”en”></html>
  • 39. Anatomy of an Element Attributes always follow the same format: name=”value”. You can use either single or double quotes. <div class=”left-nav”></div>
  • 40. Where did those text styles come from?
  • 41. 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.
  • 44. <!DOCTYPE html> EXCEPTION 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.
  • 45. <html></html> The <html> element defines the whole HTML document.
  • 46. <html lang=”en”></html> The <html> element should have a “lang” attribute to tell the browser what language your page is written in.
  • 47. <head></head> The <head> contains special elements that instruct the browser where to find stylesheets & javascript files, as well as provide meta data about your site.
  • 48. <body></body> The <body> element contains the document content (what is shown inside the browser window).
  • 49. Tutorial: Set up a basic html template
  • 50. 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.
  • 51. 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>
  • 54. <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.
  • 56. <meta> The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine readable.
  • 57. <meta charset="utf-8"> The <meta> is a single tag — it does not require a closing tag. EXAMPLE
  • 59. <p></p> The <p> element is a block-level tag that contains default space-before and space-after properties (making indention unnecessary.)
  • 62. <h1></h1> through <h6></h6> The header elements are block-level tags that give you the ability to assign semantic weight (importance) to your headlines.
  • 66. List tags are always used in nested pairs. The wrapping tags define the list type, and indicate where the list series begins and ends. NOTE
  • 67. <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.
  • 69. <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).
  • 72. (partial list) big q blockquote cite i (or) em small b (or) strong sub sup del
  • 76. <br> The <br> element is a single, inline tag that works anywhere in the body to create a single line break. In a <p> element, it is the equivalent of a soft return.
  • 78. A horizontal rule is created by using the single tag <hr>. It is a block level element (so it will clear the elements above and below. <hr>
  • 79. Escape & Special Characters In HTML, some characters are reserved for the code, like brackets (< >), ampersands (&), and quotes (“ and ‘). Other characters, like em & en dashes, em spaces, curly quotes, copyright symbols, fractions, etc, are not included in the “standard” character sets. In both cases, you work around this by using special codes that will translate into those characters in the browser. Below are the ones you will probably use the most: & &amp; “ &ldquo; ” &ldquo; ‘ &amp; ’ &amp; – &ndash; — &mdash; © &copy; ← &larr; → &rarr;
  • 81. <img> The <img> element is a single, inline tag that works anywhere in the body to insert a jpg, png, svg or gif file.
  • 82. 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. NOTE
  • 83. <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. EXAMPLE
  • 85. <a></a> The <a> element is an inline tag that works anywhere in the body to create a hyperlink.
  • 86. EXAMPLE <a href="aboutme.html">About Me</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://”. <a href="http://www.colum.edu">My school</a>
  • 87. 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
  • 88. 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
  • 89. 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