Send an Email Using HTML Forms

Giri Raju
Updated on 02-Sep-2023 13:19:23

58K+ Views

To send an email using HTML forms, you need to add the email id to the action attribute of the form. In that, add email proceeding with mailto: i.e. mailto:emailid@example.com.ExampleYou can try to run the following code to send an email using HTML forms −Live Demo           Student Contact Form                Student Name:          Student Subject:                    

Print Multiplication Table Using For Loop in C

Bhanu Priya
Updated on 02-Sep-2023 13:18:25

82K+ Views

A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.AlgorithmGiven below is an algorithm to print multiplication table by using for loop in C language −Step 1: Enter a number to print table at runtime. Step 2: Read that number from keyboard. Step 3: Using for loop print number*I 10 times.       // for(i=1; i

Use Animated Image in HTML Page

Lokesh Badavath
Updated on 02-Sep-2023 13:17:00

52K+ Views

Animated images in HTML are an image on a web page that moves. It is in GIF format i.e. Graphics Interchange Format file. We need to use the tag with the src attribute to add an animated image in HTML. The src attribute adds the URL of the image (file destination). Also, we can set the height and width of the image using the height and width attribute. Syntax Example 1 Following is an example to show how to use an animated image in HTML page − DOCTYPE html> ... Read More

Merge Table Cells in HTML

Lokesh Badavath
Updated on 02-Sep-2023 13:15:09

78K+ Views

We use the colspan and rowspan attribute, to merge cells in HTML. The rowspan attribute is for the number of rows a cell should merge, whereas the colspan attribute is for the number of columns a cell should merge. The attribute should be placed inside the tag. Syntax Following is the syntax to merge table cells in HTML. cell data Example Following is the example program to merge the row cells of the table in HTML. DOCTYPE html> table, tr, th, td { ... Read More

Get Only Date Portion from DateTime Object in C#

Nizamuddin Siddiqui
Updated on 02-Sep-2023 13:12:30

65K+ Views

There are several ways to get only date portion from a DateTime object.ToShortDateString() − Converts the value of the current DateTime object to its equivalent short date string representation.Returns a string that contains the short date string representation of the current DateTime object.ToLongDateString() − Converts the value of the current DateTime object to its equivalent long date string representation.Returns a string that contains the long date string representation of the current DateTime object.ToString() − One more way to get the date from DateTime is using ToString() extension method.The advantage of using ToString() extension method is that we can specify the ... Read More

Read JSON File in Java

raja
Updated on 02-Sep-2023 12:55:51

61K+ Views

The JSON is one of the widely used data-interchange formats and is a lightweight and language independent. The json.simple is a lightweight JSON processing library that can be used to read and write JSON files and it can be used to encode or decode JSON text and fully compliant with JSON specification (RFC4627). In order to read a JSON file, we need to download the json-simple.jar file and set the path to execute it.json fileExampleimport java.io.*; import java.util.*; import org.json.simple.*; import org.json.simple.parser.*; public class JSONReadFromTheFileTest {    public static void main(String[] args) {       JSONParser parser = new JSONParser();       try {     ... Read More

Detect Mobile Device with JavaScript

Prince Varshney
Updated on 02-Sep-2023 12:54:48

69K+ Views

In this tutorial, we are going to learn how can we detect a mobile device over which we are working using JavaScript. Approach 1: Using the navigator.userAgent Property To detect a mobile device with JavaScript we are going to use the window navigator object which contains all the information regarding a browser. The property which we will use to detect a mobile device will be the userAgent property which is used to return the user-agent header sent to the server by the browser. The value we receive from this property is the browser name, version, and platform i.e., all the ... Read More

Components of DBMS

Bhanu Priya
Updated on 02-Sep-2023 12:51:31

76K+ Views

Hardware, Software, Data, Database Access Language, Procedures and Users all together form the components of a DBMS.Let us discuss the components one by one clearly.HardwareThe hardware is the actual computer system used for keeping and accessing the database. The conventional DBMS hardware consists of secondary storage devices such as hard disks. Databases run on the range of machines from micro computers to mainframes.SoftwareSoftware is the actual DBMS between the physical database and the users of the system. All the requests from the user for accessing the database are handled by DBMS.DataIt is an important component of the database management system. ... Read More

Select Last Row in MySQL

Chandu yadav
Updated on 02-Sep-2023 12:47:00

60K+ Views

To select the last row, we can use ORDER BY clause with desc (descending) property and Limit 1. Let us first create a table and insert some records with the help of INSERT command. The query is as follows. mysql> create table getLastRecord -> ( -> Id int, -> Name varchar(100) -> ); Query OK, 0 rows affected (0.61 sec) After creating the above table, we will insert records with the help of INSERT command. mysql> insert into getLastRecord values(1, 'John'); Query OK, 1 row affected (0.13 sec) ... Read More

Delete Key from a Map in Golang

Kiran Kumar Panigrahi
Updated on 02-Sep-2023 12:44:08

63K+ Views

To delete a key from a map, we can use Go's built-in delete() function. It should be noted that when we delete a key from a map, its value will also be deleted as the key-value pair is like a single entity when it comes to maps in Go.SyntaxThe syntax of the delete function is shown below.delete(map, key)Once we call the function in the above format, then the key from the map will be deleted.Now, let's use the above function in Go code and understand how it works.Example 1Consider the code shown belowpackage main import (    "fmt" ) ... Read More

Advertisements