You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: absolute-beginners/frontend-beginner/html/adding-images.mdx
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ description: "Learn how to bring your website to life with pictures."
7
7
8
8
A website without pictures is like a book without a cover, it can be great, but it's much harder to grab someone's attention! Today, you are going to learn how to embed images into your pages.
9
9
10
+
<AdsComponent />
11
+
10
12
## The "No-Sandwich" Tag
11
13
12
14
Most tags we've learned (`<h1>`, `<p>`, `<ul>`) are like sandwiches: they have a start and an end.
@@ -22,7 +24,6 @@ To show an image, we need two very important "Attributes" (extra pieces of info)
22
24
23
25
```html
24
26
<imgsrc="https://codeharborhub.github.io/img/codeharborhub-social-card.jpg"alt="codeharborhub social card">
25
-
26
27
```
27
28
28
29
### Why is `alt` text so important?
@@ -39,7 +40,6 @@ You can link to any image already on the internet.
39
40
40
41
```html
41
42
<imgsrc="https://codeharborhub.github.io/img/nav-logo.jpg"alt="CodeHarborHub Official Logo">
42
-
43
43
```
44
44
45
45
### 2. Using a Local File (Internal)
@@ -48,16 +48,16 @@ If you have a photo on your computer, put it in the same folder as your `index.h
48
48
49
49
```html
50
50
<imgsrc="./my-photo.jpg"alt="Me at the beach">
51
-
52
51
```
53
52
53
+
<AdsComponent />
54
+
54
55
## Changing the Size
55
56
56
57
Sometimes an image is way too big and takes up the whole screen. You can control the size directly in HTML using `width` and `height`.
57
58
58
59
```html
59
60
<imgsrc="./cool-robot.png"alt="A cool blue robot"width="300"height="200">
60
-
61
61
```
62
62
63
63
:::warning Beginner Alert!
@@ -79,7 +79,6 @@ Let’s combine everything! Try to build this in your `index.html`:
@@ -73,7 +73,6 @@ A form is useless if you can't submit it!
73
73
74
74
```html
75
75
<buttontype="submit">Send Message 🚀</button>
76
-
77
76
```
78
77
79
78
## Practice: Build a "Join the Club" Form
@@ -95,9 +94,10 @@ Copy this into your `index.html` to see a full, working form structure:
95
94
96
95
<buttontype="submit">Sign Me Up!</button>
97
96
</form>
98
-
99
97
```
100
98
99
+
<AdsComponent />
100
+
101
101
## Important Beginner Tip
102
102
103
103
In 2026, when you click "Submit," the page will usually refresh. Later, when we learn **JavaScript**, we will learn how to catch that data and send it to a database without the page refreshing!
Copy file name to clipboardExpand all lines: absolute-beginners/frontend-beginner/html/intro-to-html.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Welcome to the **HTML** tutorial at CodeHarborHub! If you've ever wanted to buil
10
10
11
11
**HTML (HyperText Markup Language)** is the very first step for every developer. It is the raw structure the bones of every website on the planet.
12
12
13
+
<AdsComponent />
14
+
13
15
## Why HTML First?
14
16
15
17
Before you can make a site look "cool" with **CSS** or "smart" with **JavaScript**, you must give it a **structure**.
@@ -45,6 +47,8 @@ To follow along with these tutorials, you only need two things:
45
47
You don't need a powerful computer to be a web developer. If your computer can run a web browser, it can run HTML!
46
48
:::
47
49
50
+
<AdsComponent />
51
+
48
52
## Ready to Start?
49
53
50
54
Don't just read **build**. We have designed these tutorials to be hands-on. By the end of this tutorials, you will have built your very first **Personal Portfolio Page**.
Copy file name to clipboardExpand all lines: absolute-beginners/frontend-beginner/html/lists-and-orders.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ description: "Learn how to create bullet points and numbered lists in HTML."
7
7
8
8
Imagine trying to read a grocery list where all the items were just jammed into one long sentence. *Messy, right?* In HTML, we have two main ways to organize items so they are easy to read. Whether you are listing your favorite games or the steps to bake a cake, there is a tag for that!
9
9
10
+
<AdsComponent />
11
+
10
12
## 1. The "Random" List (Unordered)
11
13
12
14
If the order doesn't matter (like a shopping list), we use an **Unordered List**.
@@ -21,7 +23,6 @@ If the order doesn't matter (like a shopping list), we use an **Unordered List**
21
23
<li>Oat Milk</li>
22
24
<li>Coffee Beans</li>
23
25
</ul>
24
-
25
26
```
26
27
27
28
:::tip Pro Tip
@@ -42,9 +43,10 @@ If the order **does** matter (like a recipe or a Top 10 list), we use an **Order
42
43
<li>Patience</li>
43
44
<li>Searching on Google</li>
44
45
</ol>
45
-
46
46
```
47
47
48
+
<AdsComponent />
49
+
48
50
## Building a "Survival Guide"
49
51
50
52
Let's combine everything we've learned so far. Copy this into your `index.html`:
@@ -65,7 +67,6 @@ Let's combine everything we've learned so far. Copy this into your `index.html`:
Copy file name to clipboardExpand all lines: absolute-beginners/frontend-beginner/html/semantic-html.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ Imagine walking into a supermarket where none of the aisles have signs. The milk
8
8
9
9
**Semantic HTML** is like putting signs on your aisles. It tells the browser and search engines (like Google) exactly what each part of your webpage is.
10
10
11
+
<AdsComponent />
12
+
11
13
## What is "Semantic"?
12
14
13
15
The word **Semantic** simply means "relating to meaning."
@@ -41,6 +43,8 @@ You might think, *"But my site looks the same whether I use a div or a header!"*
41
43
2.**SEO (Search Engine Optimization):** Google’s bots read your site. If they see an `<article>` tag, they know that’s the important stuff to show in search results!
42
44
3.**Cleaner Code:** It’s much easier to read `<header>` than to see a sea of 100 `<div>` tags.
43
45
46
+
<AdsComponent />
47
+
44
48
## Practice: Upgrade Your Skeleton
45
49
46
50
Let's take our basic skeleton and make it professional. Copy this into your `index.html`:
@@ -82,7 +86,6 @@ Let's take our basic skeleton and make it professional. Copy this into your `ind
0 commit comments