HTML Complete Presentation with Codes
Definition of HTML
HTML (HyperText Markup Language) is used to create and structure webpages using tags and
elements.
Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first webpage</p>
</body>
</html>
Common HTML Tags
Some commonly used HTML tags:
<h1>Heading</h1>
<p>Paragraph</p>
<a href="[Link]
<img src="[Link]" alt="image">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
HTML Attributes
Attributes provide extra information to elements.
<a href="[Link] Google</a>
<img src="[Link]" alt="My Image">
HTML Forms Example
<form>
Name: <input type="text"><br>
Password: <input type="password"><br>
<input type="submit">
</form>
HTML5 Example
<video controls>
<source src="movie.mp4" type="video/mp4">
</video>
<audio controls>
<source src="sound.mp3" type="audio/mpeg">
</audio>
Advantages
Easy, free, supported by all browsers.