This is an beginners introduction to HTML.
You'll learn to basic building blocks of a webpage while making your own resume site
Some "rules"
Dominique Clarke
Tell us about yourself.
HTML is the code that allows us to build websites
If you 'view the source', you see this
How your computer accesses websites
All the files for your site should be stored within the same folder.
This includes:
Note: File names should not include spaces or special characters. File names ARE case sensitive.
By the end of the class, you will have customized a personal website that you can use to start building your web presence.
Your Content
+ HTML: Structure
+ CSS: Presentation
= Your Website
A website is a way to present your content to the world, using HTML and CSS to present that content & make it look good.
Concrete example:
<p>A paragraph is your content</p>
A paragraph is your content
<tagname>Stuff in the middle</tagname>
<p> This is a sample paragraph.</p>
<br/>
<img/>
<div id="copyright">©Zip Code Wilmington 2016</div>
<img src="my_picture.jpg" />
<a href="http://zipcodewilmington.com.com">Zip Code Wilmington</a>
The first thing on an HTML page is the doctype, which tells the browser which version of the markup language the page is using.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
* The doctype is case-insensitive.
DOCtype, doctype, DocType and DoCtYpe are all valid.
After <doctype>, the page content must be contained between <html> tags.
<!DOCTYPE html>
<html>
</html>
Head: The head contains the title of the page & meta information about the page. Meta information is not visible to the user, but has many purposes, like providing information to search engines.
Body: The body contains the actual content of the page. Everything that is contained in the body is visible to the user.
<!DOCTYPE html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
The page content here.
</body>
</html>
All elements "nest" inside one another
Nesting is what happens when you put other containing tags inside other containing tags. For example, you would put the <p> inside of the <body> tags. The <p> is now nested inside the <body>
Whichever element OPENS first CLOSES last
Elements are 'nested' inside the <body> tag.
<body>
<p>A paragraph inside the body tag</p>
</body>
Paragraphs 'nested' inside list items.
<ul>
<li>
<p>A paragraph inside a list item</p>
</li>
</ul>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
<p>Paragraph 1</p> <p>Paragraph 2</p> <p>Paragraph 3</p>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
Paragraph 1
Paragraph 2
Paragraph 3
* White space is only for humans. You can write your code with any spacing.
Paragraphs allow you to format your content in a readable fashion.
* You can edit how paragraphs are displayed with CSS
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
* Heading number indicates hierarchy, not size. Think of outlines from high school papers
<p>
Here is a paragraph with <em>emphasized</em> text and <strong>important</strong> text.
</p>
Here is a paragraph with Emphasized text and Important text.
* Notice: em and strong are meant to indicate meaning through style. If you want to have italicized for appearance and not to communicate meaning, you should use CSS.
Let's add some content to our site!
Place your name inside the first h1 tag on the page
Add a *short* bio (1 or 2 sentences) inside an h3 tag underneath the h1 tag
Use <strong> and <em> a few times within your short bio
Look! There's an about me section too! Add a full bio (5 or 6 sentences) inside a paragraph tag under
About Me
Links have three components
<a href="http://www.huffingtonpost.com" title="The Huffington Post">Girl Develop It</a><
The <a> tag surrounds text or images to turn them into links
Links can have attributes that tell the link to do different actions like open in a new tab, or launch your e-mail program.
<a href="home.html" target="_blank">Link Text</a>
Link opens in a new window/tab with target="_blank"
<a href="mailto:dominique@zipcodewilmington.com">E-mail us!</a>
Adding mailto: directly before the email address means the link will open in the default email program.
"filename.jpg"
"img/filename.jpg"
"http://www.girldevelopit.com/chapters/detroit"
Find the "About Me" section and customize your contact info
Turn the email in the Contact section into a link
Add one link to your your "About Me" paragraph
Add links to your Social Media in the header/footer
Find the LinkedIn button and add the link to your profile in the href section (If you don't have a LinkedIn, just add a dummy link)
Make these links open in the same window, a new window and link to an e-mail address.
Images have three components
<img src="http://cdn1-www.dogtime.com/assets/uploads/gallery/30-impossibly-cute-puppies/impossibly-cute-puppy-12.jpg.png"
alt="Puppy"/>
* Notice: This tag is our first example of a stand-alone or "self-closing" element.
<p>
Imagine there's no Heaven <br/>
It's easy if you try <br/>
No hell below us <br/>
Above us only sky
</p>
Imagine there's no Heaven
It's easy if you try
No hell below us
Above us only sky
Look for an img tag with the class of profile-pic
Save your headshot inside the images file
Add the link to your headshot as the value of the src
attribute within the img tag. (Hint: You'll be using a relative filepath)
Try turning your picture into a link!
<ul>
<li>List Item</li>
<li>AnotherList Item</li>
</ul>
<ol>
<li>List Item</li>
<li>AnotherList Item</li>
</ol>
Unordered list (bullets)
Ordered list (sequence)
Lists can be used to organize any list of items.
You'd be surprised how often lists are used in web design.
Find the Education Section
Edit the headings in the Education Section to include your relevant information
Let's add one of each ordered and unordered lists to our page, under our Education headings.
We can make a list of links or even a list of images!
Add headings, subheadings, paragraphs and lists to the Work Section
We'll follow the same format as the Education section.
Use the h3 tag for the heading in your education section. Underneath, add
Work heading goes here
Date Employed
There are character codes for many different characters in many different languages