-
Headings: Headings are used to create titles and subtitles on a web page. HTML provides six levels of headings, from
<h1>
(the largest and most important) to<h6>
(the smallest). They help structure the content and make it more readable. -
Paragraphs: Paragraphs are defined with the
<p>
tag. This element is used to group together blocks of text. Browsers automatically add some space above and below paragraphs to separate them from other content. -
Lists: There are two main types of lists in HTML:
- Ordered Lists (
<ol>
): These lists are numbered. Each item in the list is marked with the<li>
tag. - Unordered Lists (
<ul>
): These lists use bullet points instead of numbers. Like ordered lists, each item is marked with the<li>
tag.
- Ordered Lists (
-
Links: Links are created with the
<a>
tag. This tag can be used to link to other web pages, files, or locations on the same page. Thehref
attribute specifies the URL of the page the link goes to. -
Images: Images are embedded using the
<img>
tag. This tag requires thesrc
attribute, which specifies the path to the image file. Thealt
attribute provides alternative text that describes the image, which is useful for accessibility and if the image fails to load.
About Lesson
Join the conversation