- 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, each time we click the Create button a row is added to the HTML page.
- We can see that 4 rows are added to the HTML page.
- The Create button invokes the function CreateTable() which adds rows to the page in one for each click.
- We can clearly see that now there is only one row left.
- The other 3 rows are deleted using the Delete button.
- The Delete button invokes the function RemoveRow() which starts deleting the rows from page one for each click.