-
Game time, fam.

-
-
-
-
Let’s get started with a quick exercise.
-
Build me a website with some content (doesn’t matter what kind of content, just some simple HTML stuff, can be about anything). Then, create a new GitHub repo, commit your website content, and finally deploy the site.
QUESTION: What should you name this HTML file? Why is it important?
-
Now go ahead and add a second page to your web project. Then, commit this new page and deploy once more.
QUESTION: How can you access this new page in the browser?
-
HTML5 introduces a plethora of new tags. These tags are mainly used to dictate structure and meaning to the information that is presented on our website.
-

-
Here are some of the main tags that are supported.
-
-
Use sections when you are outlining chapters in a book.
-
EXAMPLE:
-
EXAMPLE Articles can go inside section tags
<section>
<article>
<!-- first blog post -->
</article>
<!-- .... more articles here ... -->
</section>
-
You can nest articles into sections and sections into articles.
<article>
<section>
<!-- introduction -->
</section>
<section>
<!-- content -->
</section>
<section>
<!-- summary, etc -->
</section>
</article>
-
THIS STUFF IS PARTLY SUBJECTIVE; THERE REALLY IS NO ONE RIGHT ANSWER.
As long as we are consistent and don’t violate the laws of HTML (ie: we don’t put a p tag inside a a tag, or something like that).
-
h1 tag (some validators say this is not recommended but this is still technically allowed)nav tags inside the header or footer pages-
-
SECTION: Used to either group different articles into different purposes or subjects, or to define the different sections of a single article.
ARTICLE: <article> is related to <section>, but is distinctly different. Whereas <section> is for grouping distinct sections of content or functionality, <article> is for containing related individual standalone pieces of content, such as individual blog posts, videos, images or news items.
-
Here are the main problems that we will be working towards in this section of the class.
-
Build a resume website using the semantic html elements we learned today. Model it after the content from the Spiderman website we built last lecture.
Given the image below, convert into semantic HTML markup
-
-
Let’s talk about CSS, or Cascading Style SHeets, the language that allows us to define styles and adjustments to default content on our webpages.
-
Before getting into the specifics, let’s talk about linking our code to HTML.
<head>
<!-- include css file in your webpage -->
<link rel="stylesheet" href="...">
</head>
-
Absolute/Relative URLs (or as they are sometimes called, paths).
Absolute URL A URL that contains the full path. For example, https://validator.w3.org/nu/#textarea is an example of an absolute URL. Contains both the hostname and the full path to file.
-
Relative URL A URL that contains only a fragment of the full address. For example, /nu/textarea.
NOTE: this won’t actually work! However, the people in https://validator.w3.org would be able to use this correctly because relative URLs use the hostname of the page they are on.
-
When to use each type
In general, if you are linking to an image or some other resource that lives on the internet, use absolute paths.
When you are linking to something like CSS stylesheets or javascript files or images that live on your servere you should definitely use relative paths.
-
Basic Definition Method for searching your html tags efficiently and styling the results it finds.
-
** Three ways to CSS **
-
Here are the main problems that we will aspire to be able to solve in this section.
-
Consider this repo. You are given several “websites”. However they are set up in strange configurations! For Each Folder
HEAD section-
Let’s practice what we just learned tho
-
-
Then, given the following pages, please complete the task outlined.
-
Due March 13, 2018 at midnight.
-
Starter code on GitHub: download this repo then create a new repo on GitHub to for this project.
-
-
-