HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |
| ||||||||||||||||||
ElementsHTML documents are defined by HTML elements. HTML Elements
HTML Element Syntax
Nested HTML ElementsMost HTML elements can be nested (can contain other HTML elements).HTML documents consist of nested HTML elements. HTML Document Example
HTML Example ExplainedThe <p> element:
The <p> element defines a paragraph in the HTML document. The <body> element:
The <body> element defines the body of the HTML document. The <html> element:
The <html> element defines the whole HTML document. Don't Forget the End TagSome HTML elements might display correctly even if you forget the end tag:
The example above works in most browsers, because the closing tag is considered optional. Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget the end tag . Empty HTML ElementsHTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). HTML Tip: Use Lowercase TagsHTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML. |
||||||||||||||||||
© 2011 d4download.orgfree, All Rights Reserved.
Design created by diljith d4download.orgfree.com veriosn 2.0
HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |