From f42a71feea8dcd0a717bd50a1ce3395a86419192 Mon Sep 17 00:00:00 2001 From: quechau Date: Thu, 12 Oct 2023 22:10:26 +0700 Subject: [PATCH 01/54] add HTML and CSS Fundamentals 12-10-2023. --- starter/02-HTML-Fundamentals/blog.html | 12 ++ starter/02-HTML-Fundamentals/challange_2.html | 38 +++++ .../{ => img}/challenges.jpg | Bin .../{ => img}/laura-jones.jpg | Bin .../{ => img}/post-img.jpg | Bin .../{ => img}/related-1.jpg | Bin .../{ => img}/related-2.jpg | Bin .../{ => img}/related-3.jpg | Bin starter/02-HTML-Fundamentals/index.html | 130 ++++++++++++++++++ starter/03-CSS-Fundamentals/index.html | 28 ++-- starter/03-CSS-Fundamentals/style.css | 130 ++++++++++++++++++ 11 files changed, 328 insertions(+), 10 deletions(-) create mode 100644 starter/02-HTML-Fundamentals/blog.html create mode 100644 starter/02-HTML-Fundamentals/challange_2.html rename starter/02-HTML-Fundamentals/{ => img}/challenges.jpg (100%) rename starter/02-HTML-Fundamentals/{ => img}/laura-jones.jpg (100%) rename starter/02-HTML-Fundamentals/{ => img}/post-img.jpg (100%) rename starter/02-HTML-Fundamentals/{ => img}/related-1.jpg (100%) rename starter/02-HTML-Fundamentals/{ => img}/related-2.jpg (100%) rename starter/02-HTML-Fundamentals/{ => img}/related-3.jpg (100%) create mode 100644 starter/02-HTML-Fundamentals/index.html create mode 100644 starter/03-CSS-Fundamentals/style.css diff --git a/starter/02-HTML-Fundamentals/blog.html b/starter/02-HTML-Fundamentals/blog.html new file mode 100644 index 000000000..582795d52 --- /dev/null +++ b/starter/02-HTML-Fundamentals/blog.html @@ -0,0 +1,12 @@ + + + + + + BLOG + + +

BLOG

+ Back to home + + diff --git a/starter/02-HTML-Fundamentals/challange_2.html b/starter/02-HTML-Fundamentals/challange_2.html new file mode 100644 index 000000000..2574db79d --- /dev/null +++ b/starter/02-HTML-Fundamentals/challange_2.html @@ -0,0 +1,38 @@ + + + + + + Document + + +
+

Converse Chuck Taylor All Star Low Top

+ + +

$65.00

+

Free shipping

+

+ Ready to dress up or down, these classic canvas Chucks are an everyday + wardrobe staple. +

+ More information → + +

Product details

+ + + +
+ + diff --git a/starter/02-HTML-Fundamentals/challenges.jpg b/starter/02-HTML-Fundamentals/img/challenges.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/challenges.jpg rename to starter/02-HTML-Fundamentals/img/challenges.jpg diff --git a/starter/02-HTML-Fundamentals/laura-jones.jpg b/starter/02-HTML-Fundamentals/img/laura-jones.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/laura-jones.jpg rename to starter/02-HTML-Fundamentals/img/laura-jones.jpg diff --git a/starter/02-HTML-Fundamentals/post-img.jpg b/starter/02-HTML-Fundamentals/img/post-img.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/post-img.jpg rename to starter/02-HTML-Fundamentals/img/post-img.jpg diff --git a/starter/02-HTML-Fundamentals/related-1.jpg b/starter/02-HTML-Fundamentals/img/related-1.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/related-1.jpg rename to starter/02-HTML-Fundamentals/img/related-1.jpg diff --git a/starter/02-HTML-Fundamentals/related-2.jpg b/starter/02-HTML-Fundamentals/img/related-2.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/related-2.jpg rename to starter/02-HTML-Fundamentals/img/related-2.jpg diff --git a/starter/02-HTML-Fundamentals/related-3.jpg b/starter/02-HTML-Fundamentals/img/related-3.jpg similarity index 100% rename from starter/02-HTML-Fundamentals/related-3.jpg rename to starter/02-HTML-Fundamentals/img/related-3.jpg diff --git a/starter/02-HTML-Fundamentals/index.html b/starter/02-HTML-Fundamentals/index.html new file mode 100644 index 000000000..8969be5fe --- /dev/null +++ b/starter/02-HTML-Fundamentals/index.html @@ -0,0 +1,130 @@ + + + + + The Basic Language of the Web: HTML + + + +
+

