HTML is the standard markup language for creating Web pages.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<!DOCTYPE html>
declaration defines this document to be HTML5<html>
element is the root element of an HTML page<head>
element contains meta information about the document<title>
element specifies a title for the document<body>
element contains the visible page content<h1>
element defines a large heading<p>
element defines a paragraph<a href="url">link text</a>
<a href="https://app.revature.com">Visit our learning platform</a>
<img>
tag.<img>
tag is empty, it contains attributes only, and does not have a closing tag.src
attribute specifies the URL (web address) of the image:<img src="img_chania.jpg" alt="Flowers in Chania">
There are two types of lists in HTML :
An unordered list starts with the <ul>
tag. Each list item starts with the <li>
tag.
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
An ordered list starts with the <ol>
tag. Each list item starts with the <li>
tag.
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>