HTML notes

tags


hr: The


tag defines a thematic break in an HTML page (e.g. a shift of topic).

The


element is used to separate content (or define a change) in an HTML page.


input:http://www.w3schools.com/tags/tag_input.asp

<input type="password" name="pwd">


Form :http://www.w3schools.com/tags/tag_form.asp

Drop down box :http://www.w3schools.com/tags/tag_optgroup.asp

Field set :http://www.w3schools.com/tags/tag_fieldset.asp

table :http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_tbody


Layout :http://www.w3schools.com/html/html_layout.asp


Global attributes: those attributes can be used in any html element


class name<element class="classname">

Specifies one or more class names for an element. To specify multiple classes, separate the class names with a space, e.g. . This allows you to combine several CSS classes for one HTML element.

Naming rules:

  • Must begin with a letter A-Z or a-z
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), and underscores ("_")
  • In HTML, all values are case-insensitive


Head and Header

The

element represents a container for introductory content or a set of navigational links.

A

element typically contains:

  • one or more heading elements (

    -

    )
  • logo or icon
  • authorship information

You can have several

elements in one document.

Note: A

tag cannot be placed within a