HTML Elements

HTML Elements : Defining Web Document

  1. Every control visible on website such as paragraph, buttons, images are called as HTML Element
  2. HTML provides some pre-defined elements those are –
    • Anchor Element
    • List Elements
    • Table Element
    • Image Element
  3. HTML documents are defined by HTML elements.

Writing HTML Element

It is very simple task to write HTML element. We have pre-defined set of HTML elements and each element is represented using the starting and ending tag.

<starttag> Element Data </endtag>

In this case you can we have wrapped message text in the pair of opening and closing tags. Consider the following example –

<h2>This is H2 Type heading</h2>

HTML Tags are used to tell browser, how to show elements and how to represent the webpage.

Few HTML Elements

Start tag Element content End tag
<h1> Sample Heading 1 </h1>
<p> Sample paragraph 1 </p>