0% found this document useful (0 votes)
2 views

HTML_Basics

HTML (HyperText Markup Language) is the standard language for creating web pages, defining their structure with elements like headings, paragraphs, images, and links. A basic HTML document includes a doctype declaration, and key elements such as <html>, <head>, and <body>. Common HTML elements include headings, paragraphs, links, images, lists, tables, and forms, with a sample program demonstrating a simple webpage with a contact form.

Uploaded by

Olives
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HTML_Basics

HTML (HyperText Markup Language) is the standard language for creating web pages, defining their structure with elements like headings, paragraphs, images, and links. A basic HTML document includes a doctype declaration, and key elements such as <html>, <head>, and <body>. Common HTML elements include headings, paragraphs, links, images, lists, tables, and forms, with a sample program demonstrating a simple webpage with a contact form.

Uploaded by

Olives
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Introduction to HTML

1. Introduction

HTML (HyperText Markup Language) is the standard language for creating web pages. It defines
the structure of a webpage using elements like headings, paragraphs, images, and links.

2. Basic HTML Structure

An HTML document starts with a <!DOCTYPE html> declaration and contains the following key
elements:

<!DOCTYPE html>

<html>

<head>

<title>My First HTML Page</title>

</head>

<body>

<h1>Welcome to My Website</h1>

<p>This is a simple HTML document.</p>

</body>

</html>

3. Common HTML Elements

- Headings: <h1> to <h6>

- Paragraphs: <p>

- Links: <a href='https://example.com'>Click Here</a>

- Images: <img src='image.jpg' alt='Description'>

- Lists: <ul>, <ol>, <li>

- Tables: <table>, <tr>, <td>, <th>

- Forms: <form>, <input>, <button>, <textarea>


4. Sample Program: Simple Webpage with a Form

<!DOCTYPE html>

<html>

<head>

<title>Basic Form</title>

</head>

<body>

<h2>Contact Us</h2>

<form>

Name: <input type='text' name='name'><br><br>

Email: <input type='email' name='email'><br><br>

Message:<br>

<textarea rows='4' cols='30'></textarea><br><br>

<input type='submit' value='Submit'>

</form>

</body>

</html>

You might also like