What Is HTML
What Is HTML
• These websites can then be viewed by anyone else connected to the Internet.
• It is relatively easy to learn, with the basics being accessible to most people in one
sitting; and quite powerful in what it allows you to create.
• The fact that it is hyper just means it is not linear — i.e. you can go to any place
on the Internet whenever you want by clicking on links — there is no set order to
do things in.
• HTML is a Language, as it has code-words and syntax like any other language.
How does HTML works?
• HTML consists of a series of short codes typed into a text-file by the site author
— these are the tags.
• The text is then saved as a html file, and viewed through a browser, like Internet
Explorer or firefox.
• browser reads the file and translates the text into a visible form, rendering the
page as the author had intended.
• Writing your own HTML entails using tags correctly to create your vision.
What is HTML Tag?
• The first tag in a pair is the start tag, the second tag is the end tag
• The end tag is written like the start tag, but with a forward slash
inserted before the tag name
The structure of an HTML element
HTML Element
• Any document starts with a heading. You can use different sizes for
your headings.
• HTML also has six levels of headings, which use the elements <h1>,
<h2>, <h3>, <h4>,
• <h5>, and <h6>. While displaying any heading, browser adds one line
before and one line after that heading.
Heading example
Paragraph Tag
• The window is divided into frames in a similar way the tables are
organized: into rows and columns.
Creating Frames
• The <frameset> tag defines how to divide the window into frames.
• Whereas <td> means table data and <th> means table head.
HTML Forms
• HTML Forms are required, when you want to collect some data from the site
visitor.
• For example, during user registration you would like to collect information such
as name, email address, credit card, etc.
• A form will take input from the site visitor and then will post it to a back-end
application such as CGI, ASP Script or PHP script etc.
• The back-end application will perform required processing on the passed data
based on defined business logic inside the application
• There are various form elements available like text fields, text-area fields, drop-
HTML Forms…
• The HTML <form> tag is used to create an HTML form and it has
following syntax:
Form Attributes
HTML Form Controls
There are three types of text input used on forms
• Single-line text input controls :is used for items that require only one
line of user input, such as search boxes or names. They are created
using HTML <input> tag.
• Password input controls: This is also a single-line text input but it
masks the character as soon as a user enters it.
• They are also created using HTML <input> tag
• Multi-line text input controls :This is used when the user is required
to give details that may be longer than a single sentence.
• They are created using HTML <textarea> tag
Input Attributes
Textarea Attributes
Checkbox Control