Recap of HTML
HTML, short for "HyperText Markup Language," is a markup language used to define the structure and content of a web page.
Web browsers interpret HTML code to display web pages to users.
Basic Structure of a Web Page
<!DOCTYPE html> <html> <head> <!-- Basic information of the web page --> <title>Document Title</title> </head> <body> Main content of the web page </body> </html>
-
<!DOCTYPE html>
: Document type declaration. It indicates that the document is written in HTML5. -
<html>
: Indicates the beginning and end of an HTML document. -
<head>
: Contains metadata, styles, scripts, and other information about the document. -
<title>
: Sets the document's title that appears on the browser tab. -
<body>
: Contains the actual content of the web page.
Some Key HTML Tags:
- Heading Tags : Represent titles and subtitles of the web page.
<h1>Heading 1</h1> <h2>Heading 2</h2> ... <h6>Heading 6</h6>
- Paragraph Tag : Creates text paragraphs.
<p>Text paragraph</p>
- Link Tag : Creates hyperlinks to other pages.
<a href="URL">Link Text</a>
- Image Tag : Inserts images into the web page.
<img src="imageURL" alt="Alternative Text">
- List Tags : Creates ordered and unordered lists.
<!-- Ordered List --> <ol> <li>Item 1</li> <li>Item 2</li> </ol> <!-- Unordered List --> <ul> <li>Item 1</li> <li>Item 2</li> </ul>
You have done a great job learning the fundamentals of HTML, the skeleton of websites 🙌
In the next lesson, we will learn about CSS
, the clothes of the websites, and how to use it!
Which tag contains the content of the web page in an HTML document?
<head>
<title>
<body>
<html>
Lecture
AI Tutor
Publish
Design
Upload
Notes
Favorites
Help