αα α¨αα α«αα α¨ app α°α αααα½α α¨αααα¨α΅ αα α pc αα°α«αα½α αα΅ααα α¨αα comment αα α₯αααααα α₯ααΉ α»α
α¨α°αα»αΉ α¨α°ααα°α½αα β€β€
@AbWebDeveloper
α¨α°αα»αΉ α¨α°ααα°α½αα β€β€
@AbWebDeveloper
β€11
α¨α¨α¨α³αΉ comment lay screenshot α α΅α¨αα‘αα α¨α α₯ααα₯ααα
Good dayπ
@AbWebDeveloper
Good dayπ
@AbWebDeveloper
β€10
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