COM414
Dr. Daniel Kelly
Internet Technologies
Using HTML and CSS create a website for a "Shopping Center" and "Businesses"
Using HTML and CSS and Javascript create a website to be used as a resource for parents/children in learning LITERACY skills
40% of Module
Teams of 4
Submit by Fri 11th Nov (Week 6)
60% of Module
Individual
Submit by 12th Jan (Week 13)
40% of Module
Teams of 4
Submit by Thur 28th Oct (Week 6)
Local Businesses Website
>Team of 4:
Build "Virtual Shopping Center" Website [15%]
>Individual Members:
Build individual Business Mini Website [25%]
Using HTML and CSS create a website for a "Shopping Center" website and "Local Businesses" mini-sites
HTML
CSS
Javascript
Things that you see and interact with (in your Browser)
Everything else (is performed on Server)
Defines the behavior of webpage
Add two numbers together
Change color when the user clicks
Load data from external source
Actions or "Verbs" of webpage
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Wecome to COM414 Internet Techologies</h1>
</body>
</html>
1. Copy this code:
2. Paste the code in VS Code:
3. Press Ctrl + S to save
4. Test the code
5. Choose Chrome option for debugger
6. Bask in the glory of your amazing web development skills
https://code.visualstudio.com/download
Available for FREE:
Step 1. Edit your code (e.g. HTML)
Step 2. View result of Edit
Step 1. Edit your code (e.g. HTML)
Step 2. View result of Edit
First developed in 1989
Used in exchange of scientific and technical documents
Allowed linking of documents via hyperlinks
The Standard Markup Language for creating web-pages
Describes the structure of a web-page using markup tags
HTML is composed of Elements
Tags are used to represent Elements
Title: Sample Title goes here Abstract: This is where the abstract would go. Give a high level overview of paper here 1. Introduction This is the introduction to the paper. It includes the background of the problem
Title: Sample Title goes here
Abstract: This is where the abstract would go. Give a high level overview of paper here
1. Introduction
This is the introduction to the paper. It includes the background of the problem
<tag> Content here </tag>
Every HTML document should begin with this boilerplate:
<!DOCTYPE html>
<html>
<head>
<!-- Our metadata goes here -->
<title></title>
</head>
<body>
<!-- Our content goes here -->
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<!-- Our metadata goes here -->
<title></title>
</head>
<body>
<p>Some content here</p>
<p>More content here</p>
</body>
</html>
HTML
Head
Body
Title
HTML: A Hierarchy of Elements
Paragraph
Paragraph
<tagName> Content here </tagName>
<h1> Big heading here </h1>
<h3> Smaller Heading here </h3>
<h3> Smaller Heading here </h3>
<h1> Big heading here </h1>
<p> Paragraph here... </p>
Paragraph here...
<strong>important stuff</strong>
important stuff
<em>emphasized text</em>
emphasized text
<p>This is a paragraph with <strong>important</strong> text</p>
This is a paragraph with important text.
<p>This is a paragraph with <strong>important text</strong></p>
Example:
<p>This is a paragraph with <strong>important text</p></strong>
<!-- This is a comment -->
Sublime Text Shortcut:
Browser will ignore Comments
Mozilla X-Ray Goggles
Blackboard: Content -> Week1 -> Challenge1
<h1>
<h6>
<p>
<strong>
<em>
<p>This parapgrah includes some <em>important information<em> such as contact info</p>
This paragraph includes some
important information such as contact info
A
B
C
D
This paragraph includes some
important information
such as contact info
This paragraph includes some important information such as contact info
This paragraph includes some important information
such as contact info
<h1>First Heading Here</h1>
<h2>This section discussed the <em>Main Content</em> of the Page</h2>
<p>This section provides some <h1>additional info</h1> and some references</p>
A
B
C
D
<ol>
<li>Cat</li>
<li>Bird</li>
<li>Dog</li>
</ol>
<ul>
<li>Pink</li>
<li>Orange</li>
<li>Red</li>
</ul>
<ol>
<ul>
<ol>
<li>Car
<ul>
<li>Ford</li>
<li>Audi</li>
<li>BMW</li>
</ul>
</li>
<li>Boat</li>
<li>Plane</li>
</ol>
Open VS Code
Use the "Week1" folder/project
Create new file called "task1.html"
Implement HTML code to create page on the right
Run/Debug task1.html to open in Chrome
Tip: DO NOT try to finish the entire task before testing it in Chrome.
Try one small part, save it and test it
<!DOCTYPE html>
<html>
<head>
<title>COM414 My First page</title>
</head>
<body>
<h1>Topics Covered Week 1</h1>
<h2>Internet Basics</h2>
<ol>
<li>HTTP</li>
<li>IP Adressing</li>
<li>Servers</li>
</ol>
<h2>HTML</h2>
<ul>
<li>Hypertext markup langueg</li>
<li>HTML Tags
<ul>
<li>Basic Structure
<ol>
<li>Doctype</li>
<li>HTML</li>
<li>Head
<ol>
<li>Title</li>
</ol>
</li>
<li>Body</li>
</ol>
</li>
<li>Headings</li>
<li>Paragraph</li>
<li><em>em</em></li>
<li><strong>strong</strong></li>
</ul>
</li>
</ul>
</body>
</html>
<div>
Content
</div>
Divide HTML up into sections
<div>
My Section 1
</div>
<div>
My Section 2
<div>
My Section 2.1
</div>
</div>
Divide HTML up into sections
<div>
<h1>Heading for Paragraph 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
<div>
<h1>Heading for Paragraph 1</h1>
<p>Lorem ipsum dolor sit amet, <div>this part is a div</div>,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
Lorem ipsum dolor sit amet,
this part is a div,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, this part is a div, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<div>
<h1>Heading for Paragraph 1</h1>
<p>Lorem ipsum dolor sit amet, <span>this part is a span</span>,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
Lorem ipsum dolor sit amet, this part is a span, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, this part is a div, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<div>
<h1>Heading for Paragraph 1</h1>
<p>Lorem ipsum dolor sit amet, <span>this part is a span</span>,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
Lorem ipsum dolor sit amet, this part is a span, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, this part is a div, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<div>
<h1>Heading for Paragraph 1</h1>
<p>Lorem ipsum dolor sit amet, <div>this part is a div</div>,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
Lorem ipsum dolor sit amet,
this part is a div,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, this part is a div, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<tag name="value"> ... </tag>
<a href="www.google.com">Click here to go to google</a>
<p class="myclass">Paragraph text goes</p>
<tag> ... </tag>
<img src="dog.jpg">
<a href="url">Link Text</a>
This is the page the link takes you to
This is the text the user clicks on
Opening Tag
Closing Tag
<a href="url">Link Text</a>
<a href="www.google.com">Go to Google</a>
<a href="www.twitter.com">Go to Twitter</a>
<a href="page2.html">Go to page2</a>
<a href="file:///C:/myfiles/page2.html">Go to page2</a>
<a href="http://www.mywebsite.com/page2.html">Go to page2</a>
Linking to other files on your computer (do not use for public website):
Linking to other pages on same site:
Linking to other sites:
<!DOCTYPE html>
<html>
<head>
<title>Page 1</title>
</head>
<body>
<a href="page2.html">Click here to go to page 2</a>
</body>
</html>
index.html
<!DOCTYPE html>
<html>
<head>
<title>Page 2</title>
</head>
<body>
<h1>this is page 2</h1>
</body>
</html>
page2.html