Home Advertise with us Forum Articles Sitemap Contact

HTML Elements

HTML elements along with other nodes are what make up an HTML document. Each of these elements can have specific attributes. The HTML elements are primarily meant to represent semantics or meaning & may also include content.

Eg :The body element defines the document's body.

According to the HTML syntax, elements are most often written with a start tag & end tag having the content in between. These tags are nothing but the name of the element enclosed by angle brackets. The only difference between the start tag & the end tag is that the end tag also has a slash after the opening angle bracket along with the element name.

Eg: <body> The document's body starts from here </body>

While most elements are required to be written with a start & end tag, there are also elements known as " void elements " which do not require any of these tags. Such empty elements can be closed in the start tag.
Eg: The " br element " which is commonly used to represent a line break

An interesting feature of these HTML elements is that, they can not only include content between them but can also contain other HTML elements. These are known as " Nested HTML Elements ".




This section is called the body.



HTML Tip 1

Use only hexadecimal #RGB values for colors. The behavior of named colors is browser-idiosyncratic and totally unpredictable.

HTML Tip 2

You can resize your images without a graphics program by changing the HEIGHT and WIDTH in your image tag.