📘 The Code Magazine

+ +
+
+
+

The Basic Language of the Web: HTML

+ Headshot of Laura Jones +

Posted by Laura Jones on Monday, June 21st 2027

+ + HTML code on a screen +
+

+ All modern websites and web applications are built using three + fundamental + technologies: HTML, CSS and JavaScript. These are the languages of the + web. +

+

+ In this post, let's focus on HTML. We will learn what HTML is all about, + and why you too should learn it. +

+ +

What is HTML?

+ +

+ HTML stands for HyperText + Markup Language. It's a markup + language that web developers use to structure and describe the content + of a webpage (not a programming language). +

+ +

+ HTML consists of elements that describe different types of content: + paragraphs, links, headings, images, video, etc. Web browsers understand + HTML and render HTML code as websites. +

+

In HTML, each element is made up of 3 parts:

+
    +
  1. The opening tag
  2. +
  3. The closing tag
  4. +
  5. The actual element
  6. +
+ +

+ You can learn more at + MDN Web Docs. +

+ +

Why should you learn HTML?

+ +

+ There are countless reasons for learning the fundamental language of the + web. Here are 5 of them: +

+ +

Hopefully you learned something new here. See you next time!

+
+ + + + diff --git a/starter/03-CSS-Fundamentals/index.html b/starter/03-CSS-Fundamentals/index.html index df8a623a8..8737e2b37 100644 --- a/starter/03-CSS-Fundamentals/index.html +++ b/starter/03-CSS-Fundamentals/index.html @@ -2,6 +2,8 @@ + + The Basic Language of the Web: HTML @@ -15,7 +17,7 @@
The Basic Language of the Web: HTML
The Basic Language of the Web: HTML
--> -
+

📘 The Code Magazine

-
+

The Basic Language of the Web: HTML

Date: Fri, 13 Oct 2023 15:49:41 +0700 Subject: [PATCH 05/54] Add dimensions. --- starter/03-CSS-Fundamentals/index.html | 1 + starter/03-CSS-Fundamentals/style.css | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/starter/03-CSS-Fundamentals/index.html b/starter/03-CSS-Fundamentals/index.html index a83f08047..7fe50703d 100644 --- a/starter/03-CSS-Fundamentals/index.html +++ b/starter/03-CSS-Fundamentals/index.html @@ -49,6 +49,7 @@

The Basic Language of the Web: HTML

