Coconote
AI notes
AI voice & video notes
Try for free
💻
Basics of Writing HTML Code
May 3, 2025
Learn Writing HTML Code
Introduction
With you, the lecturer Abdul Rahman Jamal.
The goal of the session is to write the first HTML code.
Adherence to rules and syntax to write correct code.
Concept of HTML and Tags
HTML
relies on
tags
.
Websites contain elements like: title, paragraphs, images, videos, buttons.
Tags
are used to define these elements.
How to Write a Tag
The tag consists of:
A less than sign
<
.
The tag name.
A greater than sign
>
.
Example:
<h1>Title</h1>
.
Types of Tags
Start and End Tags
:
Contain content between the start and end.
Example:
<h1>Title</h1>
.
Single Tags
:
Do not contain internal content.
Example:
<hr>
.
Notes on Writing Code
Code Formatting:
Tags can be written on the same line or different lines without affecting functionality.
Extra spaces are ignored by the browser.
The hr
:
Does not need closing because it doesn't contain content.
The br
:
Used to add a new line in the text.
Conclusion
Focus on understanding
the structure of tags
.
Further details will be explained in future lessons.
I hope you have understood, and we will meet in a new video soon.
📄
Full transcript