diff --git a/starter/03-CSS-Fundamentals/challenge-1/index.html b/starter/03-CSS-Fundamentals/challenge-1/index.html new file mode 100644 index 000000000..ed59cc552 --- /dev/null +++ b/starter/03-CSS-Fundamentals/challenge-1/index.html @@ -0,0 +1,48 @@ + + +
+ Section 2 - Challenge #2 + + +
+ + +
+

+
sale
+ Converse Chuck Taylor All Star Low Top +

+ + Converse shoes. + +

$65.00

+

Free shipping

+

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

+ + + +
+
+
+
+
+
+
+
+ +

Product details

+ + + +
+ + diff --git a/starter/03-CSS-Fundamentals/challenge-1/style.css b/starter/03-CSS-Fundamentals/challenge-1/style.css new file mode 100644 index 000000000..53df1a1fd --- /dev/null +++ b/starter/03-CSS-Fundamentals/challenge-1/style.css @@ -0,0 +1,131 @@ +* { + margin: 0; + padding: 0; +} + +body { + font-family: sans-serif; + line-height: 1.4; +} + +/* Use classes for all styling other than body. */ + +a { + color: black; +} + +a:hover { + text-decoration: none; +} + +button { + background-color: black; + border: 0; + border-top: 4px solid black; + color: white; + padding: 20px 0; + text-transform: uppercase; + width: 100%; +} + +button:hover { + background-color: white; + color: black; + cursor: pointer; +} + +li { + list-style-type: square; + margin-left: 20px; + margin-bottom: 10px; +} + +h2 { + text-transform: uppercase; + margin-bottom: 15px; + margin-top: 30px; +} + +.black-option { + background-color: black; +} + +.blue-option { + background-color: blue; +} + +.brown-option { + background-color: brown; +} + +.color-pallete { + margin-bottom: 15px; +} + +.color-pallete div { + display: inline-block; + height: 20px; + margin-right: 8px; + width: 20px; +} + +.details-header { + text-transform: uppercase; + margin-bottom: 15px; +} + +.green-option { + background-color: green; +} + +.information-link { + margin-bottom: 20px; +} + +.product { + border: 4px solid black; + margin: 50px auto; + width: 825px; +} + +.product-header { + background-color: #f7f7f7; + font-size: 22px; + margin: 0; + padding: 15px; + position: relative; + text-align: center; +} + +.product-header-tag { + background-color: red; + color: white; + display: inline-block; + font-size: 16px; + left: -4%; + letter-spacing: 2px; + padding: 5px 10px; + position: absolute; + text-transform: uppercase; + top: -30%; +} + +.pricing-details { + font-size: 24px; +} + +.red-option { + background-color: red; +} + +.shipping-details { + color: #777; + font-size: 12px; + font-weight: bold; + margin-bottom: 20px; + text-transform: uppercase; +} + +.yellow-option { + background-color: yellow; +} \ No newline at end of file diff --git a/starter/03-CSS-Fundamentals/index.html b/starter/03-CSS-Fundamentals/index.html index df8a623a8..43d103d57 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,132 +17,139 @@
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: -

- -
    -
  • To be able to use the fundamental web dev language
  • -
  • - To hand-craft beautiful websites instead of relying on tools like - Worpress or Wix -
  • -
  • To build web applications
  • -
  • To impress friends
  • -
  • To have fun 😃
  • -
- -

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 new file mode 100644 index 000000000..62a770951 --- /dev/null +++ b/starter/03-CSS-Fundamentals/style.css @@ -0,0 +1,227 @@ +/* Universal selector. No inheritance. */ +* { + /* border-top: 10px solid *1098ad; */ + padding: 0; + margin: 0; +} + +/* +Not all properties are inherited. +Mostly ones related to text. +*/ +body { + border-top: 10px solid #1098ad; + color: #444444; + font-family: sans-serif; + position: relative; +} + +article { + margin-bottom: 60px; +} + +h1, h2, h3 { + color: #1098ad; +} + +h1 { + font-size: 26px; + font-style: italic; + text-transform: uppercase; +} + +h1::first-letter { + font-style: normal; + margin-right: 5px; +} + +h2 { + font-size: 40px; + margin-bottom: 30px; + position: relative; +} + +h2::after { + background-color: #ffe70e; + color: #444444; + content: "TOP"; + display: inline-block; + font-size: 16px; + font-weight: bold; + padding: 5px 10px; + position: absolute; + right: -25px; + top: -10px; +} + +h3 { + font-size: 30px; + margin-bottom: 20px; +} + +h4 { + font-size: 20px; + text-align: center; + text-transform: uppercase; +} + +p { + font-size: 22px; + line-height: 1.5; + margin-bottom: 50px; +} + +h3 + p::first-line { + /* color: red */ +} + +ul, ol { + margin-left: 50px; + margin-bottom: 20px; +} + +li { + font-size: 20px; + margin-bottom: 10px; +} + +li:first-child { + font-weight: bold; +} + +li:last-child { + font-weight: italic; + margin-bottom: 0px; +} + +li:nth-child(even) { + /* color: red; */ +} + +aside { + background-color: #f7f7f7; + border-bottom: 5px solid #1098ad; + border-top: 5px solid #1098ad; + padding: 50px 0; + width: 500px; +} + +/* LVHA */ +a:link { + color: #1098ad; + text-decoration: none; +} + +a:visited { + color: #1098ad; +} + +a:hover { + color: orangered; + font-weight: bold; + text-decoration: underline orangered; +} + +a:active { + background-color: black; + font-style: italic; +} + +nav a:link { + /* font-size: 18px; + 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; +} + +nav { + font-size: 18px; +} + +button { + bottom: 50px; + cursor: pointer; + font-size: 22px; + padding: 20px; + position: absolute; + right: 50px; +} + +/* ul { + list-style: none; +} */ + +/* footer p { + font-size: 16px; +} */ + +/* article header p { + font-style: italic; +} */ + +#author { + font-style: italic; + font-size: 18px; +} + +#copyright { + font-size: 16px; +} + +.container { + margin: 0 auto; + /* position: relative; */ + width: 800px; +} + +.related-author { + font-size: 18px; + font-weight: bold; +} + +.related-posts { + list-style: none; +} + +.main-header { + background-color: #f7f7f7; + /* height: 80px; */ + padding: 20px 40px; + margin-bottom: 60px; +} + +.post-header { + margin-bottom: 40px; +} + +.post-image { + height: auto; + width: 100%; +} + +/* Resolving conflicts. */ +/* !important, inline, id, class/pseudo-class, element, universal */ +/* #copyright { + color: red; +} + +.copyright { + color: blue; +} + +.text { + color: yellow; +} + +footer p { + color: green; +} */