alt="HTML code on a screen" width="500" height="200" + class="post-img" />
diff --git a/starter/03-CSS-Fundamentals/style.css b/starter/03-CSS-Fundamentals/style.css index ceee27f75..6833ce10c 100644 --- a/starter/03-CSS-Fundamentals/style.css +++ b/starter/03-CSS-Fundamentals/style.css @@ -17,6 +17,7 @@ body { padding-right: 40px; */ padding: 20px 40px; margin-bottom: 60px; + height: 80px; } nav { @@ -38,6 +39,7 @@ aside { /* padding-top: 50px; padding-bottom: 50px; */ padding: 50px 0; + width: 500px; } h1, h2, @@ -169,6 +171,10 @@ a { /* LVHA */ +.post-img { + width: 100%; + height: auto; +} /* Resolving Conflicts */ /* #copyright { color: red; From dfe3c5c5876827f49947192063b2330a40e77326 Mon Sep 17 00:00:00 2001 From: quechau Date: Fri, 13 Oct 2023 16:12:03 +0700 Subject: [PATCH 06/54] Centering Our Page. --- starter/03-CSS-Fundamentals/index.html | 270 +++++++++++++------------ starter/03-CSS-Fundamentals/style.css | 6 + 2 files changed, 144 insertions(+), 132 deletions(-) diff --git a/starter/03-CSS-Fundamentals/index.html b/starter/03-CSS-Fundamentals/index.html index 7fe50703d..63ace40b9 100644 --- a/starter/03-CSS-Fundamentals/index.html +++ b/starter/03-CSS-Fundamentals/index.html @@ -16,143 +16,149 @@

The Basic Language of the Web: HTML

The Basic Language of the Web: HTML
The Basic Language of the Web: HTML
--> - -
-

📘 The Code Magazine

- - -
- -
-
-

The Basic Language of the Web: HTML

- - Headshot of Laura Jones - -

- Posted by Laura Jones on Monday, June 21st 2027 -

- - HTML code on a screen +
+
+

📘 The Code Magazine

+ +
-

- All modern websites and web applications are built using three - fundamental - technologies: HTML, CSS and JavaScript. These are the languages of the - web. -

- -

- In this post, let's focus on HTML. We will learn what HTML is all about, - and why you too should learn it. -

- -

What is HTML?

-

- HTML stands for HyperText - Markup Language. It's a markup - language that web developers use to structure and describe the content - of a webpage (not a programming language). -

-

- HTML consists of elements that describe different types of content: - paragraphs, links, headings, images, video, etc. Web browsers understand - HTML and render HTML code as websites. -

-

In HTML, each element is made up of 3 parts:

- -
    -
  1. The opening tag
  2. -
  3. The closing tag
  4. -
  5. The actual element
  6. -
- -

- You can learn more at - MDN Web Docs. -

- -

Why should you learn HTML?

- -

- There are countless reasons for learning the fundamental language of the - web. Here are 5 of them: -

- - - -

Hopefully you learned something new here. See you next time!

-
- - - -
- -
+
+ +

+ All modern websites and web applications are built using three + fundamental + technologies: HTML, CSS and JavaScript. These are the languages of the + web. +

+ +

+ In this post, let's focus on HTML. We will learn what HTML is all + about, and why you too should learn it. +

+ +

What is HTML?

+

+ HTML stands for HyperText + Markup Language. It's a markup + language that web developers use to structure and describe the content + of a webpage (not a programming language). +

+

+ HTML consists of elements that describe different types of content: + paragraphs, links, headings, images, video, etc. Web browsers + understand HTML and render HTML code as websites. +

+

In HTML, each element is made up of 3 parts:

+ +
    +
  1. The opening tag
  2. +
  3. The closing tag
  4. +
  5. The actual element
  6. +
+ +

+ You can learn more at + MDN Web Docs. +

+ +

Why should you learn HTML?

+ +

+ There are countless reasons for learning the fundamental language of + the web. Here are 5 of them: +

+ + + +

Hopefully you learned something new here. See you next time!

+
+ + + +
+ +
+ diff --git a/starter/03-CSS-Fundamentals/style.css b/starter/03-CSS-Fundamentals/style.css index 6833ce10c..ee24c963f 100644 --- a/starter/03-CSS-Fundamentals/style.css +++ b/starter/03-CSS-Fundamentals/style.css @@ -10,6 +10,12 @@ body { border-top: 10px solid #1098ad; } +.container { + width: 800px; + /* margin-left: auto; + margin-right: auto; */ + margin: 0 auto; +} .main-header { background-color: #f7f7f7; /* padding: 20px; From 7ad1ec4c548c2c7db5516d21756d0be7f0a30eb7 Mon Sep 17 00:00:00 2001 From: quechau Date: Fri, 13 Oct 2023 16:28:40 +0700 Subject: [PATCH 07/54] Challenge No 2 CSS Fundametal. --- .../style-for-challange-2.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/starter/02-HTML-Fundamentals/style-for-challange-2.css b/starter/02-HTML-Fundamentals/style-for-challange-2.css index 3b23487e8..88bbb3ccd 100644 --- a/starter/02-HTML-Fundamentals/style-for-challange-2.css +++ b/starter/02-HTML-Fundamentals/style-for-challange-2.css @@ -1,3 +1,8 @@ +* { + margin: 0; + padding: 0; +} + body { font-family: sans-serif; line-height: 1.4; @@ -6,6 +11,8 @@ body { /* PRODUCT */ .product { border: 4px solid black; + width: 825px; + margin: 50px auto; } .product-title { @@ -13,6 +20,7 @@ body { font-size: 22px; text-transform: uppercase; background-color: #f7f7f7; + padding: 15px; } /* PRODUCT INFOMATION */ @@ -25,6 +33,7 @@ body { text-transform: uppercase; font-weight: bold; color: #777; + margin-bottom: 20px; } .more-info:link, @@ -41,12 +50,18 @@ body { .details-title { text-transform: uppercase; font-size: 16px; + margin-bottom: 15px; + margin-top: 30px; } .details-list { list-style: square; + margin-left: 20px; } +.details-list li { + margin-bottom: 10px; +} /* BUTTON */ .add-cart { background-color: #000; @@ -55,6 +70,9 @@ body { font-size: 20px; text-transform: uppercase; cursor: pointer; + padding: 15px; + width: 100%; + border-top: 4px solid black; } .add-cart:hover { From 52f3be892e59e160b21d627a9075a83d897e6ce4 Mon Sep 17 00:00:00 2001 From: quechau Date: Sat, 14 Oct 2023 10:35:06 +0700 Subject: [PATCH 08/54] add box types and debug skills. --- starter/03-CSS-Fundamentals/index.html | 5 +- starter/03-CSS-Fundamentals/style.css | 75 +++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 4 deletions(-) diff --git a/starter/03-CSS-Fundamentals/index.html b/starter/03-CSS-Fundamentals/index.html index 63ace40b9..7516e7692 100644 --- a/starter/03-CSS-Fundamentals/index.html +++ b/starter/03-CSS-Fundamentals/index.html @@ -51,6 +51,7 @@

The Basic Language of the Web: HTML

height="200" class="post-img" /> +

@@ -126,7 +127,7 @@

Related posts

src="img/related-1.jpg" alt="Person programming" width="75" - width="75" + height="75" /> How to Learn Web Development @@ -136,7 +137,7 @@

Related posts

src="img/related-2.jpg" alt="Lightning" width="75" - heigth="75" + height="75" /> The Unknown Powers of CSS diff --git a/starter/03-CSS-Fundamentals/style.css b/starter/03-CSS-Fundamentals/style.css index ee24c963f..20e259383 100644 --- a/starter/03-CSS-Fundamentals/style.css +++ b/starter/03-CSS-Fundamentals/style.css @@ -4,10 +4,12 @@ padding: 0; } +/* PAGE SELECTIONS */ body { color: #444; - font-family: serif; + font-family: sans-serif; border-top: 10px solid #1098ad; + position: relative; } .container { @@ -15,6 +17,7 @@ body { /* margin-left: auto; margin-right: auto; */ margin: 0 auto; + /* position: relative; */ } .main-header { background-color: #f7f7f7; @@ -23,11 +26,12 @@ body { padding-right: 40px; */ padding: 20px 40px; margin-bottom: 60px; - height: 80px; + /* height: 80px; */ } nav { font-size: 18px; + /* text-align: center; */ } article { @@ -36,6 +40,7 @@ article { .post-header { margin-bottom: 40px; + /* position: relative; */ } aside { @@ -47,6 +52,7 @@ aside { padding: 50px 0; width: 500px; } +/* SMALLER ELEMENTS */ h1, h2, h3 { @@ -77,11 +83,13 @@ p { font-size: 22px; line-height: 1.5; margin-bottom: 15px; + /* display: inline; */ } li { font-size: 20px; margin-bottom: 10px; + /* display: inline; */ } li:last-child { @@ -181,6 +189,69 @@ a { width: 100%; height: auto; } + +nav a:link { + /* background-color: orangered; + margin: 20px; + padding: 20px; + display: block; */ + margin-right: 30px; + margin-top: 10px; + display: inline-block; +} + +nav a:link:last-child { + margin-right: 0; +} + +button { + font-size: 22px; + padding: 20px; + cursor: pointer; + position: absolute; + /* top: 50px; + left: 50px; */ + bottom: 50px; + right: 50px; +} + +h1::first-letter { + font-style: normal; + margin-right: 5px; +} + +/* h2::first-letter { + font-size: 80px; +} */ + +h3 + p::first-line { + /* color: red; */ +} + +h2 { + /* background-color: orange; */ + position: relative; +} + +/* h2::after {} */ +h2::before { + content: "TOP"; + background-color: #ffe70e; + color: #444; + font-size: 16px; + font-weight: bold; + display: inline-block; + padding: 5px 10px; + position: absolute; + top: -10px; + right: -25px; +} + +/* For make bug conflict selector a tag */ +.main-header nav a:link { + color: red; + margin-top: 100px; +} /* Resolving Conflicts */ /* #copyright { color: red; From 3ed887ea3b07bf7a2dfc52f249f3acfcc149714e Mon Sep 17 00:00:00 2001 From: quechau Date: Sat, 14 Oct 2023 13:21:17 +0700 Subject: [PATCH 09/54] add challenge no.3 CSS Fundamental. --- starter/02-HTML-Fundamentals/challange_2.html | 9 ++++ .../style-for-challange-2.css | 49 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/starter/02-HTML-Fundamentals/challange_2.html b/starter/02-HTML-Fundamentals/challange_2.html index 6bac658a9..afe93102b 100644 --- a/starter/02-HTML-Fundamentals/challange_2.html +++ b/starter/02-HTML-Fundamentals/challange_2.html @@ -18,6 +18,7 @@

Converse Chuck Taylor All Star Low Top

$65.00

Free shipping

+

Sale

Ready to dress up or down, these classic canvas Chucks are an everyday wardrobe staple. @@ -28,6 +29,14 @@

Converse Chuck Taylor All Star Low Top

>More information → +
+
+
+
+
+
+
+

Product details

+ +