HTML tables allow us to arrange data into rows and columns on the web page. We use the tag, to create table in HTML. A table consist of rows and columns. Table heading, row and column and table data can be set using one or more , , and elements. A table row is defined by the tag. For table rows and columns, we use , tags respectively inside the … tag. Example Following is the example program to create table rows and column. DOCTYPE html> ... Read More
To create table header in HTML, use the … tag. A table header tag is surrounded by the table row …. The tag is surrounded by the tag. A table consist of a rows and columns, which can be set using one or more , , and elements. Use the style attribute to add CSS properties for adding a border to the table. A table row is defined by the tag. To create table header, use the tag. Just keep in mind that you can only have a single heading in a table. Syntax ... Read More
Responsive images will automatically adjust to the size of the screen and to the tab size. To make image responsive first we must add image to the web page using tag, then by using style sheet we can change the parameters of the image to make an image responsive in HTML. Syntax Following is the syntax to make an image responsive in HTML. Example Following is the example program to make an image responsive in HTML. In here, we have used inline style sheet. DOCTYPE html> Responsive Image ... Read More
We use HTML tag defines a hyperlink used to link web pages. The href attribute of the tag, which indicates the link's destination. Which provides us option to specify an email address. To create a link to send mail we use mailto:to specify email address inside href attribute in HTML. Syntax Following is the syntax to link a mail address to the web page. xx@gmail.com Same as the way we link a mobile number. We use mailto instead of tel inside a href attribute. Example Following is the example program to link a mail address to the ... Read More
A bookmark is helpful when you want to remember the web page for future reference. You can access that bookmark at any time to view the web page again. We use HTML links to create bookmarks, so that we can jump to specific parts of a web page. Bookmarks can be useful if a web page is long. When we click on the link, the page will scroll down or up to the location with the bookmark specified on the web page. Syntax First, we should use the id attribute to create a bookmark text… Then, add a link ... Read More
We use the target attribute of the … tag, to change the target value of the link. The target attribute can be used to open any link in a new tab, current tab and so on. _blank − link will open in a new tab. _self − link will open in the current tab. _parent − link will open in a parent frame. _top − link will open in the top frame. Syntax Following is the syntax to change the target of a link in HTML. Link text… Example Following is the example program to change the ... Read More
Tree is a hierarchical data structure which includes nodes and edges to it. Edges in tree acts as links connecting two nodes. The Preorder tree traversal is a technique where the root node will be traversed first and then it will traverse the left subtree followed by the right subtree. It will represent as ROOT → LEFT → RIGHT Algorithm These are the following steps to perform preorder tree traversal − Traverse the root node. Then, traverse the left subtree. Then, traverse the right subtree. To understand the preorder traversal better, consider the following binary search tree ... Read More
The tree is a data structure that is comprised of nodes and edges. These entities are interconnected to each other to form a tree structure. Traversing a data structure means visiting each and every node in that structure and bringing out a sequence of values from that. There are three types of traversals namely, in-order (L→ Root→R ), pre-order(Root→L→R) and, post-order(L→ R → Root) In-order Traversal In the In-order Traversal, the left subtree is visited first, followed by the Root node and finally the right subtree. A binary tree will provide sorted key values in ascending order if it is ... Read More
Linked List is an ordered collection of data elements. In linked list the data will be represented in Nodes. Node has two parts, the first part will be holding the data of the element and second part of the node (pointer) will store the address of the very next node. In linked list elements are stored in a sequential manner. Operations in Linked List There are several operations in Linked list, which are adding a node, deleting a node and searching a node. which are detailed in the below scenarios. Creating a Node Let’s see the scenario of linked list ... Read More
Array is a linear data structure, which is able to store elements of different datatypes. Arrays are also defined as ordered collections. In array each of the value will be referred to as an element and those can be identified with index numbers. const array_name = [item1, item2, ...]; const movies = [Bahubali, RRR, KGF, Pushpa]; //Index values of above elements Bahubali – [0] RRR – [1] KGF – [2] Pushpa – [3] Loops is a programming element, there will be a sequence of instructions defined in the loop and it will continue to iterate till ... Read More