Doctype: It is a declaration to the web browser about what version of HTML
the page is written in.
It is a keyword followed by a greater-than symbol. For HTML5, you would
write:
<!DOCTYPE html>
------------------------------------------------------------------
Comments: You can add comments in your HTML code, which won't be displayed in
the browser.
They are denoted by <!-- and --> for opening and closing the comment.
For example:
<!-- This is a comment -->
------------------------------------------------------------------
Headings: HTML has six levels of headings, with <h1> being the largest and
<h6> being the smallest. <h1> is generally used for the main title or heading of
the page.
<h1>Main Heading</h1>
------------------------------------------------------------------
Paragraphs: HTML paragraphs are defined with the <p> tag.
<p>This is a paragraph.</p>
------------------------------------------------------------------
Lists: There are two types of lists in HTML: ordered and unordered.
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
or
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
------------------------------------------------------------------
Links: Links are defined using the <a> tag.
You can create links to other web pages or to specific parts of the same
page.
<a href="[Link] Google</a>
------------------------------------------------------------------
Images: Images are added to HTML pages using the <img> tag.
<img src="[Link]" alt="Description of the image">
------------------------------------------------------------------
Tables: HTML tables are created with the <table>, <tr>, <th>, and <td> tags.
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1,