Comprehensive Review of HTML
HTML stands for HyperText Markup Language
, and it is a markup language used to define the structure and content of web pages.
Web browsers interpret HTML code to display the webpage to users.
Basic Structure of a Webpage
<!DOCTYPE html> <html> <head> <!-- Basic information about the webpage --> <title>Document Title</title> </head> <body> Main content of the webpage </body> </html>
-
<!DOCTYPE html>
: Document type declaration. It indicates that the document is written in HTML5. -
<html>
: Marks the beginning and the end of an HTML document. -
<head>
: Contains metadata, styles, scripts, and other information about the document. -
<title>
: Sets the title of the document displayed on the browser tab. -
<body>
: Contains the actual content of the webpage.
Some Key HTML Tags:
- Heading Tags: Represent the titles or subtitles on a web page.
<h1>Heading 1</h1> <h2>Heading 2</h2> ... <h6>Heading 6</h6>
- Paragraph Tag: Creates a text paragraph.
<p>Text paragraph</p>
- Anchor Tag: Creates a link to another page.
<a href="URL">Link Text</a>
- Image Tag: Inserts an image into the webpage.
<img src="imageURL" alt="Alternate Text">
- List Tags: Create ordered lists 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>
Thank you for putting in the effort to learn the framework of websites with our HTML lectures 🙌
In the next lesson, we will delve into CSS, which dresses the webpage, and learn what it is and how to use it!
What tag contains the content of a webpage in an HTML document?
<head>
<title>
<body>
<html>
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help