html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
. Common HTML elements include headings, paragraphs, links, images, lists, tables, and forms, with a sample program demonstrating a simple webpage with a contact form.">
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
We take content rights seriously. If you suspect this is your content, claim it here.
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
We take content rights seriously. If you suspect this is your content, claim it here.
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