HTML Slide
HTML Slide
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
● HTML Paragraph
<!DOCTYPE html>
<html>
. <body>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
** Syntax
<img src="url" alt="alternatetext">
● HTML Link
.
HTML links are hyperlinks.
Example:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
.
2-Ordered List
The HTML <ol> tag defines an ordered list
.
• Example:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
● HTML Block Element
The <div> Element
The <div> element is often used as a container for other HTML elements.
. The <div> element has no required attributes, but style, class and id are common.
When used together with CSS, the <div> element can be used to style blocks of content.
Example:
<div style="background-color:black;color:white;padding:20px;">
<h2>London</h2>
<p>
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan
area of over 13 million inhabitants.
</p>
</div>
● HTML Forms
The HTML <form> element is used to create an
HTML form for user input:
.
Example:
<form>
<label >First name:</label><br>
<input type="text" ><br>
<label >Last name:</label><br>
<input type="text" >
</form>