- This head tag is the place where the metadata(data about the stored data of the document) is stored. It is the first element in an HTML document.
- This style tag is used to contain or link CSS styling of the HTML page using attributes such as media, type, and scoped.
- It is usually placed inside the head element.
- This body tag is the place that is the core area of the HTML document.
- It includes the content of the page.
- It is used just once on an HTML page.
- This h2 tag is the heading of the HTML page. The value 2 specifies the degree of heading.
- There can be multiple headings in one document of different degrees (from higher to lower). Eg: <h1>,<h2>,<h3>,<h4>, and so on.
- This button tag specifies the clickable button in an HTML page with a particular attribute associated with it.
- There are a number of type attributes that the button tag can contain.
- For example: autofocus, form_id, name,value, and so on.*
- This table tag is used to form a structure of a table in an HTML document which can be further filled with data.
- The document.getElementById() method in HTML DOM (Document Object Model), is the most common and easiest way of accessing the form elements in a HTML document.
- The insertRow() method is used in an HTML page to generate empty <tr> elements and then they added to the table.
- The insertCell() method is used in an HTML page to insert a particular cell inside a table.
- Here, the Create button will add one row each time.
- We can see that 2 rows are added to the page.
- The Create button invokes the function CreateTable() which starts adding rows to the page.
- We can clearly see that now there are 4 rows created on this HTML page.
- We can add as many rows as we want by clicking the Create button multiple times.