Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…course- into session-03
  • Loading branch information
fares-webDev committed Feb 26, 2020
2 parents bab421d + 875cd84 commit 06112b1
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,25 @@
* Link to an issue tracker – if you are working with an issue tracking system (like Jira), it is important to create a logical link between the issue ticket number and the subsequent code change.

**The main rule to follow is:**

> The commit message must contain all the information required to fully understand & review the patch for correctness. Less is not more. More is more.
# Sessions Content
//For each session folder create the following:

//For each **session folder** create the following:
- [ ] Learning Outcomes file: learning-outcomes.md
- [ ] Research Topics: research-topics.md
- [ ] Resources: resources.md
- [ ] Readme.md

The Readme.md should include your sessions time breakdown/Schedule:

**Schedule**
//On the Readme provide a breakdown of your timetable for the session

*Ex:*
11:00 - 12:30 | Topics [Add Topic and link to content]

BREAK

-BREAK-
12:50 - 14:00 | Topics [Add Topic and link to content]

# Merging Pull Requests
Expand Down
11 changes: 11 additions & 0 deletions coursebook/session-02/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Semantic HTML

## [Learning Outcomes](./learning-outcomes.md)

## Schechule

- 11:00 - 12:30 | [Semantic HTML](./topic.md)
- -BREAK-
- 12:50 - 14:00 | [Exercise](./exercise.md)

## [Additional Resources](./resources.md)
17 changes: 17 additions & 0 deletions coursebook/session-02/exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Exercise

## Make this:

![](https://i.imgur.com/7EsTLRb.jpg)

```
Heading text: Ice cream
First paragraph: Ice cream is a sweetened frozen food typically eaten as a snack or dessert. It may be made from dairy milk or cream and is flavored with a sweetener, either sugar or an alternative, and any spice, such as cocoa or vanilla. Colourings are usually added, in addition to stabilizers.
Second paragraph: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s 1970 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Copyrights ©
```

[image link](https://cdn2.lamag.com/wp-content/uploads/sites/6/2019/07/salt-and-straw.jpg)
7 changes: 7 additions & 0 deletions coursebook/session-02/learning-outcomes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Learning Outcomes

- Learn about Semantic HTML.
- Learn about why we should layout our pages correctly.
- Learn more HTML tags.
- Learn new tags from HTML5: `<section>`, `<aside>` and many others.
- Learning to create layouts that make sense and are good for styling later on.
5 changes: 5 additions & 0 deletions coursebook/session-02/resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Resources

- https://guide.freecodecamp.org/html/html5-semantic-elements/
- https://www.geeksforgeeks.org/html5-semantics/
- https://www.rithmschool.com/courses/html-css-fundamentals/semantic-html
81 changes: 81 additions & 0 deletions coursebook/session-02/topic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

## HTML

HTML stands for Hyper Text Markup Language. It is used to design web pages using a markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages. A markup language is used to define the text document within tag which defines the structure of web pages.

## HTML5

### HTML5 is the latest version of Hypertext Markup Language that adds a handful of new HTML elements we can use to better define our page’s content for search engines

### What HTML5 do

- It supports audio and video controls with the use of `<audio>` and `<video>` tags.
- Vector graphics is additionally an integral a part of HTML5 like SVG and `<canvas>`, examples on `<canvas>`:
- https://codepen.io/Tibixx/pen/eXOyXg
- https://codepen.io/EntropyReversed/pen/ZPEpWg
- HTML5 language is more mobile-friendly.
- `doctype` declaration is quite simple and easy.
- Character encoding is simple and easy.
- New element for web structure like nav, header, footer etc.

## Semantics

- #### Semantics is the study of the meanings of words and phrases in a language.

- #### Semantic elements = elements with a meaning.

- #### A semantic element clearly describes its meaning to both the browser and developer.

### What’s a Semantic Element

Semantic Elements refer to HTML elements that have a specific meaning. For example `<h1>` is a semantic element. It tells google bots that the content within the tag is the most significant header contained in the HTML document. `<div>` on the other hand, is a non-semantic element as it only indicates a division in the HTML document and provide no information on what goes before, after or within the tag.

### What are the semantic tags that HTML5 brought us?

| Tag | Description |
| ----------- | ---------------------------------------------------------------------- |
| `<header>` | Specifies a header for a document or section |
| `<section>` | Defines a section in a document |
| `<nav>` | Defines navigation links |
| `<main>` | Specifies the main content of a document |
| `<article>` | Defines an article |
| `<figure>` | Specifies self-contained content, like illustrations, diagrams, photos |
| `<footer>` | Defines a footer for a document or section |

Elements such as `<header>`, `<nav>`, `<section>`, `<article>`, `<aside>`, and `<footer>` act more or less like `<div>` elements. They group other elements together into page sections. However where a `<div>` tag could contain any type of information, it is easy to identify what sort of information would go in a semantic `<header>` region.

- #### It is much easier to read

- #### It has greater accessibility. (screen readers also find semantic elements easier to understand)

### Lets look at these 2 snippets of html:

- This block of code does not use semantic elements

```
<div id="header"></div>
<div class="section">
<div class="article">
<div class="figure">
<img>
<div class="figcaption"></div>
</div>
</div>
</div>
<div id="footer"></div>s
```

- And this block of code uses semantic elements:

```
<header></header>
<section>
<article>
<figure>
<img>
<figcaption></figcaption>
</figure>
</article>
</section>
<footer></footer>
```

0 comments on commit 06112b1

Please sign in to comment.