HTML Tags

HTML tags

This is a list of tags used in the HTML language. Each tag starts with a tag opener (a less-than sign) and ends with a tag closer (a greater than sign). So HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are unclosed tags.

Syntax

<tag> content </tag>

Example

<TITLE> ... </TITLE>

Basic HTML

              Tag                             Description

1.       <!DOCTYPE>                 Defines the document type
2.       <html>                           Defines an HTML document
3.       <head>                          Defines information about the document
4.       <title>                            Defines a title for the document
5.       <body>                          Defines the document's body
6.       <h1> to <h6>                Defines HTML headings
7.       <p>                                 Defines a paragraph
8.       <br>                               Inserts a single line break
9.       <hr>                               Defines a thematic change in the content
10.    <!--...-->                         Defines a comment


Some Forms and Input Tags

            Tag                             Description

1.       <form>                          Defines an HTML form for user input
2.       <input>                          Defines an input control
3.       <textarea>                    Defines a multiline input control (text area)
4.       <button>                       Defines a clickable button
5.       <select>                         Defines a drop-down list
6.       <optgroup>                  Defines a group of related options in a drop-down list
7.       <option>                       Defines an option in a drop-down list
8.       <label>                           Defines a label for an <input> element
9.       <fieldset>                      Groups related elements in a form
10.    <legend>                       Defines a caption for a <fieldset> element