๐จโ๐ซ 6. Your First Real Example
Letโs make a personal profile page for someone named "Betelhem":
โ Save it as betelhem.html
โ Open it in your browser
๐ Boom! You made your first webpage.
๐ฏ 7. Where Do We Write HTML?
You can use:
๐ป VS Code on your laptop
๐ฑ TrebEdit, Acode, or Spck Editor on mobile
๐ Your browser to open the file
๐ 8. Whatโs Coming Next?
In the next lessons, youโll learn:
โ Forms โ Collect data from users
โ Tables โ Display information in grids
โ Semantic HTML โ More readable structure
โ Multimedia โ Add videos, music, maps
๐ Summary:
โ HTML = The skeleton of every webpage
โ Tags like <p>, <h1>, and <img> define what shows up
โ You write HTML in a text editor, and view it in a browser
โ Use simple, structured code to build everything from a blog to a full website
#Week1 #Day2 #Html #introductionToHtml #lesson
Letโs make a personal profile page for someone named "Betelhem":
<!DOCTYPE html>
<html>
<head>
<title>Betelhem's Page</title>
</head>
<body>
<h1>แฐแแ! แฅแ แคแฐแแแ แแ</h1>
<p>welcome to my web pagee</p> <img src="https://placekitten.com/300/200" alt="cute cat image">
<p>Visit my <a href="https://examplee.com">myGitHub</a></p>
<h3>my skills:</h3>
<ul>
<li>video editing</li>
<li>web developing</li>
<li>photography</li>
</ul>
</body>
</html>
โ Save it as betelhem.html
โ Open it in your browser
๐ Boom! You made your first webpage.
๐ฏ 7. Where Do We Write HTML?
You can use:
๐ป VS Code on your laptop
๐ฑ TrebEdit, Acode, or Spck Editor on mobile
๐ Your browser to open the file
๐ 8. Whatโs Coming Next?
In the next lessons, youโll learn:
โ Forms โ Collect data from users
โ Tables โ Display information in grids
โ Semantic HTML โ More readable structure
โ Multimedia โ Add videos, music, maps
๐ Summary:
โ HTML = The skeleton of every webpage
โ Tags like <p>, <h1>, and <img> define what shows up
โ You write HTML in a text editor, and view it in a browser
โ Use simple, structured code to build everything from a blog to a full website
#Week1 #Day2 #Html #introductionToHtml #lesson
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>fullstack day 2</title>
</head>
<body>
<h1>Hello World</h1>
<h1>Universe</h1>
<h2>Galaxy</h2>
<h3>Solar System</h3>
<h4>Earth</h4>
<h5>Africa</h5>
<h6>Ethiopia</h6>
<p>This is a normal paragraph tag, which is used for writing regular text.</p>
<a href="https://google.com">google anything</a>
<h2>Continents</h2>
<ul>
<li>Europe</li>
<li>Asia</li>
<li>Africa</li>
<li>America</li>
</ul>
<h3>Universities in Ethiopia</h3>
<ol>
<li>Addis Ababa University</li>
<li>Mekelle University</li>
<li>Hawassa University</li>
<li>AASTU University</li>
<li>Raya University</li>
</ol>
<img src="20250709_152202.png" alt="cloud ">
<p>see ya again โ๏ธ</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>fullstack day 2</title>
</head>
<body>
<h1>Hello World</h1>
<h1>Universe</h1>
<h2>Galaxy</h2>
<h3>Solar System</h3>
<h4>Earth</h4>
<h5>Africa</h5>
<h6>Ethiopia</h6>
<p>This is a normal paragraph tag, which is used for writing regular text.</p>
<a href="https://google.com">google anything</a>
<h2>Continents</h2>
<ul>
<li>Europe</li>
<li>Asia</li>
<li>Africa</li>
<li>America</li>
</ul>
<h3>Universities in Ethiopia</h3>
<ol>
<li>Addis Ababa University</li>
<li>Mekelle University</li>
<li>Hawassa University</li>
<li>AASTU University</li>
<li>Raya University</li>
</ol>
<img src="20250709_152202.png" alt="cloud ">
<p>see ya again โ๏ธ</p>
</body>
</html>
๐2
Assignment : refer the following you tube videos
โ โ Introduction to html and headings .... https://youtu.be/-CNdRywgF7M?si=taqCkgDLlBAqM79f
โ โ Hyperlinks...... https://youtu.be/gOioxltfh48?si=1TkZo5iN7Lb4wtCg
โ โ Images...... https://youtu.be/Hh_se2Zqsdk?si=0flgH01_B1gJ0gM5
โ โ Lists..... https://youtu.be/-kXZvKxs9oA?si=7XfbrlKaRPBZxHJs
#Week1 #Day2 #Html #introduction #resources
โ โ Introduction to html and headings .... https://youtu.be/-CNdRywgF7M?si=taqCkgDLlBAqM79f
โ โ Hyperlinks...... https://youtu.be/gOioxltfh48?si=1TkZo5iN7Lb4wtCg
โ โ Images...... https://youtu.be/Hh_se2Zqsdk?si=0flgH01_B1gJ0gM5
โ โ Lists..... https://youtu.be/-kXZvKxs9oA?si=7XfbrlKaRPBZxHJs
#Week1 #Day2 #Html #introduction #resources
YouTube
HTML tutorial for beginners ๐
HTML tutorial for beginners
#HTML #tutorial #beginners
โญ๏ธTime Stampsโญ๏ธ
00:00:00 introduction
00:02:03 VS Code download
00:02:30 Live Server extension
00:02:50 new folder
00:03:08 index.html
00:03:38 HTML structure
00:05:05 change default browser
00:05:36โฆ
#HTML #tutorial #beginners
โญ๏ธTime Stampsโญ๏ธ
00:00:00 introduction
00:02:03 VS Code download
00:02:30 Live Server extension
00:02:50 new folder
00:03:08 index.html
00:03:38 HTML structure
00:05:05 change default browser
00:05:36โฆ
Week 1 ๐๐ฎ๐ ๐ฎ ๐๐ต๐ฎ๐น๐น๐ฒ๐ป๐ด๐ฒ: ๐๐ฒ๐๐ถ๐ด๐ป ๐ฎ ๐๐ผ๐๐ฒ๐ฟ ๐ฃ๐ฎ๐ด๐ฒ ๐
Letโs get a little creative!
Your task is to build a simple and clean HTML cover page for a group assignment โ just like the ones we submit at school or university.
โ Your cover page should include:
โค Your university/high school logo (use any placeholder image for now)
โค Name of your school, university, or campus
โค Official website (make up one if yours doesnโt have)
โค Department name
โค Section or class
โค Group members (list 3 or more names)
โค Submission date
Youโll use headings, paragraph tags, and an image โ everything weโve learned today!
๐ค ๐ช๐ต๐ฒ๐ป ๐๐ผ๐โ๐ฟ๐ฒ ๐ฑ๐ผ๐ป๐ฒ, ๐ฝ๐น๐ฒ๐ฎ๐๐ฒ ๐๐ต๐ฎ๐ฟ๐ฒ ๐ฎ ๐๐ฐ๐ฟ๐ฒ๐ฒ๐ป๐๐ต๐ผ๐ ๐ผ๐ฟ ๐๐ผ๐๐ฟ ๐ฐ๐ผ๐ฑ๐ฒ ๐ถ๐ป ๐๐ต๐ฒ ๐ด๐ฟ๐ผ๐๐ฝ!
Letโs celebrate each other's work and learn together ๐
๐ฅ ๐๐ป๐๐ถ๐๐ฒ ๐ฎ ๐ณ๐ฟ๐ถ๐ฒ๐ป๐ฑ!
If youโre enjoying the challenge, bring your friends into the camp. The more minds, the better the journey!
๐ Stay kind, stay curious โ and stay coding!
#Week1 #Day2 #Html #introductionToHtml #challenge
Letโs get a little creative!
Your task is to build a simple and clean HTML cover page for a group assignment โ just like the ones we submit at school or university.
โ Your cover page should include:
โค Your university/high school logo (use any placeholder image for now)
โค Name of your school, university, or campus
โค Official website (make up one if yours doesnโt have)
โค Department name
โค Section or class
โค Group members (list 3 or more names)
โค Submission date
Youโll use headings, paragraph tags, and an image โ everything weโve learned today!
๐ค ๐ช๐ต๐ฒ๐ป ๐๐ผ๐โ๐ฟ๐ฒ ๐ฑ๐ผ๐ป๐ฒ, ๐ฝ๐น๐ฒ๐ฎ๐๐ฒ ๐๐ต๐ฎ๐ฟ๐ฒ ๐ฎ ๐๐ฐ๐ฟ๐ฒ๐ฒ๐ป๐๐ต๐ผ๐ ๐ผ๐ฟ ๐๐ผ๐๐ฟ ๐ฐ๐ผ๐ฑ๐ฒ ๐ถ๐ป ๐๐ต๐ฒ ๐ด๐ฟ๐ผ๐๐ฝ!
Letโs celebrate each other's work and learn together ๐
๐ฅ ๐๐ป๐๐ถ๐๐ฒ ๐ฎ ๐ณ๐ฟ๐ถ๐ฒ๐ป๐ฑ!
If youโre enjoying the challenge, bring your friends into the camp. The more minds, the better the journey!
๐ Stay kind, stay curious โ and stay coding!
#Week1 #Day2 #Html #introductionToHtml #challenge
โค2๐2๐1
Senior Advices and Experiances
When many people start learning to code, they often feel like they need to know everything upfront every syntax, every trick, every framework. So they hop from one tutorial to the next, thinking theyโre making progress, but still feeling stuck when trying to build something real.
Hereโs what truly makes the difference
1. Donโt Avoid the Docs
Documentation may seem intimidating at first, but itโs the most accurate and reliable source of truth. Tutorials are great for getting started, but docs are what help you go deeper and become confident.
2. Use AI Wisely Not Lazily
AI tools can boost your learning dramatically when used right. They help you understand code, debug smarter, and learn faster. But they canโt replace your thinking, reasoning, or problem-solving. Use AI to enhance your skills, not replace them.
3. Understand the โWhyโ Before the โHow
Before jumping into any project, take a moment to understand the problem and the technology behind it frontend, backend, APIs, databases, and infrastructure. When you understand why things work the way they do, the how becomes clearer.
4. Software Architecture is a Must
Whether you're working on small apps or large systems, knowing how to design clean, scalable, and maintainable architecture is key. Good code isn't just code that works. itโs code that works well under pressure, in teams, and over time.
5. Start Building Early Even If It's Messy
Donโt wait until you "know everything" before starting. Start small, make mistakes, break things, fix them thatโs where real learning happens. You grow by doing.
6.Consistency > Overload
Itโs not about spending 10 hours a day in front of a screen. Itโs about showing up every day with intention. A focused hour daily beats unfocused marathons. Momentum comes from habit, not hustle.
Currently, the resources are better, the tools are smarter, and the learning curve is smoother but the core principles remain the same: stay curious, build consistently, and keep improving.
You donโt have to know it all. You just have to start and keep going.
@edemy251
#experiences #seniors
When many people start learning to code, they often feel like they need to know everything upfront every syntax, every trick, every framework. So they hop from one tutorial to the next, thinking theyโre making progress, but still feeling stuck when trying to build something real.
Hereโs what truly makes the difference
1. Donโt Avoid the Docs
Documentation may seem intimidating at first, but itโs the most accurate and reliable source of truth. Tutorials are great for getting started, but docs are what help you go deeper and become confident.
2. Use AI Wisely Not Lazily
AI tools can boost your learning dramatically when used right. They help you understand code, debug smarter, and learn faster. But they canโt replace your thinking, reasoning, or problem-solving. Use AI to enhance your skills, not replace them.
3. Understand the โWhyโ Before the โHow
Before jumping into any project, take a moment to understand the problem and the technology behind it frontend, backend, APIs, databases, and infrastructure. When you understand why things work the way they do, the how becomes clearer.
4. Software Architecture is a Must
Whether you're working on small apps or large systems, knowing how to design clean, scalable, and maintainable architecture is key. Good code isn't just code that works. itโs code that works well under pressure, in teams, and over time.
5. Start Building Early Even If It's Messy
Donโt wait until you "know everything" before starting. Start small, make mistakes, break things, fix them thatโs where real learning happens. You grow by doing.
6.Consistency > Overload
Itโs not about spending 10 hours a day in front of a screen. Itโs about showing up every day with intention. A focused hour daily beats unfocused marathons. Momentum comes from habit, not hustle.
Currently, the resources are better, the tools are smarter, and the learning curve is smoother but the core principles remain the same: stay curious, build consistently, and keep improving.
You donโt have to know it all. You just have to start and keep going.
@edemy251
#experiences #seniors
โค1
Week 1 Day 3: HTML Forms ๐
Creating Forms to Collect Information
๐ Selam Campers! Welcome to Day 3 of Fullstack Summer Camp! Youโve already learned how to structure a page using
โพheadings
โพparagraphs
โพimages
โพlinks. Now itโs time to interact with your users โ and for that, we use something powerful: **Forms**!
โโโโโโโโโโโโโโโโโ
โโโโ ๐ง What is a Form in HTML?
A **form** is how we collect data from users on a website. Itโs like a digital paper form โ just like the ones you fill at school, clinics, or offices.
๐Real-life examples of forms:
- Login & registration pages
- Survey or feedback forms
- Online order checkout forms
- Assignment submissions
โโโโโโโโโโโโโโโโโ
โ
๐๏ธ <form> Tag โ The Form Container
All form elements go inside a <form> tag. <form>
<!-- form elements go here -->
</form>
This tells the browser, โEverything inside here is part of a single form.โ
โโโโโโโโโโโโโโโโโโ
๐ Common Input Types (with Examples)
Text Input โ For short answers like name
<label for="name">Name:</label>
<input type="text" id="name" name="name"> Email Input โ For collecting emails
<label for="email">Email:</label>
<input type="email"
id="email"
name="email"
placeholder="you@example.com"
required> Password Input โ Hides the characters
Textarea โ For long messages or comments<label for="password">Password:</label>
<input type="password" id="password" name="password">
Radio Buttons โ Pick one option only<label for="message">Your Message:</label><br>
<textarea id="message" name="message" rows="4" cols="30"></textarea>
Checkboxes โ Choose multiple options<p>Gender:</p>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
Dropdown (Select)<p>Skills:</p>
<input type="checkbox" id="html" name="skills" value="HTML">
<label for="html">HTML</label>
<input type="checkbox" id="css" name="skills" value="CSS">
<label for="css">CSS</label>
<label for="department">Department:</label>
<select id="department" name="department">
<option value="cs">Computer Science</option>
<option value="se">Software Engineering</option>
<option value="it">Information Technology</option>
</select>
Date Picker
<label for="dob">Date of Birth:</label>
<input type="date" id="dob" name="dob"> File Upload
<label for="photo">Upload your photo:</label>
<input type="file" id="photo" name="photo"> Submit Button โ To send the form
<input type="submit" value="Submit"> Reset Button โ To clear all fields
<input type="reset" value="Clear"> โโโโโโโโโโโโโโโโโโโ
๐ฆ Useful Attributes
โช๏ธ placeholder โ Shows hint inside input
<input placeholder="Enter your name">
โช๏ธ required โ Prevents empty submission
<input required>
โช๏ธ value โ Sets a default value
<input value="Addis Ababa">
โโโโโโโโโโโโโโโโโโ
๐ Optional: Grouping
Use <fieldset> to group related inputs and give the group a title using <legend>.
<fieldset>
<legend>Personal Info</legend>
<label for="fullName">Full Name:</label>
<input type="text" id="fullName">
</fieldset> โโโโโโโโโโโโโโโโโโโ
๐ Example โ Group Assignment Form
<h2>Group Assignment Submission</h2>
<form>
<label for="university">University Name:</label>
<input type="text" id="university" name="university"><br><br>
<label for="department">Department:</label>
<input type="text" id="department" name="department"><br><br>
<label for="group">Group Members:</label><br>
<textarea id="group" name="group" rows="3" cols="40"></textarea><br><br>
<label for="date">Submission Date:</label>
<input type="date" id="date" name="date"><br><br>
<input type="submit" value="Submit">
</form>๐ก Try it in your editor
โโโโโโโโโโโโโโโโโโโ
#Week1 #Day3 #Html #Forms #lesson
๐2
โ
Quick Recap:
โก <form> wraps the form
โกUse inputs like <input>, <textarea>, <select>
โกUse <label> for better accessibility
โกplaceholder, required, value make forms more useful
โกForms donโt do anything until you connect them with JavaScript or backend (coming soon!)
โโโโโโโโโโโโโโโโโ
๐ข Coming up next (Day 4):
Weโll explore HTML Tables (to organize data) and <div> elements (for layouts) โ super important for building real websites!
โก <form> wraps the form
โกUse inputs like <input>, <textarea>, <select>
โกUse <label> for better accessibility
โกplaceholder, required, value make forms more useful
โกForms donโt do anything until you connect them with JavaScript or backend (coming soon!)
โโโโโโโโโโโโโโโโโ
๐ข Coming up next (Day 4):
Weโll explore HTML Tables (to organize data) and <div> elements (for layouts) โ super important for building real websites!
<h3>Alpha Computer School</h3>
<h4>welcome to Alpha Computer School official website</h4>
<p>if you are interested in registering to our coding class, please fill out the following form</p>
<form>
<label id="name">full name:</label>
<input type="text" id="name" placeholder="eg Haregu Kebede Ayalew" required >
<br>
<p>Gender:</p>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<br><br>
<label id="age">Age:</label>
<input type="number" id="age" min="10" max="90">
<br><br>
<label id="email">email:</label>
<input type="email" id="email" placeholder=" example@gmail.com" required>
<br><br>
<label id="phone">Phone number:</label>
<select required>
<option>+221</option>
<option>+231</option>
<option>+241</option>
<option>+251</option>
<option>+261</option>
<option>+271</option>
<option>+281</option>
<option>+229</option>
</select>
<input type="number" id="phone" required>
<br> <br>
<label id="bd">Birth of date</label>
<input type="date" id="bd">
<br> <br>
<label id="experiance">experience level</label>
<select>
<option>beginner</option>
<option>intermediate </option>
<option>advanced</option>
</select>
<br>
<br>
<label id="language">which language do you want to learn</label>
<select>
<option>Html</option>
<option>Css </option>
<option>JavaScript</option>
<option>Python</option>
</select>
<br><br>
<label id="cv">CV:</label>
<input type="file" id="cv">
<br> <br>
<label id="essay">Your essay:</label><br>
<textarea id="essay" rows="10" cols="30"></textarea>
<br> <br>
<input type="submit">
<br>
<h4>welcome to Alpha Computer School official website</h4>
<p>if you are interested in registering to our coding class, please fill out the following form</p>
<form>
<label id="name">full name:</label>
<input type="text" id="name" placeholder="eg Haregu Kebede Ayalew" required >
<br>
<p>Gender:</p>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<br><br>
<label id="age">Age:</label>
<input type="number" id="age" min="10" max="90">
<br><br>
<label id="email">email:</label>
<input type="email" id="email" placeholder=" example@gmail.com" required>
<br><br>
<label id="phone">Phone number:</label>
<select required>
<option>+221</option>
<option>+231</option>
<option>+241</option>
<option>+251</option>
<option>+261</option>
<option>+271</option>
<option>+281</option>
<option>+229</option>
</select>
<input type="number" id="phone" required>
<br> <br>
<label id="bd">Birth of date</label>
<input type="date" id="bd">
<br> <br>
<label id="experiance">experience level</label>
<select>
<option>beginner</option>
<option>intermediate </option>
<option>advanced</option>
</select>
<br>
<br>
<label id="language">which language do you want to learn</label>
<select>
<option>Html</option>
<option>Css </option>
<option>JavaScript</option>
<option>Python</option>
</select>
<br><br>
<label id="cv">CV:</label>
<input type="file" id="cv">
<br> <br>
<label id="essay">Your essay:</label><br>
<textarea id="essay" rows="10" cols="30"></textarea>
<br> <br>
<input type="submit">
<br>
Assignment : watch this video on html.forms by bro codes.
https://youtu.be/2O8pkybH6po?si=LpdZ5EV8lEFoyECj
#Week1 #Day3 #Html #Forms #resources
https://youtu.be/2O8pkybH6po?si=LpdZ5EV8lEFoyECj
#Week1 #Day3 #Html #Forms #resources
YouTube
Learn HTML forms in 8 minutes ๐
HTML forms tutorial example explained
#HTML #forms #tutorial
#HTML #forms #tutorial
๐ชWeek 1 Day 3 Challenges: New Account
๐ฏ Your Mission: Build a โCreate New Accountโ Form
Now that youโve learned how forms work, itโs time to put your skills to the test!
Your task today is to create a simple but complete Account Creation Form like the ones we fill on social media or email signup pages.
๐ What to include in your form:
โค First Name
โค Last Name
โคgender
โค Phone Number
โค Date of Birth
โคcountry
โค Username
โค Email Address
โค Recovery Email
โค New Password with hint or strength note
โค Confirm Password
โคprofile picture
โค Terms and Conditions agreement
โค A submit button labeled as "Create Account"
โจ Bonus Tips:
- Use
- Use
- Make the required fields use
- You can group related inputs using
๐ธ When youโre done:
๐น Share a screenshot or the code in our group
๐น Give feedback to othersโ work if you can
๐น And hey โ invite a friend to join the Fullstack Summer Camp today!
Keep going โ you're learning real-world skills here. Stay focused, stay kind, and stay curious ๐
#Week1 #Day3 #Html #Forms #challenge
๐ฏ Your Mission: Build a โCreate New Accountโ Form
Now that youโve learned how forms work, itโs time to put your skills to the test!
Your task today is to create a simple but complete Account Creation Form like the ones we fill on social media or email signup pages.
๐ What to include in your form:
โค First Name
โค Last Name
โคgender
โค Phone Number
โค Date of Birth
โคcountry
โค Username
โค Email Address
โค Recovery Email
โค New Password with hint or strength note
โค Confirm Password
โคprofile picture
โค Terms and Conditions agreement
โค A submit button labeled as "Create Account"
โจ Bonus Tips:
- Use
placeholder to guide the user (e.g. placeholder="Enter your name") - Use
type="password" for password fields - Make the required fields use
required - You can group related inputs using
<fieldset> and <legend> if you want ๐ธ When youโre done:
๐น Share a screenshot or the code in our group
๐น Give feedback to othersโ work if you can
๐น And hey โ invite a friend to join the Fullstack Summer Camp today!
Keep going โ you're learning real-world skills here. Stay focused, stay kind, and stay curious ๐
#Week1 #Day3 #Html #Forms #challenge
๐1๐ฅ1
๐Week 1 Day 4: HTML Deep Dive โ Tables, Divs & Media
๐ป Organizing Data, Structuring Layouts & Embedding Content
๐ Selam Fullstack Campers! Today we bring together three powerful HTML techniques:
1๏ธโฃ Tables โ to display structured data
2๏ธโฃ Divs โ to group and organize sections
3๏ธโฃ Media โ to embed images, audio & video
#Week1 #Day4 #Html #TablesDivs #lesson
๐ป Organizing Data, Structuring Layouts & Embedding Content
๐ Selam Fullstack Campers! Today we bring together three powerful HTML techniques:
1๏ธโฃ Tables โ to display structured data
2๏ธโฃ Divs โ to group and organize sections
3๏ธโฃ Media โ to embed images, audio & video
#Week1 #Day4 #Html #TablesDivs #lesson
Lets start with Tables
Tables help us organize information like:
โ
School results
โ
Class schedules
โ
Market prices
โ
Contact lists โโโโโโโโโโโโโโโโโโโโโโโ
๐ช 1๏ธโฃ What Is a Table in HTML? A table in HTML is made of rows and columns, similar to Excel or paper tables.
๐ค Basic Structure: <table>
<tr>
<th>Item</th>
<th>Price</th>
</tr>
<tr>
<td>Injera</td>
<td>25 birr</td>
</tr>
</table>
โ Explanation:
<table> โ Wraps the whole table
<tr> (Table Row) โ Creates a new row
<th> (Table Header) โ Bold, centered by default
<td> (Table Data) โ Regular cell
โโโโโโโโโโโโโโโโโโโโโโโ
๐ ๏ธ 2๏ธโฃ Adding Borders
Tables look invisible by default. To make it visible, add:
<table border="1"> โ Pro Tip: You can also style it later with CSS. For now, border="1" is simple.
โโโโโโโโโโโโโโโโโโโโโโโ
๐ 3๏ธโฃ Multiple Rows & Columns
๐ค Example:
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>Department</th>
</tr>
<tr>
<td>Betelhem</td>
<td>22</td>
<td>Computer Science</td>
</tr>
<tr>
<td>Abebe</td>
<td>21</td>
<td>Accounting</td>
</tr>
<tr>
<td>Meron</td>
<td>20</td>
<td>Law</td>
</tr>
</table> โโโโโโโโโโโโโโโโโโโโโโโ
๐ 4๏ธโฃ Rowspan & Colspan โ Merging Cells
Sometimes we need to combine cells.
โค Rowspan = Join cells vertically
โค Colspan = Join cells horizontally
๐ค Example:
<table border="1">
<tr>
<th rowspan="2">Name</th>
<th colspan="2">Contact</th>
</tr>
<tr>
<th>Email</th>
<th>Phone</th>
</tr>
<tr>
<td>Megersa</td>
<td>megersa@gmail.com</td>
<td>0912xxxxxx</td>
</tr>
</table> โโโโโโโโโโโโโโโโโโโโโโ
๐ฏ Summary:
โ <table> โ Creates a table
โ <tr> โ Row
โ <th> โ Heading cell
โ <td> โ Normal cell
โ rowspan, colspan โ Merge cells
โโโโโโโโโโโโโโโโโโโโโโโ
HTML Layout with div, span, class & id
Now let's focus on how developers **organize content** using special HTML tools:
โ
<div> โ Block containers
โ
<span> โ Inline containers
โ
class & id โ For styling and controlling specific elements โโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ 1๏ธโฃ What Is <div>?
<div> stands for โdivision.โ Itโs like a big invisible box that holds content inside it.
โ
Purpose: - Group related content - Make layout blocks (header, sidebar, footer)
โค Simple Example: <div>
<h1>My Profile</h1>
<p>I love fullstack development!</p>
<img src="myphoto.jpg" alt="My photo">
</div>
โ Without CSS, it
wonโt show borders or color โ it just structures things.
โโโโโโโโโโโโโโโโโโโโโโโ
๐ค 2๏ธโฃ What Is <span>?
It is like <div>
, but smaller. Itโs used for inline content, like a single word.
โ Purpose:
Highlight a word or phrase
Apply styles to part of a sentence
โค Example:
<p>My favorite color is <span>blue</span>.</p> โโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ 3๏ธโฃ class and id โ Adding Labels to HTML Elements
โ class:
Reusable name for many elements
You can style all elements with the same class
โ id:
Unique name for one specific element only
Used for targeting that one thing
โโโโโโโโโโโโโโโโโโโโโโโ
๐ 4๏ธโฃ Real-Life Examples
โค Using class with div:
<div class="profile-box">
<h2>Betelhem</h2>
<p>Fullstack Developer</p>
</div>
<div class="profile-box">
<h2>Abebe</h2>
<p>UI Designer</p>
</div> Both divs share the same class "profile-box." Later in CSS, you can give all profile-box divs the same color or size.
โค Using id with span:
<p>Welcome, <span id="user-name">Kebedech</span>!</p>
Later with CSS or JavaScript, you can target only "Kebedech" by using its id.
โโโโโโโโโโโโโโโโโโโโโโโ
๐ ๏ธ 5๏ธโฃ Combining div, span, class, and id Together
โ Example Layout:
<div class="card">
<h1 class="title">Haregu's Coffee</h1>
<p>Open: <span class="highlight">8 AM โ 10 PM</span></p>
<p id="special-message">Todayโs special: Macchiato!</p>
</div> โค Explanation:
card โ applies to the whole block
title โ applies to all titles
highlight โ styles just the time
special-message โ styles only todayโs special
โโโโโโโโโโโโโโโโโโโโโโโ
๐ก 6๏ธโฃ Why Does This Matter?
โ Layout:
Div and span help you organize pages cleanly
โ Styling:
class and id let CSS and JavaScript target specific parts
โ Real Websites:
Every modern website uses this method!
โโโโโโโโโโโโโโโโโโโโโโโ
HTML Media โ Images, Audio, and Video
And now we learn how to add **media content** to websites:
โ
Images (photos, logos, icons)
โ
Audio (music, podcasts)
โ
Video (lessons, intros) โโโโโโโโโโโโโโโโโโโโโโโ
๐ 1๏ธโฃ Adding Images with <img>
โ
Basic Syntax: <img src="image-url" alt="Alternative Text">
src โ Path or link to the image file
alt โ Text description if image doesn't load
โ Example:
<img src="https://placekitten.com/300/200" alt="Cute kitten image"> โ Notes:
Always use alt for accessibility (for blind users or if image is missing).
Supported formats: .jpg, .png, .gif, .webp
โโโโโโโโโโโโโโโโโโโโโโโ
๐ 2๏ธโฃ Controlling Image Size
You can control width and height using attributes:
<img src="photo.jpg" alt="My photo" width="300" height="200"> โ Or better: use CSS for full control (coming next week).
โโโโโโโโโโโโโโโโโโโโโโโ
๐ง 3๏ธโฃ Embedding Audio
โ Basic Syntax:
<audio controls> <source src="audio-file.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> โ Important:
Always include controls so users can play, pause, and control volume.
Supported formats: .mp3, .ogg, .wav
โ Example:
<audio controls> <source src="buna-music.mp3" type="audio/mpeg"> </audio> โโโโโโโโโโโโโโโโโโโโโโโ
๐ฅ 4๏ธโฃ Embedding Video
โ Basic Syntax:
<video
width="320"
height="240"
controls>
<source src="video-file.mp4"
type="video/mp4">
Your browser does not support the video tag. </video> โ Example:
<video width="500" height="300" controls> <source src="intro-video.mp4" type="video/mp4"> </video> โ Notes:
Use width and height to control size.
formats: .mp4 (most common), .webm, .ogg
โโโโโโโโโโโโโโโโโโโโโโโ
๐ 5๏ธโฃ Embedding External Media (YouTube, SoundCloud)
Sometimes you want to embed a YouTube video directly:
โ Example:
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
โโโโโโโโโโโโโโโโโโโโโโโ
๐ 6๏ธโฃ Real-World Example:
Music Cafรฉ Website
<!DOCTYPE html>
<html>
<head>
<title>Music Cafรฉ</title>
</head>
<body>
<h1>Welcome to Music Cafรฉ</h1>
<img src="coffee.jpg" alt="Cup of coffee" width="300">
<h2>Now Playing</h2>
<audio controls> <source src="ethiopian-jazz.mp3" type="audio/mpeg"> </audio>
<h2>Watch Our Story</h2>
<video width="500" controls> <source src="cafe-tour.mp4" type="video/mp4"> </video>
</body>
</html> โโโโโโโโโโโโโโโโโโโโโโโ
๐ก Why Media Matters in Websites:
โ Makes pages more attractive
โ Engages visitors
โ Shares information in visual/audio form
โโโโโโโโโโโโโโโโโโโโโโโ
Assignment
Div....
https://youtu.be/WbnCll6vvw4?si=P4jd-VYqA3E6EysY
Tables...
https://youtu.be/aNC6LY34yVM?si=InjX1lOFE-Q0QVDH
Videos.....
https://youtu.be/Ki_0iES2cGI?si=dofFKUTrgPs7Ntcd
Audio....
https://youtu.be/UHjTXLAS4tU?si=2MCT0mkXgACRC8CY
#Week1 #Day4 #Html #TablesDivs #resources
Div....
https://youtu.be/WbnCll6vvw4?si=P4jd-VYqA3E6EysY
Tables...
https://youtu.be/aNC6LY34yVM?si=InjX1lOFE-Q0QVDH
Videos.....
https://youtu.be/Ki_0iES2cGI?si=dofFKUTrgPs7Ntcd
Audio....
https://youtu.be/UHjTXLAS4tU?si=2MCT0mkXgACRC8CY
#Week1 #Day4 #Html #TablesDivs #resources
YouTube
Learn HTML span & div in 4 minutes! ๐
#HTML #course #tutorial
HTML span div tutorial example explained
HTML span div tutorial example explained