Structure
The HTML html tag is the container that contains all other HTML elements (except for the !DOCTYPE tag which is located before the opening html tag).
All other HTML elements are nested between the opening and tags.It indicates that the text is in HTML
ATTRIBUTES:
version Specifies the HTML DTD version of the document. The version attribute is deprecated - use the !doctype tag instead.
content Specifies the property's value.
scheme Specifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equiv Used for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
lang Language code
dir Specifies the direction of the text
The HEAD part of the document provides information about the document. It should not contain text or normal markup.
If a browser encounters such markup, it will assume it has arrived in the BODY section of the document already.
ATTRIBUTES:
profile Specifies the URI/URL of one or more meta data profiles.
lang Language code
dir Specifies the direction of the text
The main body of an HTML document where all of the content is placed. You must use this element and it should be used just once.
It must start immediately after the closing head tag and end directly before the closing html tag.
ATTRIBUTES:
background Specifies the URI/URL of a background image. This attribute is now deprecated.
text Specifies the text color. This attribute is now deprecated.
link Specifies the color of unvisited hyperlink text. This attribute is now deprecated.
vlink Specifies the color of visited hyperlink text. This attribute is now deprecated.
alink Specifies the color of active hyperlink text (i.e. when the user clicks on it). This attribute is now deprecated.
class Document wide identifier.
id Document wide identifier
lang Language code
dir Specifies the direction of the text
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Inline style (CSS)
bgcolor Background color
onload Intrinsic event
onunload Intrinsic event
onclick Intrinsic event
ondbclick Intrinsic event
onmousedown Intrinsic event
onmouseup Intrinsic event
onmouseover Intrinsic event
onmousemove Intrinsic event
onmouseout Intrinsic event
onkeypress Intrinsic event
onkeydown Intrinsic event
onkeyup Intrinsic event
The DIV tag is used to mark up divisions in a document. It can enclose paragraphs, headers and other block elements. Currently, you can only use it to set the default alignment for all enclosed block elements.
Future standards will most likely include more options for DIV.
ATTRIBUTES:
dir Specifies the direction of the text
class Document wide identifier.
id Document wide identifier
lang Language code
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Inline style (CSS)
align Specifies alignment (left, right, center, justify).
onclick Intrinsic event
ondbclick Intrinsic event
onmousedown Intrinsic event
onmouseup Intrinsic event
onmouseover Intrinsic event
onmousemove Intrinsic event
onmouseout Intrinsic event
onkeypress Intrinsic event
onkeydown Intrinsic event
onkeyup Intrinsic event
Meta Information
Document type declaration. This is used to let the browser know what version of HTML you are using.
If you don't use it, or if you get it wrong, the browser will assume you don't know what you're doing and switch to 'quirks mode', which will not render things as they should be.
Apparently it's more 'forgiving' but it actually seems to be quite random and confusing.
Example:
ATTRIBUTES:
NONE
Defines the title of a page. You must have a title element to produce a valid document and it must be placed within the head element.
It is usually displayed at the top of the browser's window, but also used to label a bookmark entry for the document and as a caption in search engine results.
ATTRIBUTES:
lang Language code
dir Specifies the direction of the text
ATTRIBUTES:
dir Specifies the direction of the text
class Document wide identifier.
id Document wide identifier
lang Language code
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Inline style (CSS)
href Specifies the URL of the resource document.
hreflang Language code of the destination URL
type The MIMEtype of content at the link destination
rel Describes the relationship between the current document and the destination URI.
alternate
appendix
bookmark
chapter
contents
copyright
glossary
help
home
index
next
prev
section
start
stylesheet
subsection
rev Describes a reverse between the destination URI and the current document. Possible values:
alternate
appendix
bookmark
chapter
contents
copyright
glossary
help
home
index
next
prev
section
start
stylesheet
subsection
target Specifies the target frame to load the page into. Possible values:
_blank
_self
_top
_parent
media Specifies the device the document will be displayed on. Possible values:
all
braille
print
projection
screen
speech
charset Defines the character encoding of the linked document.
onclick Intrinsic event
ondbclick Intrinsic event
onmousedown Intrinsic event
onmouseup Intrinsic event
onmouseover Intrinsic event
onmousemove Intrinsic event
onmouseout Intrinsic event
onkeypress Intrinsic event
onkeydown Intrinsic event
onkeyup Intrinsic event
ATTRIBUTES:
The DIV tag is used to mark up divisions in a document. It can enclose paragraphs, headers and other block elements. Currently, you can only use it to set the default alignment for all enclosed block elements.
Future standards will most likely include more options for DIV.
ATTRIBUTES:
dir Specifies the direction of the text
class Document wide identifier.
id Document wide identifier
lang Language code
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Inline style (CSS)
align Specifies alignment (left, right, center, justify).
onclick Intrinsic event
ondbclick Intrinsic event
onmousedown Intrinsic event
onmouseup Intrinsic event
onmouseover Intrinsic event
onmousemove Intrinsic event
onmouseout Intrinsic event
onkeypress Intrinsic event
onkeydown Intrinsic event
onkeyup Intrinsic event
Document type declaration. This is used to let the browser know what version of HTML you are using.
If you don't use it, or if you get it wrong, the browser will assume you don't know what you're doing and switch to 'quirks mode', which will not render things as they should be.
Apparently it's more 'forgiving' but it actually seems to be quite random and confusing.
Example:
ATTRIBUTES:
NONE
Defines the title of a page. You must have a title element to produce a valid document and it must be placed within the head element.
It is usually displayed at the top of the browser's window, but also used to label a bookmark entry for the document and as a caption in search engine results.
ATTRIBUTES:
lang Language code
dir Specifies the direction of the text
ATTRIBUTES:
dir Specifies the direction of the text
class Document wide identifier.
id Document wide identifier
lang Language code
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Inline style (CSS)
href Specifies the URL of the resource document.
hreflang Language code of the destination URL
type The MIMEtype of content at the link destination
rel Describes the relationship between the current document and the destination URI.
alternate
appendix
bookmark
chapter
contents
copyright
glossary
help
home
index
next
prev
section
start
stylesheet
subsection
rev Describes a reverse between the destination URI and the current document. Possible values:
alternate
appendix
bookmark
chapter
contents
copyright
glossary
help
home
index
next
prev
section
start
stylesheet
subsection
target Specifies the target frame to load the page into. Possible values:
_blank
_self
_top
_parent
media Specifies the device the document will be displayed on. Possible values:
all
braille
print
projection
screen
speech
charset Defines the character encoding of the linked document.
onclick Intrinsic event
ondbclick Intrinsic event
onmousedown Intrinsic event
onmouseup Intrinsic event
onmouseover Intrinsic event
onmousemove Intrinsic event
onmouseout Intrinsic event
onkeypress Intrinsic event
onkeydown Intrinsic event
onkeyup Intrinsic event
No comments:
Post a Comment