Day 1 โ๏ธโ๏ธโ๏ธ
แจแแฃแแฝแแ output comment แแญ แ แตแแแกแแ explanation แจแณแฝ แณแแแแฝแ แแญ แซแแฝแแ comment แแญ แ แญแแ
@AbWebDeveloper
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Website</title>
</head>
<body>
<h1>Web Development Courses</h1>
<h2>About Me</h2>
<p>My name is Amare Sad,and I am learning html and css.</p>
<h2>My Skills</h2>
<h3>HTML</h3>
<p>Now, I am learning this course.</p>
<h3>CSS</h3>
<p>For future,I will learn this course.</p>
</body>
</html>
แจแแฃแแฝแแ output comment แแญ แ แตแแแกแแ explanation แจแณแฝ แณแแแแฝแ แแญ แซแแฝแแ comment แแญ แ แญแแ
@AbWebDeveloper
โค8
Example Explained
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
The meta view part tells the browser size of the page display correctly on different screen size๐ป ๐คณ .
The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> to <h6> element defines a heading from large to small
<h1> is the largest heading
<h6> is the smallest heading
The <p> element defines a paragraph
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
The meta view part tells the browser size of the page display correctly on different screen size๐ป ๐คณ .
The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> to <h6> element defines a heading from large to small
<h1> is the largest heading
<h6> is the smallest heading
The <p> element defines a paragraph
๐ป Day 2: HTML Basics โ๏ธโ๏ธ
๐ Hello everyone! Welcome back to Day 2 of our HTML journey.
First let's define what HTML is?
HTML stands for Hyper Text Markup Language.
Hyper= means a link that used to connect one website to another website.
Text =means as u know it's any text that display on the screen.
Markup Language =means a language that tells to understand the browser this is title,img,heading and etc..
๐ก Think about this: HTML is like the skeleton of a human body. It gives structure to a website.
HTML Element is everything from opening tag(<) to closing tag(>), including the content between them.
Structure of an HTML Element is๐
๐Most HTML Elements have opening and closing tag.
๐Some HTML Elements are Empty(void). โ๏ธThey don't have content.
such as๐๐
<br>,<hr>,<img>,<input>,<meta>,<link> etc...
Nested Elements๐๐Elements can contain other html element.
Example:
Another Example
Welcome
Hello Everyone๐
๐ก Remember: A website is built by putting HTML elements inside other elements.
โ Block Elements
๐ starts on a new line and takes the full available width.
Examples ๐๐
<div>, <p>, <h1> to <h6>, <section>, <article>, <header>, <footer>, <nav>, <main>, <form>, etc...
๐For now just know the names only for future we'll see them one by one.
โ Inline Elements
๐ stay on the same line.
๐Don't start on a new line.
Examples๐๐
<strong>, <span>, <a>, <img>, <label>, <input>, <em> etc..
โ Semantic Elements
๐๐ describe the meaning of their content, making page easier to understand for developers, browsers, and search engines.
Examples๐๐
<header>, <nav>, <main>, <section>, <article>, <aside>, <footer> etc...
โธ Non-Semantic Elements
๐๐ They don't describe what they contains.
๐They are useful for layout and styling, but do not tell u the purpose of the content.
Examples ๐๐
<div>, <span>
Important Note โญ
HTML Elements are not case sensitive.
<H1> Content </H1> and <h1> content </h1> are the same, but Most professional developers ๐ฉโ๐ป๐จโ๐ป always use lowercase.
Why?
Because lowercase makes code cleaner and follows professional coding standards.
๐ฏ Day 2 Practice
Before moving to Day 3, answer these questions :
1๏ธโฃ What is an HTML Element?
2๏ธโฃ What is the difference between Block and Inline elements?
3๏ธโฃ Give 3 examples of Semantic Elements.
4๏ธโฃ Is <br> a void element or not?
Write your answers in the comments โค๏ธ
If you like it, give this a reaction. โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 2 of our HTML journey.
First let's define what HTML is?
HTML stands for Hyper Text Markup Language.
Hyper= means a link that used to connect one website to another website.
Text =means as u know it's any text that display on the screen.
Markup Language =means a language that tells to understand the browser this is title,img,heading and etc..
๐ก Think about this: HTML is like the skeleton of a human body. It gives structure to a website.
#HTML Element
HTML Element is everything from opening tag(<) to closing tag(>), including the content between them.
Structure of an HTML Element is๐
<tagname>Content </tagname>
๐Most HTML Elements have opening and closing tag.
๐Some HTML Elements are Empty(void). โ๏ธThey don't have content.
such as๐๐
<br>,<hr>,<img>,<input>,<meta>,<link> etc...
Nested Elements๐๐Elements can contain other html element.
Example:
<p> I like to learn๐ฅฐ <strong>HTML</strong></p>
Another Example
<h1>Welcome </h1>
<p>Hello Everyone๐</p>
</div>
Welcome
Hello Everyone๐
๐ก Remember: A website is built by putting HTML elements inside other elements.
Types of HTML Elements
โ Block Elements
๐ starts on a new line and takes the full available width.
Examples ๐๐
<div>, <p>, <h1> to <h6>, <section>, <article>, <header>, <footer>, <nav>, <main>, <form>, etc...
๐For now just know the names only for future we'll see them one by one.
โ Inline Elements
๐ stay on the same line.
๐Don't start on a new line.
Examples๐๐
<strong>, <span>, <a>, <img>, <label>, <input>, <em> etc..
โ Semantic Elements
๐๐ describe the meaning of their content, making page easier to understand for developers, browsers, and search engines.
Examples๐๐
<header>, <nav>, <main>, <section>, <article>, <aside>, <footer> etc...
โธ Non-Semantic Elements
๐๐ They don't describe what they contains.
๐They are useful for layout and styling, but do not tell u the purpose of the content.
Examples ๐๐
<div>, <span>
Important Note โญ
HTML Elements are not case sensitive.
Why?
Because lowercase makes code cleaner and follows professional coding standards.
๐ฏ Day 2 Practice
Before moving to Day 3, answer these questions :
1๏ธโฃ What is an HTML Element?
2๏ธโฃ What is the difference between Block and Inline elements?
3๏ธโฃ Give 3 examples of Semantic Elements.
4๏ธโฃ Is <br> a void element or not?
Write your answers in the comments โค๏ธ
Next day we'll see HTML Attributes ๐
If you like it, give this a reaction. โค๏ธ
@AbWebDeveloper
โค9๐ฅ1๐ฅฐ1
๐ป Day 3: HTML Basics โ HTML Attributes ๐๐ฅ
๐ Hello everyone! Welcome back to Day 3 of our HTML journey. ๐
Today we will learn one of the most important concepts in HTML:
๐ท๏ธ HTML Attributes
๐ค What are HTML Attributes?
HTML Attributes give extra information about an HTML element.
Think of an HTML element as a person ๐ง and attributes as the details about that person:
๐ค Person โ HTML Element
๐ Details (name, age, address, etc.) โ HTML Attributes
Example:
A person:
An HTML element:
Attributes give more details:
Here:
๐ General Syntax of Attributes
The basic structure is:
Example:
Here:
๐ผ๏ธ Example 1: Image Attributes
Let's understand:
โ src Attribute
It tells the browser:
โก๏ธ "Which image should I display?"
Example:
The browser searches for the image named profile.jpg.
โก alt Attribute
It describes the image if the image cannot be displayed.
Example:
If the image fails to load, the browser displays:
โ It also helps screen readers for accessibility.
๐ Example 2: Link Attribute
Here:
href Attribute
Example:
Meaning:
โก๏ธ "When the user clicks this link, open Google."
โ ๏ธ Important Note
Attributes are always written inside the opening tag.
โ Correct:
โ Wrong:
๐ฅ Multiple Attributes
One HTML element can have many attributes.
Example:
This image has four attributes:
Remember:
โ Attributes are separated by spaces.
๐ก Attribute Naming Rules
Attributes are not case sensitive.
Example:
and
Both work.
But professional developers usually write attributes in lowercase:
โ Recommended:
โ๏ธ Boolean Attributes
Some attributes do not need a value.
They only need to exist.
Example:
Here:
It means:
โก๏ธ "This field must be filled before submitting the form."
Example:
The user cannot submit the form without entering a name.
โญ Other Boolean Attributes
Some common Boolean attributes are:
โ
Example:
โ
Example:
โ
Example:
โ
Example:
โ
Example:
โ
Example:
โ
Example:
๐ Global Attributes
Global attributes are attributes that can be used on almost every HTML element.
โ ID Attribute (#๏ธโฃ)
The
Example:
Rules:
โ Every element should have a unique id.
โ Two elements should not share the same id.
Wrong:
Correct:
โก Class Attribute (๐ฆ)
The
Example:
Here both paragraphs belong to the same group.
Unlike
โ Many elements can have the same class.
๐ Hello everyone! Welcome back to Day 3 of our HTML journey. ๐
Today we will learn one of the most important concepts in HTML:
๐ท๏ธ HTML Attributes
๐ค What are HTML Attributes?
HTML Attributes give extra information about an HTML element.
Think of an HTML element as a person ๐ง and attributes as the details about that person:
๐ค Person โ HTML Element
๐ Details (name, age, address, etc.) โ HTML Attributes
Example:
A person:
Name: Amare
Age: 19
Country: Ethiopia
An HTML element:
<img>
Attributes give more details:
<img src="profile.jpg" alt="Amare's photo">
Here:
src โ tells which image to displayalt โ describes the image๐ General Syntax of Attributes
The basic structure is:
<tagname attribute="value">
Content
</tagname>
Example:
<p title="My paragraph">
Hello World
</p>
Here:
<p> โ elementtitle โ attribute"My paragraph" โ attribute value๐ผ๏ธ Example 1: Image Attributes
<img src="profile.jpg" alt="Ben's photo">
Let's understand:
โ src Attribute
src means source.It tells the browser:
โก๏ธ "Which image should I display?"
Example:
src="profile.jpg"
The browser searches for the image named profile.jpg.
โก alt Attribute
alt means alternative text.It describes the image if the image cannot be displayed.
Example:
alt="Ben's photo"
If the image fails to load, the browser displays:
Ben's photo
โ It also helps screen readers for accessibility.
๐ Example 2: Link Attribute
<a href="https://www.google.com">
Go to Google
</a>
Here:
href Attribute
href tells the browser where the link goes.Example:
href="https://www.google.com"
Meaning:
โก๏ธ "When the user clicks this link, open Google."
โ ๏ธ Important Note
Attributes are always written inside the opening tag.
โ Correct:
<img src="photo.jpg">
โ Wrong:
<img>
src="photo.jpg"
</img>
๐ฅ Multiple Attributes
One HTML element can have many attributes.
Example:
<img src="profile.jpg" alt="My_photo" width="300" height="200">
This image has four attributes:
srcaltwidthheightRemember:
โ Attributes are separated by spaces.
๐ก Attribute Naming Rules
Attributes are not case sensitive.
Example:
<img SRC="photo.jpg">
and
<img src="photo.jpg">
Both work.
But professional developers usually write attributes in lowercase:
โ Recommended:
<img src="photo.jpg">
โ๏ธ Boolean Attributes
Some attributes do not need a value.
They only need to exist.
Example:
<input type="text" required>
Here:
required is a Boolean attribute.It means:
โก๏ธ "This field must be filled before submitting the form."
Example:
<form>
<label>Name:</label>
<input type="text" required>
<button>Submit</button>
</form>
The user cannot submit the form without entering a name.
โญ Other Boolean Attributes
Some common Boolean attributes are:
โ
disabled โ disables an elementExample:
<input type="text" disabled>
โ
checked โ selects a checkbox/radio automaticallyExample:
<input type="checkbox" checked>
โ
readonly โ user can see but cannot editExample:
<input type="text" readonly>
โ
selected โ selects an option automaticallyExample:
<option selected>Ethiopia</option>
โ
autofocus โ automatically focuses an inputExample:
<input type="text" autofocus>
โ
multiple โ allows multiple selectionsExample:
<input type="file" multiple>
โ
hidden โ hides an elementExample:
<p hidden>This is hidden</p>
๐ Global Attributes
Global attributes are attributes that can be used on almost every HTML element.
โ ID Attribute (#๏ธโฃ)
The
id attribute gives an element a unique name.Example:
<h1 id="home">
Welcome
</h1>
Rules:
โ Every element should have a unique id.
โ Two elements should not share the same id.
Wrong:
<p id="text">Hello</p>
<p id="text">World</p>
Correct:
<p id="first">Hello</p>
<p id="second">World</p>
โก Class Attribute (๐ฆ)
The
class attribute groups elements together.Example:
<p class="text">
Paragraph 1
</p>
<p class="text">
Paragraph 2
</p>
Here both paragraphs belong to the same group.
Unlike
id:โ Many elements can have the same class.
๐ฅ6โค2
โข Title Attribute (๐ฌ)
The
Example:
When you hover:
A small message appears.
โฃ Style Attribute ๐จ
The
Example:
It changes the paragraph color.
โ ๏ธ We will study CSS deeply later.
โค Lang Attribute ๐
The
Example:
Meaning:
The webpage language is English.
Other examples:
Amharic language.
๐ฏ Summary of Day 3
Today we learned:
โ What HTML Attributes are
โ Attribute syntax
โ src and alt attributes
โ href attribute
โ Multiple attributes
โ Boolean attributes
โ Global attributes
โ id, class, title, style, lang
Next lesson ๐:
Have a great day! ๐๐ฅ
@AbWebDeveloper
The
title attribute shows extra information when you hover your mouse.Example:
<p title="This is a paragraph">
Move your mouse here.
</p>
When you hover:
A small message appears.
โฃ Style Attribute ๐จ
The
style attribute adds CSS directly to an element.Example:
<p style="color:blue;">
This is blue text
</p>
It changes the paragraph color.
โ ๏ธ We will study CSS deeply later.
โค Lang Attribute ๐
The
lang attribute tells the browser the language of the webpage.Example:
<html lang="en">
Meaning:
The webpage language is English.
Other examples:
<html lang="am">
Amharic language.
๐ฏ Summary of Day 3
Today we learned:
โ What HTML Attributes are
โ Attribute syntax
โ src and alt attributes
โ href attribute
โ Multiple attributes
โ Boolean attributes
โ Global attributes
โ id, class, title, style, lang
Next lesson ๐:
๐ HTML Headings (h1 โ h6)
Have a great day! ๐๐ฅ
@AbWebDeveloper
โค6๐ฅ1
แจ2026 แ แแ แแแซ ๐๐๐๐๐ แแฌ แญแ แแแแ....แจแแ แฐแแ แแน?
Argentina ๐ฆ๐ทโค or Spain ๐ช๐ธ ๐
แ แแแ แแแณแฝแแ comment แแญ แ แตแแแก แ แตแญแญแ แซแแ แฐแ แฝแแแต แ แแ๐๐
@AbWebDeveloper
Argentina ๐ฆ๐ทโค or Spain ๐ช๐ธ ๐
แ แแแ แแแณแฝแแ comment แแญ แ แตแแแก แ แตแญแญแ แซแแ แฐแ แฝแแแต แ แแ๐๐
@AbWebDeveloper
โค4๐3
๐ป Day 4( part 1): HTML Basics โ HTML Headings ๐๐ฅ
๐ Hello everyone! Welcome back to Day 4 of our HTML journey. ๐
Today we'll learn one of the most commonly used HTML elements:
๐ HTML Headings
๐ค What are HTML Headings?
HTML headings are used to create titles and subtitles on a webpage.
Think of a book ๐.
Every book has:
๐ Book Title
๐ Chapter Title
๐ Section Title
A webpage works the same way.
HTML provides 6 heading levels.
๐ HTML Heading Tags
There are 6 heading tags, from h1 to h6.
๐ Heading Size
The browser displays headings in different sizes.
Remember:
๐ The number gets bigger...
๐
The text size gets smaller.
โจ Example
๐ก Best Analogy
Imagine a school. ๐ซ
๐จโ๐ซ Principal โ
๐ฉโ๐ซ Vice Principal โ
๐จโ๐ผ Department Head โ
๐จโ๐ซ Teacher โ
๐จโ๐ Student Leader โ
๐ฆ Student โ
Just like school has different levels,
HTML headings also have different levels.
โญ Important Rule
๐ There should normally be only one
Why?
Because
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 4 of our HTML journey. ๐
Today we'll learn one of the most commonly used HTML elements:
๐ HTML Headings
๐ท๏ธ HTML Headings
๐ค What are HTML Headings?
HTML headings are used to create titles and subtitles on a webpage.
Think of a book ๐.
Every book has:
๐ Book Title
๐ Chapter Title
๐ Section Title
A webpage works the same way.
HTML provides 6 heading levels.
๐ HTML Heading Tags
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
There are 6 heading tags, from h1 to h6.
๐ Heading Size
The browser displays headings in different sizes.
<h1> โ Largest
<h2>
<h3>
<h4>
<h5>
<h6> โ Smallest
Remember:
๐ The number gets bigger...
๐
The text size gets smaller.
โจ Example
<h1>My Website</h1>
<h2>About Me</h2>
<h3>My Hobbies</h3>
<h4>Football</h4>
<h5>My Favorite Team</h5>
<h6>Contact</h6>
The browser displays:
My Website
About Me
My Hobbies
Football
My Favorite Team
Contact
๐ก Best Analogy
Imagine a school. ๐ซ
๐จโ๐ซ Principal โ
<h1>๐ฉโ๐ซ Vice Principal โ
<h2>๐จโ๐ผ Department Head โ
<h3>๐จโ๐ซ Teacher โ
<h4>๐จโ๐ Student Leader โ
<h5>๐ฆ Student โ
<h6>Just like school has different levels,
HTML headings also have different levels.
โญ Important Rule
๐ There should normally be only one
<h1> on a webpage.Why?
Because
<h1> is the main title of the page.@AbWebDeveloper
โค6
๐ป Day 4 (Part 2): HTML Basics โ HTML Paragraph ๐๐ฅ
Almost every website contains paragraphs because they are used to display normal text such as descriptions, articles, blog posts, and information.
๐ค What is an HTML Paragraph?
An HTML paragraph is used to write normal text on a webpage.
The paragraph element is represented by the
๐ Best Analogy ๐๐
Imagine you're reading a newspaper. ๐ฐ
It contains:
๐ฐ Headline โ Like an HTML Heading (
๐ Story or Information โ Like an HTML Paragraph (
Or think about a book. ๐
๐ Chapter Title โ Heading
๐ Explanation under the title โ Paragraph
HTML works exactly the same way.
๐ General Syntax
๐จโ๐ป Example 1
Output ๐
Welcome to my first website.
The browser displays the text as a paragraph.
๐จโ๐ป Example 2
The browser displays all of this inside one paragraph.
๐ Multiple Paragraphs
You can create as many paragraphs as you want.
Example ๐๐
Each paragraph appears on a new line with some space between them.
โ ๏ธ Important Note
The
Example:
The browser automatically separates them.
You don't need to add empty lines in your HTML code.
โ Extra Important Note
Even if you write many spaces inside a paragraph like this:
The browser displays:
๐ HTML ignores extra spaces.
๐ What About Enter (New Line)?
Look at this code:
Output:
The browser ignores the Enter key inside a paragraph.
๐ If you want a new line, you'll learn the
๐ป Practice Challenge ๐ฅ
Create a webpage that contains:
โ One paragraph introducing yourself.
Example:
Your name
Your country
Your dream job
Your favorite hobby
Try writing it by yourself and share on comment ๐
@AbWebDeveloper
๐ HTML Paragraph
Almost every website contains paragraphs because they are used to display normal text such as descriptions, articles, blog posts, and information.
๐ค What is an HTML Paragraph?
An HTML paragraph is used to write normal text on a webpage.
The paragraph element is represented by the
<p> tag.๐ Best Analogy ๐๐
Imagine you're reading a newspaper. ๐ฐ
It contains:
๐ฐ Headline โ Like an HTML Heading (
<h1>)๐ Story or Information โ Like an HTML Paragraph (
<p>)Or think about a book. ๐
๐ Chapter Title โ Heading
๐ Explanation under the title โ Paragraph
HTML works exactly the same way.
๐ General Syntax
<p>
Your text goes here.
</p>
๐จโ๐ป Example 1
<p>Welcome to my first website.</p>
Output ๐
Welcome to my first website.
The browser displays the text as a paragraph.
๐จโ๐ป Example 2
<p>
Hello everyone!
My name is Amare.
I am learning HTML.
</p>
The browser displays all of this inside one paragraph.
๐ Multiple Paragraphs
You can create as many paragraphs as you want.
Example ๐๐
<p>I love HTML.</p>
<p>I practice coding every day.</p>
<p>My dream is to become a Web Developer.</p>
Each paragraph appears on a new line with some space between them.
โ ๏ธ Important Note
The
<p> element automatically leaves space (margin) above and below each paragraph.Example:
<p>Paragraph One</p>
<p>Paragraph Two</p>
The browser automatically separates them.
You don't need to add empty lines in your HTML code.
โ Extra Important Note
Even if you write many spaces inside a paragraph like this:
<p>Hello World!</p>
The browser displays:
Hello World!
๐ HTML ignores extra spaces.
๐ What About Enter (New Line)?
Look at this code:
<p>
Hello
World
</p>
Output:
Hello World
The browser ignores the Enter key inside a paragraph.
๐ If you want a new line, you'll learn the
<br> tag in the next lessons.๐ป Practice Challenge ๐ฅ
Create a webpage that contains:
โ One paragraph introducing yourself.
Example:
Your name
Your country
Your dream job
Your favorite hobby
Try writing it by yourself and share on comment ๐
@AbWebDeveloper
โค6
๐ป Day 5: HTML Basics ๐
๐๐ Hello everyone! Welcome back to Day 5 of our HTML journey.
Today we're going to learn:
๐ค What is HTML Text Formatting?
HTML Text Formatting is used to change the appearance or importance of text.
๐ฏ Best Analogy ๐๐
Imagine you're writing notes for an exam. ๐
Important words โ Bold
New vocabulary โ Italic
Very important sentence โ Highlighted
Wrong answer โCrossed out
HTML lets us do exactly that on a webpage.
๐ General Syntax
Example:
โ Bold Text (
The
Example๐๐
Output:
Welcome to HTML
๐ Use it when you simply want text to look bold.
โก Strong Text (
The
Example๐๐
Output:
Important Notice
๐ค What's the difference between
Professional developers usually use
โข Italic Text (
The
Example๐๐
Output:
Hello Students
โฃ Emphasized Text (
The
Example๐๐
Output:
Please read carefully.
Difference
โค Marked Text (
The
Example๐๐
Output:
HTML is very easy to learn.
It looks like using a yellow highlighter in your notebook.
โฅ Small Text (
The
Example๐๐
Output:
Terms and Conditions Apply.
โฆ Deleted Text (
The
Example๐๐
Output:
Price:$100 $80
It is commonly used for discounts.
โง Inserted Text (
The
Example๐๐
Output:
New Chapter Added
โจ Subscript Text (
The
Example๐๐
Output:
HโO
Mostly used in Chemistry formulas.
โฉ Superscript Text (
The
Example๐๐
Output:
xยฒ
Mostly used in Mathematics.
โ ๏ธ Important Notes
โ HTML formatting elements help make webpages easier to read.
โ Some elements only change appearance (
โ Some elements also add meaning (
Coding Challenge ๐ป
Create a webpage that includes:
โ A bold title
โ An important warning using
โ One italic sentence
โ One highlighted word
โ A discounted price using
โ The chemical formula HโO
โ The mathematical expression xยฒ
Try writing the code yourself and share on comment. ๐ช
@AbWebDeveloper
๐๐ Hello everyone! Welcome back to Day 5 of our HTML journey.
Today we're going to learn:
โจ HTML Text Formatting
๐ค What is HTML Text Formatting?
HTML Text Formatting is used to change the appearance or importance of text.
๐ฏ Best Analogy ๐๐
Imagine you're writing notes for an exam. ๐
Important words โ Bold
New vocabulary โ Italic
Very important sentence โ Highlighted
Wrong answer โ
HTML lets us do exactly that on a webpage.
๐ General Syntax
<tagname>Your Text</tagname>
Example:
<b>Hello World</b>
Types of HTML Text-Formatting
โ Bold Text (
<b>)The
<b> element makes text bold.Example๐๐
<b>Welcome to HTML</b>
Output:
Welcome to HTML
๐ Use it when you simply want text to look bold.
โก Strong Text (
<strong>)The
<strong> element also makes text bold.Example๐๐
<strong>Important Notice</strong>
Output:
Important Notice
๐ค What's the difference between
<b> and <strong>?<b> โ Only changes the appearance.<strong> โ Tells the browser the text is important.Professional developers usually use
<strong> when the text is important.โข Italic Text (
<i>)The
<i> element makes text italic.Example๐๐
<i>Hello Students</i>
Output:
Hello Students
โฃ Emphasized Text (
<em>)The
<em> element also makes text italic.Example๐๐
<em>Please read carefully.</em>
Output:
Please read carefully.
Difference
<i> โ Just italic.<em> โ Italic + emphasizes the importance of the text.โค Marked Text (
<mark>)The
<mark> element highlights text.Example๐๐
<p>HTML is <mark>very easy</mark> to learn.</p>
Output:
HTML is very easy to learn.
It looks like using a yellow highlighter in your notebook.
โฅ Small Text (
<small>)The
<small> element displays smaller text.Example๐๐
<small>Terms and Conditions Apply.</small>
Output:
Terms and Conditions Apply.
โฆ Deleted Text (
<del>)The
<del> element shows deleted text with a line through it.Example๐๐
<p>Price: <del>$100</del> $80</p>
Output:
Price:
It is commonly used for discounts.
โง Inserted Text (
<ins>)The
<ins> element underlines inserted text.Example๐๐
<ins>New Chapter Added</ins>
Output:
New Chapter Added
โจ Subscript Text (
<sub>)The
<sub> element displays text slightly below the normal line.Example๐๐
H<sub>2</sub>O
Output:
HโO
Mostly used in Chemistry formulas.
โฉ Superscript Text (
<sup>)The
<sup> element displays text above the normal line.Example๐๐
x<sup>2</sup>
Output:
xยฒ
Mostly used in Mathematics.
โ ๏ธ Important Notes
โ HTML formatting elements help make webpages easier to read.
โ Some elements only change appearance (
<b>, <i>).โ Some elements also add meaning (
<strong>, <em>).Coding Challenge ๐ป
Create a webpage that includes:
โ A bold title
โ An important warning using
<strong>โ One italic sentence
โ One highlighted word
โ A discounted price using
<del>โ The chemical formula HโO
โ The mathematical expression xยฒ
Try writing the code yourself and share on comment. ๐ช
@AbWebDeveloper
โค7
๐ป Day 6: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 6 of our HTML journey. ๐
Today we're going to learn one of the most useful HTML elements:
Have you ever clicked on a text like "Go to Google" or "Watch on YouTube" and it took you to another webpage?
That's exactly what HTML Links do!
๐ค What is an HTML Link?
An HTML Link is used to connect one webpage to another.
When users click a link, the browser opens another webpage, website, file, email, or even another section of the same page.
๐ Best Analogy ๐๐๐
Imagine you're in a big city. ๐๏ธ
There are many places:
๐ Home
๐ซ School
๐ฅ Hospital
๐ Supermarket
How do you travel from one place to another?
๐ By using roads.
An HTML Link is like a road.
It connects one webpage to another.
Without links, websites would be like cities with no roads! ๐ซ๐ฃ๏ธ
๐ HTML Link Syntax
Let's break it down.
๐ง Understanding Each Part
The
It is used to create hyperlinks.
Example:
Without an
It tells the browser where the link should go.
Example:
Meaning:
โก๏ธ "Open Google's website when clicked."
The text between the opening and closing tags is called the Link Text.
Example:
This is what users see and click.
โ Complete Example
๐ Output
Go to Google
When you click it, the browser opens Google's website.
๐ Another Example
Output:
Visit YouTube
๐ Opening a Link in a New Tab
Sometimes we don't want users to leave our website.
Instead, we open the link in a new browser tab.
We use the
Example:
๐ค What does
It tells the browser:
โก๏ธ "Open this link in a new browser tab."
Without it:
The current page is replaced.
With it:
A new tab opens.
๐ Example
๐ง Creating an Email Link
You can even create a link that opens the user's email app.
Example:
When clicked, the default email application opens.
๐ Creating a Phone Link
On smartphones, you can make a phone number clickable.
Example:
When clicked on a phone, it opens the dialer.
โ ๏ธ Important Notes
โ Links are created using the
โ The
โ The text between
โ
๐ Real Website Example
This webpage contains:
โ One heading
โ One paragraph
โ Three clickable links
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Favorite Websites"
โ A paragraph saying "Click the links below."
โ A link to Google
โ A link to YouTube that opens in a new tab
Try it yourself before looking at the answer and share on comment.
โญ๏ธ Next Lesson
We'll learn how to display images, use the
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 6 of our HTML journey. ๐
Today we're going to learn one of the most useful HTML elements:
๐ HTML Links (<a>)Have you ever clicked on a text like "Go to Google" or "Watch on YouTube" and it took you to another webpage?
That's exactly what HTML Links do!
๐ค What is an HTML Link?
An HTML Link is used to connect one webpage to another.
When users click a link, the browser opens another webpage, website, file, email, or even another section of the same page.
๐ Best Analogy ๐๐๐
Imagine you're in a big city. ๐๏ธ
There are many places:
๐ Home
๐ซ School
๐ฅ Hospital
๐ Supermarket
How do you travel from one place to another?
๐ By using roads.
An HTML Link is like a road.
It connects one webpage to another.
Without links, websites would be like cities with no roads! ๐ซ๐ฃ๏ธ
๐ HTML Link Syntax
<a href="URL">Link Text</a>
Let's break it down.
๐ง Understanding Each Part
โ <a> TagThe
<a> tag stands for Anchor.It is used to create hyperlinks.
Example:
<a>Google</a>
Without an
href attribute, it is only text and doesn't take you anywhere.โก href Attributehref stands for Hypertext Reference.It tells the browser where the link should go.
Example:
href="https://www.google.com"
Meaning:
โก๏ธ "Open Google's website when clicked."
โข Link Text
The text between the opening and closing tags is called the Link Text.
Example:
Go to Google
This is what users see and click.
โ Complete Example
<a href="https://www.google.com">
Go to Google
</a>
๐ Output
Go to Google
When you click it, the browser opens Google's website.
๐ Another Example
<a href="https://www.youtube.com">
Visit YouTube
</a>
Output:
Visit YouTube
๐ Opening a Link in a New Tab
Sometimes we don't want users to leave our website.
Instead, we open the link in a new browser tab.
We use the
target attribute.Example:
<a href="https://www.google.com" target="_blank">
Go to Google
</a>
๐ค What does
target="_blank" mean?It tells the browser:
โก๏ธ "Open this link in a new browser tab."
Without it:
The current page is replaced.
With it:
A new tab opens.
๐ Example
<a href="https://www.youtube.com" target="_blank">
Open YouTube
</a>
๐ง Creating an Email Link
You can even create a link that opens the user's email app.
Example:
<a href="Email:example@gmail.com">
Send Email
</a>
When clicked, the default email application opens.
๐ Creating a Phone Link
On smartphones, you can make a phone number clickable.
Example:
<a href="tel:+251900000000">
Call Us
</a>
When clicked on a phone, it opens the dialer.
โ ๏ธ Important Notes
โ Links are created using the
<a> tag.โ The
href attribute tells the browser where to go.โ The text between
<a> and </a> is what users click.โ
target="_blank" opens the link in a new tab.๐ Real Website Example
<h1>My Favorite Websites</h1>
<p>Click any website below.</p>
<a href="https://www.google.com">Google</a>
<br><br>
<a href="https://www.youtube.com">YouTube</a>
<br><br>
<a href="https://www.wikipedia.org">Wikipedia</a>
This webpage contains:
โ One heading
โ One paragraph
โ Three clickable links
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Favorite Websites"
โ A paragraph saying "Click the links below."
โ A link to Google
โ A link to YouTube that opens in a new tab
Try it yourself before looking at the answer and share on comment.
โญ๏ธ Next Lesson
๐ HTML Images (<img>)We'll learn how to display images, use the
src and alt attributes, resize images, and understand image best practices.Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
โค7
๐ป Day 7: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 7 of our HTML journey. ๐
Today we're going to learn one of the most exciting HTML elements:
Have you ever visited a website without pictures?
It looks plain and boring. ๐ด
Images make a website beautiful, attractive, and easier to understand.
Today, you'll learn how to display images on a webpage.
๐ค What is an HTML Image?
The
Images can be:
๐ธ Photos
๐จ Logos
๐ผ๏ธ Icons
๐ Background pictures
๐ Charts and diagrams
๐ Best Analogy ๐๐๐
Imagine your bedroom. ๐
A room with empty walls looks simple.
Now hang your favorite photos and posters on the wall.
Suddenly, the room becomes more beautiful.
An HTML Image works the same way.
It adds beauty and meaning to your webpage.
๐ HTML Image Syntax
Unlike most HTML elements, the
It is called a void (self-closing) element because it only needs an opening tag.
๐ง Understanding Each Part
The
โก๏ธ "Display an image here."
Example:
By itself, it doesn't know which image to display.
That's why we use attributes.
It tells the browser where the image is located.
Example:
Meaning:
โก๏ธ "Find the image named cat.jpg and display it."
Without the
It describes the image if it cannot be displayed.
Example:
If the image fails to load, the browser displays:
A cute cat
The
โ Complete Example
You can control the size of an image using the
Example:
Here:
๐ผ๏ธ Another Example
Here, only the width is specified.
The browser automatically adjusts the height to keep the image proportional.
โ ๏ธ Important Notes
โ Always include the
โ The
โ The browser must be able to find the image specified in
๐ Where Can Images Come From?
1๏ธโฃ Local Image
An image saved in your project folder.
Example:
2๏ธโฃ Image from the Internet
You can also use an image URL.
Example:
The browser downloads the image from the internet.
๐ Real Website Example
This webpage contains:
โ One heading
โ One paragraph
โ One image
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Favorite Animal"
โ A paragraph describing your favorite animal
โ An image of that animal
Set the image width to 300 pixels.
Try it yourself before looking at the answer and share on comment๐๐
โญ๏ธ Next Lesson
You'll learn how to create bullet lists, numbered lists, and organize information like menus, recipes, and to-do lists.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 7 of our HTML journey. ๐
Today we're going to learn one of the most exciting HTML elements:
๐ผ๏ธ HTML Images (<img>)Have you ever visited a website without pictures?
It looks plain and boring. ๐ด
Images make a website beautiful, attractive, and easier to understand.
Today, you'll learn how to display images on a webpage.
๐ค What is an HTML Image?
The
<img> tag is used to display images on a webpage.Images can be:
๐ธ Photos
๐จ Logos
๐ผ๏ธ Icons
๐ Background pictures
๐ Charts and diagrams
๐ Best Analogy ๐๐๐
Imagine your bedroom. ๐
A room with empty walls looks simple.
Now hang your favorite photos and posters on the wall.
Suddenly, the room becomes more beautiful.
An HTML Image works the same way.
It adds beauty and meaning to your webpage.
๐ HTML Image Syntax
<img src="image.jpg" alt="Description">
Unlike most HTML elements, the
<img> tag does not have a closing tag.It is called a void (self-closing) element because it only needs an opening tag.
๐ง Understanding Each Part
โ <img> TagThe
<img> tag tells the browser:โก๏ธ "Display an image here."
Example:
<img>
By itself, it doesn't know which image to display.
That's why we use attributes.
โก src Attributesrc stands for Source.It tells the browser where the image is located.
Example:
<img src="cat.jpg">
Meaning:
โก๏ธ "Find the image named cat.jpg and display it."
Without the
src attribute, the browser doesn't know which image to show.โข alt Attributealt stands for Alternative Text.It describes the image if it cannot be displayed.
Example:
<img src="cat.jpg" alt="A cute cat">
If the image fails to load, the browser displays:
A cute cat
The
alt attribute also helps people who use screen readers, making websites more accessible.โ Complete Example
<img src="cat.jpg" alt="A cute cat">
๐ Image Width and Height
You can control the size of an image using the
width and height attributes.Example:
<img src="cat.jpg" alt="A cute cat" width="300" height="200">
Here:
width="300" โ Image width is 300 pixels.height="200" โ Image height is 200 pixels.๐ผ๏ธ Another Example
<img src="logo.png" alt="Company Logo" width="150">
Here, only the width is specified.
The browser automatically adjusts the height to keep the image proportional.
โ ๏ธ Important Notes
โ Always include the
alt attribute.โ The
<img> tag does not have a closing tag.โ The browser must be able to find the image specified in
src.๐ Where Can Images Come From?
1๏ธโฃ Local Image
An image saved in your project folder.
Example:
<img src="profile.jpg" alt="My Profile">
2๏ธโฃ Image from the Internet
You can also use an image URL.
Example:
<img src="https://example.com/image.jpg" alt="Nature">
The browser downloads the image from the internet.
๐ Real Website Example
<h1>My Pet</h1>
<p>This is my favorite cat.</p>
<img src="cat.jpg" alt="A cute cat" width="300">
This webpage contains:
โ One heading
โ One paragraph
โ One image
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Favorite Animal"
โ A paragraph describing your favorite animal
โ An image of that animal
Set the image width to 300 pixels.
Try it yourself before looking at the answer and share on comment๐๐
โญ๏ธ Next Lesson
๐ HTML Lists (<ul>,<ol>, and<li>)
You'll learn how to create bullet lists, numbered lists, and organize information like menus, recipes, and to-do lists.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
โค7
๐ป Day 8: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 8 of our HTML journey. ๐
Today we're going to learn how to organize information using:
Have you ever seen:
๐ A shopping list?
๐ A restaurant menu?
๐ A table of contents?
๐ Steps in a recipe?
All of these are examples of lists.
HTML provides special tags to create them.
HTML Lists are used to display a group of related items in an organized way.
For example:
Apple
Banana
Orange
Instead of writing everything in one sentence, lists make the information neat and easy to read.
๐ Best Analogy ๐๐๐
Imagine your teacher asks you to write your school supplies.
โ Without a list:
Pen Pencil Book Eraser Bag Ruler
It looks unattractive.
โ With a list:
Pen
Pencil
Book
Eraser
Bag
Ruler
Now it's easy to read.
That's exactly why HTML Lists are important.
๐ Types of HTML Lists
HTML has 3 types of lists:
1๏ธโฃ Unordered List (
2๏ธโฃ Ordered List (
3๏ธโฃ Description List (
Today we'll learn the first two because they are the most commonly used.
๐ค What is an Unordered List?
An Unordered List displays items using bullet points (โข).
Use it when the order of the items is not important.
๐ Syntax
๐ง Understanding Each Part
It tells the browser to create a bullet list.
Every item inside a list must be written inside an
โ Example
๐ Output
โข Apple
โข Banana
โข Orange
๐ค What is an Ordered List?
An Ordered List displays items using numbers.
Use it when the order is important.
๐ Best Analogy ๐๐๐
Think about making a cup of tea.
You can't pour the tea before boiling the water.
The steps must follow the correct order.
That's why we use an Ordered List.
๐ Syntax
โ Example
๐ Output
1.Wake up
2.Brush your teeth
3.Go to school
๐ Difference Between
๐ Real Website Example
โ ๏ธ Important Notes
โ
โ
โ Every list item must be inside an
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Hobbies"
โ An unordered list with three hobbies.
โ Another heading saying "How I Prepare for School"
โ An ordered list with four steps.
Try it yourself before looking at the answer!
โญ๏ธ Next Lesson
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 8 of our HTML journey. ๐
Today we're going to learn how to organize information using:
๐ HTML Lists
Have you ever seen:
๐ A shopping list?
๐ A restaurant menu?
๐ A table of contents?
๐ Steps in a recipe?
All of these are examples of lists.
HTML provides special tags to create them.
๐ค What are HTML Lists?
HTML Lists are used to display a group of related items in an organized way.
For example:
Apple
Banana
Orange
Instead of writing everything in one sentence, lists make the information neat and easy to read.
๐ Best Analogy ๐๐๐
Imagine your teacher asks you to write your school supplies.
โ Without a list:
Pen Pencil Book Eraser Bag Ruler
It looks unattractive.
โ With a list:
Pen
Pencil
Book
Eraser
Bag
Ruler
Now it's easy to read.
That's exactly why HTML Lists are important.
๐ Types of HTML Lists
HTML has 3 types of lists:
1๏ธโฃ Unordered List (
<ul>)2๏ธโฃ Ordered List (
<ol>)3๏ธโฃ Description List (
<dl>)Today we'll learn the first two because they are the most commonly used.
๐น Unordered List (<ul>)๐ค What is an Unordered List?
An Unordered List displays items using bullet points (โข).
Use it when the order of the items is not important.
๐ Syntax
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
๐ง Understanding Each Part
โ <ul><ul> stands for Unordered List.It tells the browser to create a bullet list.
โก <li><li> stands for List Item.Every item inside a list must be written inside an
<li> tag.โ Example
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Orange</li>
</ul>
๐ Output
โข Apple
โข Banana
โข Orange
๐ข Ordered List (<ol>)๐ค What is an Ordered List?
An Ordered List displays items using numbers.
Use it when the order is important.
๐ Best Analogy ๐๐๐
Think about making a cup of tea.
You can't pour the tea before boiling the water.
The steps must follow the correct order.
That's why we use an Ordered List.
๐ Syntax
<ol>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ol>
โ Example
<ol>
<li>Wake up</li>
<li>Brush your teeth</li>
<li>Go to school</li>
</ol>
๐ Output
1.Wake up
2.Brush your teeth
3.Go to school
๐ Difference Between
<ul> and <ol>๐ Real Website Example
<h1>My Favourite Foods</h1>
<ul>
<li>Injera</li>
<li>Pizza</li>
<li>Burger</li>
</ul>
<h2>Morning Routine</h2>
<ol>
<li>Wake up</li>
<li>Exercise</li>
<li>Take a shower</li>
<li>Eat breakfast</li>
</ol>
โ ๏ธ Important Notes
โ
<ul> creates a bullet list.โ
<ol> creates a numbered list.โ Every list item must be inside an
<li> tag.๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "My Hobbies"
โ An unordered list with three hobbies.
โ Another heading saying "How I Prepare for School"
โ An ordered list with four steps.
Try it yourself before looking at the answer!
โญ๏ธ Next Lesson
๐ HTML Description Lists (<dl>,<dt>, and<dd>) and Nested Lists.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ฅ6โค2
๐ป Day 9: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 9 of our HTML journey. ๐
In the previous lesson, we learned about:
โ Unordered Lists (
โ Ordered Lists (
Today, we'll learn two more important list concepts:
These are commonly used on dictionaries, FAQs, glossaries, menus, and documentation websites.
๐ค What is a Description List?
A Description List is used to display a term (name) and its description (meaning).
Unlike ordered and unordered lists, a description list doesn't use numbers or bullet points.
๐ Syntax
๐ง Understanding Each Tag
It contains the entire list.
It represents the name or title.
Example:
It explains the term.
Example:
โ Complete Example
๐ Output
HTML
โ Used to create webpages.
CSS
โ Used to style webpages.
JavaScript
โ Used to make webpages interactive.
๐ Real Website Example
๐ค What is a Nested List?
A Nested List is a list inside another list.
๐ Best Analogy ๐๐๐
Imagine a school bag. ๐
Inside the bag you have:
๐ Books
โ๏ธ Stationery
Pencil
Pen
Eraser
๐ง Water Bottle
The stationery items are a list inside another list.
That's a nested list.
๐ Syntax
โ Example
๐ Output
โข Fruits
โโโข Apple
โโโข Banana
โโโข Orange
โข Vegetables
โโโข Carrot
โโโข Potato
๐ Another Example
โ ๏ธ Important Notes
โ
โ
โ
โ A nested list must be placed inside an
๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "Web Technologies"
โ A description list explaining HTML, CSS, and JavaScript
โ Another heading saying "My Study Plan"
โ A nested list with:
Frontend
HTML
CSS
JavaScript
Try building it yourself before checking your answer and share it on comment
โญ๏ธ Next Lesson
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 9 of our HTML journey. ๐
In the previous lesson, we learned about:
โ Unordered Lists (
<ul>)โ Ordered Lists (
<ol>)Today, we'll learn two more important list concepts:
๐ HTML Description Lists (<dl>,<dt>, and<dd>)
๐ณ Nested Lists
These are commonly used on dictionaries, FAQs, glossaries, menus, and documentation websites.
๐ HTML Description Lists
๐ค What is a Description List?
A Description List is used to display a term (name) and its description (meaning).
Unlike ordered and unordered lists, a description list doesn't use numbers or bullet points.
๐ Syntax
<dl>
<dt>Term</dt>
<dd>Description</dd>
</dl>
๐ง Understanding Each Tag
โ <dl><dl> stands for Description List.It contains the entire list.
โก <dt><dt> stands for Description Term.It represents the name or title.
Example:
<dt>HTML</dt>
โข <dd><dd> stands for Description Details.It explains the term.
Example:
<dd>HTML is used to create webpages.</dd>
โ Complete Example
<dl>
<dt>HTML</dt>
<dd>Used to create webpages.</dd>
<dt>CSS</dt>
<dd>Used to style webpages.</dd>
<dt>JavaScript</dt>
<dd>Used to make webpages interactive.</dd>
</dl>
๐ Output
HTML
โ Used to create webpages.
CSS
โ Used to style webpages.
JavaScript
โ Used to make webpages interactive.
๐ Real Website Example
<h1>Programming Languages</h1>
<dl>
<dt>HTML</dt>
<dd>Creates webpage structure.</dd>
<dt>CSS</dt>
<dd>Designs the webpage.</dd>
<dt>JavaScript</dt>
<dd>Adds interaction.</dd>
</dl>
๐ณ Nested Lists
๐ค What is a Nested List?
A Nested List is a list inside another list.
๐ Best Analogy ๐๐๐
Imagine a school bag. ๐
Inside the bag you have:
๐ Books
โ๏ธ Stationery
Pencil
Pen
Eraser
๐ง Water Bottle
The stationery items are a list inside another list.
That's a nested list.
๐ Syntax
<ul>
<li>Main Item
<ul>
<li>Sub Item</li>
</ul>
</li>
</ul>
โ Example
<ul>
<li>Fruits
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Orange</li>
</ul>
</li>
<li>Vegetables
<ul>
<li>Carrot</li>
<li>Potato</li>
</ul>
</li>
</ul>
๐ Output
โข Fruits
โโโข Apple
โโโข Banana
โโโข Orange
โข Vegetables
โโโข Carrot
โโโข Potato
๐ Another Example
<ol>
<li>Frontend
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</li>
<li>Backend
<ul>
<li>Node.js</li>
<li>PHP</li>
</ul>
</li>
</ol>
โ ๏ธ Important Notes
โ
<dl> creates a description list.โ
<dt> represents the term.โ
<dd> represents the description.โ A nested list must be placed inside an
<li> element.๐ป Mini Coding Exercise
Create a webpage that contains:
โ A heading saying "Web Technologies"
โ A description list explaining HTML, CSS, and JavaScript
โ Another heading saying "My Study Plan"
โ A nested list with:
Frontend
HTML
CSS
JavaScript
Try building it yourself before checking your answer and share it on comment
โญ๏ธ Next Lesson
๐ HTML Tables
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
โค5๐ฅฐ2๐ฅ1
๐ป Day 10: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 10 of our HTML journey. ๐
In the previous lesson, we learned about:
โ Description Lists (
โ Nested Lists
Today, we're going to learn one of the most important HTML elements used in real websites:
Have you ever seen:
๐ A student grade sheet?
๐ A class timetable?
๐ A product price list?
๐ A football league table?
All of these are examples of tables.
Today, you'll learn how to create them using HTML.
๐ค What is an HTML Table?
An HTML Table is used to organize data into rows and columns.
Tables make information easy to read and compare.
๐ Best Analogy ๐๐๐
Imagine your teacher gives you an exam result sheet.
Instead of writing all the information in one sentence, the table organizes everything neatly.
That's exactly what an HTML Table does.
๐ Basic Syntax
The
But a table is empty until we add rows and columns.
๐งฉ The Four Main Table Tags
The
Think of it as the container that holds everything.
Example:
It creates a new row.
Example:
Every new row needs another
It creates the heading of each column.
Example:
By default, browsers display
It contains the actual data inside the table.
Example:
โ Complete Example
๐ Output
Name Age
Amare 20
Abel 22
๐ง Understanding the Code
Creates the table.
โ
Creates the first row.
โ
Creates the column headings.
โ
Creates another row.
โ
Adds the data.
๐ Real Website Example
Student Results
โ ๏ธ Important Notes
โ
โ
โ
โ
โ Every
โ Common Mistakes
Wrong โ
Correct โ
Wrong โ
The
Correct โ
๐ป Mini Coding Exercise
Create a table with:
โ A heading: Student Information
Columns:
Name
Age
Department
Rows:
Sara | 20 | Engineering
Abel | 21 | Computer Science
Hana | 19 | Medicine
Try building it yourself before looking at the answer and share it on comment!!
โญ๏ธ Next Lesson
๐ Advanced HTML Tables
You'll learn:
โ
โ
โ
โ
โ
โ
โ
These features help you build professional tables used in real-world websites.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
๐ Hello everyone! Welcome back to Day 10 of our HTML journey. ๐
In the previous lesson, we learned about:
โ Description Lists (
<dl>, <dt>, and <dd>)โ Nested Lists
Today, we're going to learn one of the most important HTML elements used in real websites:
๐ HTML Tables (<table>)Have you ever seen:
๐ A student grade sheet?
๐ A class timetable?
๐ A product price list?
๐ A football league table?
All of these are examples of tables.
Today, you'll learn how to create them using HTML.
๐ค What is an HTML Table?
An HTML Table is used to organize data into rows and columns.
Tables make information easy to read and compare.
๐ Best Analogy ๐๐๐
Imagine your teacher gives you an exam result sheet.
Instead of writing all the information in one sentence, the table organizes everything neatly.
That's exactly what an HTML Table does.
๐ Basic Syntax
<table>
</table>
The
<table> tag creates a table.But a table is empty until we add rows and columns.
๐งฉ The Four Main Table Tags
โ <table>The
<table> tag creates the entire table.Think of it as the container that holds everything.
Example:
<table>
</table>
โก <tr><tr> stands for Table Row.It creates a new row.
Example:
<tr>
</tr>
Every new row needs another
<tr>.โข <th><th> stands for Table Header.It creates the heading of each column.
Example:
<th>Name</th>
<th>Age</th>
By default, browsers display
<th> text in bold and centered.โฃ <td><td> stands for Table Data.It contains the actual data inside the table.
Example:
<td>Amare</td>
<td>20</td>
โ Complete Example
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Amare</td>
<td>20</td>
</tr>
<tr>
<td>Abel</td>
<td>22</td>
</tr>
</table>
๐ Output
Name Age
Amare 20
Abel 22
๐ง Understanding the Code
<table>
Creates the table.
โ
<tr>
Creates the first row.
โ
<th>Name</th>
<th>Age</th>
Creates the column headings.
โ
<tr>
Creates another row.
โ
<td>Amare</td>
<td>20</td>
Adds the data.
๐ Real Website Example
Student Results
<table>
<tr>
<th>Name</th>
<th>Maths</th>
<th>English</th>
</tr>
<tr>
<td>Abel</td>
<td>90</td>
<td>85</td>
</tr>
<tr>
<td>Hana</td>
<td>95</td>
<td>91</td>
</tr>
</table>
โ ๏ธ Important Notes
โ
<table> creates the table.โ
<tr> creates rows.โ
<th> creates table headings.โ
<td> contains the table data.โ Every
<td> must be inside a <tr>.โ Common Mistakes
Wrong โ
<table>
<td>Amare</td>
</table>
<td> cannot be used without a <tr>.Correct โ
<table>
<tr>
<td>Amare</td>
</tr>
</table>
Wrong โ
<table>
<tr>
<th>Name</th>
</tr>
<td>Amare</td>
</table>
The
<td> is outside the table row.Correct โ
<table>
<tr>
<th>Name</th>
</tr>
<tr>
<td>Amare</td>
</tr>
</table>
๐ป Mini Coding Exercise
Create a table with:
โ A heading: Student Information
Columns:
Name
Age
Department
Rows:
Sara | 20 | Engineering
Abel | 21 | Computer Science
Hana | 19 | Medicine
Try building it yourself before looking at the answer and share it on comment!!
โญ๏ธ Next Lesson
๐ Advanced HTML Tables
You'll learn:
โ
borderโ
colspanโ
rowspanโ
captionโ
theadโ
tbodyโ
tfootThese features help you build professional tables used in real-world websites.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper
โค4๐2๐ฅ1
๐ป Day 11: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 11 of our HTML journey. ๐
In the previous lesson, we learned the basics of:
โ HTML Tables (
โ Table Rows (
โ Table Headers (
โ Table Data (
Today, we will make our tables more professional by learning:
We will learn:
1๏ธโฃ Table Borders (
2๏ธโฃ Table Caption (
3๏ธโฃ Column Spanning (
4๏ธโฃ Row Spanning (
5๏ธโฃ Table Sections (
๐ค What is a Border?
A border creates visible lines around the table and its cells.
Without a border, a table may look like normal text.
๐ Best Analogy ๐๐๐
Imagine a classroom seating arrangement.
Without lines:
Student A Student B Student C
It is difficult to understand.
With lines:
| Student A | Student B | Student C |
Everything becomes clear.
A table border works the same way.
๐ Example
โ ๏ธ Note:
The
We will learn the professional way in CSS.
๐ค What is Caption?
A caption gives a title or name to your table.
It explains what the table is about.
๐ Syntax
โ Example
๐ค What is Colspan?
๐ Best Analogy ๐๐๐
Imagine a school timetable.
Sometimes one subject title covers several days.
Example:
The word "Mathematics" covers three columns.
That is colspan.
๐ Syntax
Example:
The first cell covers three columns.
๐ค What is Rowspan?
๐ Best Analogy ๐๐๐
Imagine a teacher's name written beside several classes.
The teacher's name covers multiple rows.
That is rowspan.
๐ Syntax
Example
The name "Amare" covers two rows.
Professional tables are divided into three parts:
Table Header section.
Contains headings.
Example:
Table Body section.
Contains the main data.
Example:
Table Footer section.
Contains summary information.
Example:
๐ Complete Professional Example
โ ๏ธ Important Notes
โ Use
โ Use
โ Use
โ Use
โ CSS is the professional way to style tables.
๐ป Mini Coding Exercise
Create a professional student table with:
โ A caption: "University Students"
โ Header section
Name
Department
Year
โ Body section with 3 students
โ Footer showing total students
Try it yourself! ๐
โญ๏ธ Next Lesson
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
๐ Hello everyone! Welcome back to Day 11 of our HTML journey. ๐
In the previous lesson, we learned the basics of:
โ HTML Tables (
<table>)โ Table Rows (
<tr>)โ Table Headers (
<th>)โ Table Data (
<td>)Today, we will make our tables more professional by learning:
๐ Advanced HTML Tables
We will learn:
1๏ธโฃ Table Borders (
border)2๏ธโฃ Table Caption (
<caption>)3๏ธโฃ Column Spanning (
colspan)4๏ธโฃ Row Spanning (
rowspan)5๏ธโฃ Table Sections (
<thead>, <tbody>, <tfoot>)1๏ธโฃ Table Border (border)๐ค What is a Border?
A border creates visible lines around the table and its cells.
Without a border, a table may look like normal text.
๐ Best Analogy ๐๐๐
Imagine a classroom seating arrangement.
Without lines:
Student A Student B Student C
It is difficult to understand.
With lines:
| Student A | Student B | Student C |
Everything becomes clear.
A table border works the same way.
๐ Example
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Amare</td>
<td>20</td>
</tr>
</table>
โ ๏ธ Note:
The
border attribute works, but professional developers usually use CSS to style tables.We will learn the professional way in CSS.
2๏ธโฃ Table Caption (<caption>)๐ค What is Caption?
A caption gives a title or name to your table.
It explains what the table is about.
๐ Syntax
<table>
<caption>Student Information</caption>
</table>
โ Example
<table border="1">
<caption>Student Results</caption>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Abel</td>
<td>90</td>
</tr>
</table>
3๏ธโฃ Column Spanning (colspan)๐ค What is Colspan?
colspan allows one cell to cover multiple columns.๐ Best Analogy ๐๐๐
Imagine a school timetable.
Sometimes one subject title covers several days.
Example:
The word "Mathematics" covers three columns.
That is colspan.
๐ Syntax
<td colspan="number">
Example:
<table border="1">
<tr>
<th colspan="3">
Student Information
</th>
</tr>
<tr>
<td>Name</td>
<td>Age</td>
<td>Grade</td>
</tr>
</table>
The first cell covers three columns.
4๏ธโฃ Row Spanning (rowspan)๐ค What is Rowspan?
rowspan allows one cell to cover multiple rows.๐ Best Analogy ๐๐๐
Imagine a teacher's name written beside several classes.
The teacher's name covers multiple rows.
That is rowspan.
๐ Syntax
<td rowspan="number">
Example
<table border="1">
<tr>
<th>Name</th>
<th>Subject</th>
</tr>
<tr>
<td rowspan="2">
Amare
</td>
<td>HTML</td>
</tr>
<tr>
<td>CSS</td>
</tr>
</table>
The name "Amare" covers two rows.
5๏ธโฃ Table Sections
Professional tables are divided into three parts:
โ <thead>Table Header section.
Contains headings.
Example:
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
โก <tbody>Table Body section.
Contains the main data.
Example:
<tbody>
<tr>
<td>Amare</td>
<td>20</td>
</tr>
</tbody>
โข <tfoot>Table Footer section.
Contains summary information.
Example:
<tfoot>
<tr>
<td>Total</td>
<td>50</td>
</tr>
</tfoot>
๐ Complete Professional Example
<table border="1">
<caption>Student Scores</caption>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Abel</td>
<td>90</td>
</tr>
<tr>
<td>Hana</td>
<td>95</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Total Students</td>
<td>2</td>
</tr>
</tfoot>
</table>
โ ๏ธ Important Notes
โ Use
<caption> to describe your table.โ Use
colspan for multiple columns.โ Use
rowspan for multiple rows.โ Use
<thead>, <tbody>, and <tfoot> to organize large tables.โ CSS is the professional way to style tables.
๐ป Mini Coding Exercise
Create a professional student table with:
โ A caption: "University Students"
โ Header section
Name
Department
Year
โ Body section with 3 students
โ Footer showing total students
Try it yourself! ๐
โญ๏ธ Next Lesson
๐ HTML Forms
You'll learn how websites collect information from usersโคโค
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
๐ฅ5โค2
Web Development Journey๐ฉโ๐ป๐จโ๐ป
๐ป Day 11: HTML Basics ๐๐ฅ ๐ Hello everyone! Welcome back to Day 11 of our HTML journey. ๐ In the previous lesson, we learned the basics of: โ
HTML Tables (<table>) โ
Table Rows (<tr>) โ
Table Headers (<th>) โ
Table Data (<td>) Today, we will make our tablesโฆ
Please แแญ แซแแฝแ แแแญ แซแ comment แแญ แแ แจแ
แตแฝแแแฝแ แฐแแ แฅแแฐแ แ แญแแต skill แแแแแชแซ แแ แฒแแ แแญ แญแแ แแ แแ แฅแ แฆแณ แฐแฅแณแฝแแต แจแฐแจแณแฐแแฝแ แ แฃแ แแแ แแแข แ แแต แแแแซแฝแ แแแญ แขแแญ practice,practice and practice the code ๐ค๐ค แแฐแแแ แแต แแ so,you have to be strong ๐ช๐ช๐ช okay
If you have any questions or are confused about anything, please feel free to ask in the comments. This is your first time using this skill, so it might seem a bit overwhelming, but with time and practice, it will become much easier. One thing I can tell you is that practice, practice, and practice the code are must. Repetition is essential, so you need to be persistent and strong.โ๏ธโ๏ธโ๏ธโ๏ธ
Let's go โคโค this reaction
Please share this channel ๐๐@AbWebDeveloper
If you have any questions or are confused about anything, please feel free to ask in the comments. This is your first time using this skill, so it might seem a bit overwhelming, but with time and practice, it will become much easier. One thing I can tell you is that practice, practice, and practice the code are must. Repetition is essential, so you need to be persistent and strong.โ๏ธโ๏ธโ๏ธโ๏ธ
Let's go โคโค this reaction
Please share this channel ๐๐@AbWebDeveloper
โค7๐ฅ2
๐ป Day 12: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 12 of our HTML journey. ๐
In the previous lesson, we learned about Advanced HTML Tables.
Today, we're starting one of the most important topics in HTML.
Have you ever:
โ Created a Facebook account?
โ Logged into Gmail?
โ Searched something on Google?
โ Filled out a school registration form?
All of these use HTML Forms.
Today, we'll learn the basics of HTML Forms.
๐ค What is an HTML Form?
An HTML Form is used to collect information (data) from users.
The data can then be sent to a server for processing.
Examples of forms:
๐ค Login Form
๐ Registration Form
๐ฉ Contact Form
๐ Search Form
๐ณ Payment Form
๐ Best Analogy ๐๐๐
Imagine you are applying to a university.
The university gives you a registration form.
You fill in:
๐ค Name
๐ Age
๐ง Email
๐ Phone Number
After filling it out, you submit it.
An HTML Form works exactly the same way.
It collects information from users.
๐ HTML Form Syntax
The
Everything inside the form belongs to that form.
๐ง Understanding the
Example:
The input field belongs to the form because it is inside the
๐ค What is a Label?
A label tells users what information they should enter into an input field.
๐ Best Analogy ๐๐๐
Imagine a classroom.
Every student has a name tag.
Without name tags, it would be difficult to know who is who.
Similarly, a label tells users what each input field is for.
๐ Syntax
โ Example
Output:
Full Name
[__]
๐ค What is an Input?
The
It is one of the most commonly used HTML elements.
๐ Best Analogy ๐๐๐
Think of a paper form.
Each empty box is a place where you write your information.
The HTML
๐ Syntax
However, an input usually needs a type.
The
๐ Example
Here,
means:
โก๏ธ The user can type normal text.
๐ Complete Example
๐ค What is a Placeholder?
A placeholder is a short hint displayed inside an input field.
It tells users what they should type.
๐ Example
Before typing, the user sees:
Enter your full name
As soon as they start typing, the placeholder disappears.
๐ Real Website Example
โ ๏ธ Important Notes
โ
โ
โ
โ
โ
โ Common Mistakes
Wrong โ
Although it works, it's better to specify the input type.
Correct โ
Wrong โ
The label should come before the input.
Better โ
๐ป Mini Coding Exercise
Create a simple registration form that contains:
โ Full Name
โ Email
โ Each field should have a label.
โ Each input should have a placeholder.
Try building it yourself before checking the answer and share it on comment๐๐
โญ๏ธ Next Lesson
๐ HTML Input Types โ Part 2
We'll learn different input types, including:
โ text
โ password
โ Email
โ number
โ date
โ radio
โ checkbox
โ file
โ submit
These are the input types used in real login pages, registration forms, and contact forms.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
๐ Hello everyone! Welcome back to Day 12 of our HTML journey. ๐
In the previous lesson, we learned about Advanced HTML Tables.
Today, we're starting one of the most important topics in HTML.
๐ HTML Forms โ Part 1
Have you ever:
โ Created a Facebook account?
โ Logged into Gmail?
โ Searched something on Google?
โ Filled out a school registration form?
All of these use HTML Forms.
Today, we'll learn the basics of HTML Forms.
๐ค What is an HTML Form?
An HTML Form is used to collect information (data) from users.
The data can then be sent to a server for processing.
Examples of forms:
๐ค Login Form
๐ Registration Form
๐ฉ Contact Form
๐ Search Form
๐ณ Payment Form
๐ Best Analogy ๐๐๐
Imagine you are applying to a university.
The university gives you a registration form.
You fill in:
๐ค Name
๐ Age
๐ง Email
๐ Phone Number
After filling it out, you submit it.
An HTML Form works exactly the same way.
It collects information from users.
๐ HTML Form Syntax
<form>
</form>
The
<form> tag is the container for all form elements.Everything inside the form belongs to that form.
๐ง Understanding the
<form> TagExample:
<form>
<input type="text">
</form>
The input field belongs to the form because it is inside the
<form> tag.๐ท๏ธ HTML Label (<label>)๐ค What is a Label?
A label tells users what information they should enter into an input field.
๐ Best Analogy ๐๐๐
Imagine a classroom.
Every student has a name tag.
Without name tags, it would be difficult to know who is who.
Similarly, a label tells users what each input field is for.
๐ Syntax
<label>Name</label>
โ Example
<label>Full Name</label>
<input type="text">
Output:
Full Name
[__]
โจ๏ธ HTML Input (<input>)๐ค What is an Input?
The
<input> tag allows users to enter information.It is one of the most commonly used HTML elements.
๐ Best Analogy ๐๐๐
Think of a paper form.
Each empty box is a place where you write your information.
The HTML
<input> tag is that empty box.๐ Syntax
<input>
However, an input usually needs a type.
๐ฏ The type AttributeThe
type attribute tells the browser what kind of input the user should enter.๐ Example
<input type="text">
Here,
type="text"means:
โก๏ธ The user can type normal text.
๐ Complete Example
<form>
<label>Full Name</label>
<input type="text">
</form>
๐ Placeholder Attribute
๐ค What is a Placeholder?
A placeholder is a short hint displayed inside an input field.
It tells users what they should type.
๐ Example
<input
type="text"
placeholder="Enter your full name">
Before typing, the user sees:
Enter your full name
As soon as they start typing, the placeholder disappears.
๐ Real Website Example
<form>
<label>Full Name</label>
<input
type="text"
placeholder="Enter your full name">
<br><br>
<label>Email</label>
<input
type="text"
placeholder="Enter your email">
</form>
โ ๏ธ Important Notes
โ
<form> is the container.โ
<label> describes an input field.โ
<input> collects user information.โ
type tells the browser what kind of data to accept.โ
placeholder provides a hint inside the input field.โ Common Mistakes
Wrong โ
<input>
Although it works, it's better to specify the input type.
Correct โ
<input type="text">
Wrong โ
<input type="text">
<label>Name</label>
The label should come before the input.
Better โ
<label>Name</label>
<input type="text">
๐ป Mini Coding Exercise
Create a simple registration form that contains:
โ Full Name
โ Email
โ Each field should have a label.
โ Each input should have a placeholder.
Try building it yourself before checking the answer and share it on comment๐๐
โญ๏ธ Next Lesson
๐ HTML Input Types โ Part 2
We'll learn different input types, including:
โ text
โ password
โ Email
โ number
โ date
โ radio
โ checkbox
โ file
โ submit
These are the input types used in real login pages, registration forms, and contact forms.
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
โค6
"Never let failure stop you. Every failure is another chance to improve and become awesome." ๐๐ป
Please Share this channel ๐๐๐๐
@AbWebDeveloper ๐๐ @AbWebDeveloper
Please Share this channel ๐๐๐๐
@AbWebDeveloper ๐๐ @AbWebDeveloper
๐ฅ6๐1
๐ป Day 13: HTML Basics ๐๐ฅ
๐ Hello everyone! Welcome back to Day 13 of our HTML journey. ๐
In the previous lesson, we learned about:
โ
Today, we'll continue learning about one of the most important parts of HTML Forms.
Have you ever noticed that some input boxes are different?
๐ Password fields hide your password.
๐ง Email fields expect an email address.
๐ Birthday fields show a calendar.
๐ Some websites let you upload files.
All of these are possible because of different Input Types.
Today, we'll learn the most commonly used input types.
๐ค What is an Input Type?
The
Changing the
๐ Best Analogy ๐๐๐
Imagine you're filling out a job application form.
Different boxes ask for different information:
๐ค Name
๐ง Email
๐ Password
๐ Date of Birth
๐ Phone Number
Each box is designed for a specific purpose.
The HTML
๐ค What is it?
Used to enter normal text.
Example:
โ Used for:
Full Name
Username
City
School Name
๐ค What is it?
Used to enter passwords.
The browser hides the characters for security.
Example:
๐ Output:
Instead of showing:
It shows:
๐ค What is it?
Used to enter an email address.
Example:
๐ค What is it?
Used to enter numbers only.
Example:
๐ค What is it?
Allows users to select a date.
Example:
On most browsers, a calendar appears automatically.
Perfect for:
๐ Birthday
๐ Appointment Date etc...
๐ค What is it?
Allows users to choose only one option from a group.
Example:
The
๐ Best Analogy ๐๐๐
Imagine a multiple-choice exam.
Only one answer can be correct.
That's how radio buttons work.
๐ค What is it?
Allows users to select multiple options.
Example:
Unlike radio buttons, users can select more than one option.
๐ค What is it?
Allows users to upload files.
Example:
Used for uploading:
๐ท Photos๐ Documents๐ต Audio๐ฅ Videos
๐ค What is it?
Creates a button that submits the form.
Example:
๐ Complete Example
๐ป Mini Coding Exercise
Create a Student Registration Form that contains:
โ Full Name
โ Password
โ Email
โ Age
โ Date of Birth
โ Gender (Radio Buttons)
โ Skills (Checkboxes)
โ Upload Profile Picture (File Input)
โ Register Button (Submit)
Try building it yourself before checking the answer, and don't forget to share your work in the comments! ๐๐
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
๐ Hello everyone! Welcome back to Day 13 of our HTML journey. ๐
In the previous lesson, we learned about:
โ
<form>, <label>,<input> type,placeholderToday, we'll continue learning about one of the most important parts of HTML Forms.
โจ๏ธ HTML Input Types โ Part 2
Have you ever noticed that some input boxes are different?
๐ Password fields hide your password.
๐ง Email fields expect an email address.
๐ Birthday fields show a calendar.
๐ Some websites let you upload files.
All of these are possible because of different Input Types.
Today, we'll learn the most commonly used input types.
๐ค What is an Input Type?
The
type attribute tells the browser what kind of information the user should enter.Changing the
type changes how the input field behaves.๐ Best Analogy ๐๐๐
Imagine you're filling out a job application form.
Different boxes ask for different information:
๐ค Name
๐ง Email
๐ Password
๐ Date of Birth
๐ Phone Number
Each box is designed for a specific purpose.
The HTML
type attribute works exactly the same way.โ โ๏ธ type="text"๐ค What is it?
Used to enter normal text.
Example:
<input type="text" placeholder="Enter your full name">
โ Used for:
Full Name
Username
City
School Name
โก ๐ type="password"๐ค What is it?
Used to enter passwords.
The browser hides the characters for security.
Example:
<input type="password" placeholder="Enter your password">
๐ Output:
Instead of showing:
mypassword123It shows:
โขโขโขโขโขโขโขโขโขโขโข ๐ง type="email"๐ค What is it?
Used to enter an email address.
Example:
<input type="email" placeholder="Enter your email">
โฃ ๐ข type="number"๐ค What is it?
Used to enter numbers only.
Example:
<input type="number" placeholder="Enter your age">
โค ๐
type="date"๐ค What is it?
Allows users to select a date.
Example:
<input type="date">
On most browsers, a calendar appears automatically.
Perfect for:
๐ Birthday
๐ Appointment Date etc...
โฅ ๐ type="radio"๐ค What is it?
Allows users to choose only one option from a group.
Example:
<input type="radio" name="gender"> Male
<input type="radio" name="gender"> Female
The
name attribute groups the radio buttons together.๐ Best Analogy ๐๐๐
Imagine a multiple-choice exam.
Only one answer can be correct.
That's how radio buttons work.
โฆ โ๏ธ type="checkbox"๐ค What is it?
Allows users to select multiple options.
Example:
<input type="checkbox"> HTML
<input type="checkbox"> CSS
<input type="checkbox"> JavaScript
Unlike radio buttons, users can select more than one option.
โง ๐ type="file"๐ค What is it?
Allows users to upload files.
Example:
<input type="file">
Used for uploading:
๐ท Photos๐ Documents๐ต Audio๐ฅ Videos
โจ ๐ค type="submit"๐ค What is it?
Creates a button that submits the form.
Example:
<input type="submit" value="Register">
๐ Complete Example
<form>
<label>Full Name</label><br>
<input type="text" placeholder="Enter your full name"><br><br>
<label>Password</label><br>
<input type="password" placeholder="Enter your password"><br><br>
<label>Email</label><br>
<input type="email" placeholder="Enter your email"><br><br>
<label>Age</label><br>
<input type="number" placeholder="Enter your age"><br><br>
<label>Date of Birth</label><br>
<input type="date"><br><br>
<label>Gender</label><br>
<input type="radio" name="gender"> Male
<input type="radio" name="gender"> Female<br><br>
<label>Skills</label><br>
<input type="checkbox"> HTML
<input type="checkbox"> CSS
<input type="checkbox"> JavaScript<br><br>
<label>Upload Your CV</label><br>
<input type="file"><br><br>
<input type="submit" value="Register">
</form>
๐ป Mini Coding Exercise
Create a Student Registration Form that contains:
โ Full Name
โ Password
โ Email
โ Age
โ Date of Birth
โ Gender (Radio Buttons)
โ Skills (Checkboxes)
โ Upload Profile Picture (File Input)
โ Register Button (Submit)
Try building it yourself before checking the answer, and don't forget to share your work in the comments! ๐๐
Have a wonderful day! ๐โค๏ธ
@AbWebDeveloper ๐๐ @AbWebDeveloper
โค7
๐ป แจแแ แแแฎ แจแแญ แซแแซแแธแแ Coding Challenges แ แแต แ แ แแต แ แแซ แฅแแฐแซแแ! ๐ฅ
แแแแแ แฅแซแ แขแจแฅแณแฝแ แ แตแจแแแข ๐ช
แฅแซแแณแแฑแ แฝแแญ แฐแจแ แ แฐแจแ แฅแจแแณแแฃ แจแฎแฑ แแญแฃ แซแแแ แแณแฅ (Logic) แ แแแฝ แแแณ แฅแแแซแแแข
๐ฏ แตแแแ แจCoding Challenge แแแ แฝแ แจแแ แญแแแซแ! ๐
แแแ แแแฃ แ แแณแฝแแ แฅแแณแซแแแฃแฝแ!
โค๏ธ แแแ แจแแแฝแ แ โค๏ธ Reaction แ แณแแแ!
๐ข แปแแแ แแแฐแแปแฝแ Share แ แตแญแ แฅแ แ แฅแจแ แฅแแแญ! ๐
๐ Join Now
@AbWebDeveloper๐๐โค๏ธ@AbWebDeveloper
แแแแแ แฅแซแ แขแจแฅแณแฝแ แ แตแจแแแข ๐ช
แฅแซแแณแแฑแ แฝแแญ แฐแจแ แ แฐแจแ แฅแจแแณแแฃ แจแฎแฑ แแญแฃ แซแแแ แแณแฅ (Logic) แ แแแฝ แแแณ แฅแแแซแแแข
๐ฏ แตแแแ แจCoding Challenge แแแ แฝแ แจแแ แญแแแซแ! ๐
แแแ แแแฃ แ แแณแฝแแ แฅแแณแซแแแฃแฝแ!
โค๏ธ แแแ แจแแแฝแ แ โค๏ธ Reaction แ แณแแแ!
๐ข แปแแแ แแแฐแแปแฝแ Share แ แตแญแ แฅแ แ แฅแจแ แฅแแแญ! ๐
๐ Join Now
@AbWebDeveloper๐๐โค๏ธ@AbWebDeveloper
โค10๐ฅ1
Web Development Journey๐ฉโ๐ป๐จโ๐ป
Day 1 โ๏ธโ๏ธโ๏ธ <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My First Website</title> </head> <body> <h1>Web Development Courses</h1> <h2>About Me</h2> <p>My name isโฆ
We'll start from here แฅแ แฅแตแจแ comment แแตแซแ แแญ แจแแฃแแฝแแ output แ แตแแแกแแ แฅแ แ แแ แแแฑแ แฅแฐแฃแฝแแแ ๐๐
แจแปแแฝแ แปแ copy แแตแจแ แ แญแปแแ๐ โโ๏ธ๐ โโ๏ธ แฅแแแฐแ แจแจแซแณแฝแแ แตแ แ แตแแฅแณแน แแฉแแ
แจแปแแฝแ แปแ copy แแตแจแ แ แญแปแแ๐ โโ๏ธ๐ โโ๏ธ แฅแแแฐแ แจแจแซแณแฝแแ แตแ แ แตแแฅแณแน แแฉแแ
๐ฅ6