Bhanu Priya

Bhanu Priya

1,060 Articles Published

Articles by Bhanu Priya

Page 21 of 106

What is CDATA in HTML?

Bhanu Priya
Bhanu Priya
Updated on 04-Oct-2023 4K+ Views

The full form of CDATA is Character Data, it is one of the sections in XML which is used to interpret character data. It treats the text data as raw text in character format. The Tags inside a CDATA section are not treated as markup and entities are also not expanded. CDATA section is recognized by the delimiter "]]>" - that indicates the end of the CDATA section. CDATA sections are not nested. Syntax The usage/syntax of CDATA used in XML is − syntax with example:- Example Following is the XML which demonstrates the usage of CDATA ...

Read More

Should I write my script in the body or the head of the HTML?

Bhanu Priya
Bhanu Priya
Updated on 04-Oct-2023 1K+ Views

In HTML, the script tag can be inserted either in head section or in body section, generally the java script code is inserted between script open and close tags. //JavaScript code here We can insert any number of scripts in an HTML document. Scripts can be placed in , or section or in both of an HTML page. Now, let’s see if there is any difference if we insert script in body or head of HTML. It is better to place the java script before closing of the tag rather than ...

Read More

What is the difference between id and name attributes in HTML?

Bhanu Priya
Bhanu Priya
Updated on 04-Oct-2023 3K+ Views

ID attribute ID is an input form element, and it has nothing to do with data contained within the element. Input element ids are for hooking the element with JavaScript and CSS. By using id attribute, we can validate and manipulate the value of an element at client side. In java script, using id attribute we can get the value of input element. document.getElementById("id").value; In CSS, ID attribute is referenced with # character. #id If we consider HTML elements, the ID attribute is unique identifier, it is a case sensitive and begins with a letter, In ...

Read More

What is the difference between HTML tags <div> and <span>?

Bhanu Priya
Bhanu Priya
Updated on 04-Oct-2023 3K+ Views

We can use both DIV and SPAN tags as a Container, as they both have their own specialty. Both are HTML5 tags. First let us discuss about DIV Tag in detail with examples. DIV TAG DIV helps in separating the data like text, images, navigation bar etc., we can also create particular sections by using the DIV tag, it consists of open and close tags , both open and close tags are compulsory if we want to divide the page. DIV tags can be styled with CSS or manipulated with JavaScript, it is easily styled by using the class ...

Read More

How can I use multiple submit buttons in an HTML form?

Bhanu Priya
Bhanu Priya
Updated on 04-Oct-2023 13K+ Views

Generally, the forms in HTML uses a single submit button which saves the record when button is pressed. In some cases, we need a form with additional submit buttons such as "accept" or "reject". Those type of buttons usually attempt a state transition while updating the record. A form with multiple buttons has to process your server-side code needs to know which button was pressed. Generally, after submission the destination data is stored in the action attribute where every button leads to same location. To overcome this problem, we use formaction attribute. For each submit button we require a different ...

Read More

How to place two divs next to each other in HTML?

Bhanu Priya
Bhanu Priya
Updated on 29-Sep-2023 50K+ Views

DIV tag is nothing but a division tag, the name itself indicates that it makes divisions for the content on the web pages. It helps in separating the data like text, images, navigation bar etc., we can also create particular sections by using the DIV tag. A DIV tag consists of open and close tags , and both these tags are compulsory if we want to divide the page. DIV tags can be styled with CSS or manipulated with JavaScript, it is easily styled by using the class or id attribute. Any sort of data can be placed inside ...

Read More

Explain string library functions with suitable examples in C

Bhanu Priya
Bhanu Priya
Updated on 14-Sep-2023 41K+ Views

String Library functionsThe predefined functions which are designed to handle strings are available in the library string.h. They are −strlen ()strcmp ()strcpy ()strncmp ()strncpy ()strrev ()strcat ()strstr ()strncat ()The strlen () functionIt returns the number of characters in a string.Syntaxint strlen (string name)Example#include main (){    char a[30] = “Hello”;    int l;    l = strlen (a);    printf (“length of the string = %d”, l);    getch (); }Outputlength of the string = 5The strcpy () functionIt is for copying source string into destination string.The length of the destination string >= source string.Syntaxstrcpy (Destination string, Source String);For ...

Read More

Explain the END OF FILE (EOF) with a C Program

Bhanu Priya
Bhanu Priya
Updated on 14-Sep-2023 31K+ Views

The End of the File (EOF) indicates the end of input.After we enter the text, if we press CTRL+Z, the text terminates i.e. it indicates the file reached end nothing to read.AlgorithmRefer to the algorithm given below for EOF.Step 1: Open file in write mode. Step 2: Until character reaches end of the file, write each character in filepointer. Step 3: Close file. Step 4: Again open file in read mode. Step 5: Reading the character from file until fp equals to EOF. Step 5: Print character on console. Step 6: Close file.ExampleFollowing is the C program for End of ...

Read More

Differentiate between the long-term, short-term, and medium-term schedulers.

Bhanu Priya
Bhanu Priya
Updated on 14-Sep-2023 30K+ Views

Before working on the difference between all three schedulers, let us recall the concept of process scheduler.Process scheduler is a part of the Operating system which schedules the process. If the process is in ready, waiting and running state it schedules it correctly and is also responsible for the allocation of the CPU processor to a specific task within a time interval.Also, when the task or process is completed it doesn't allow the CPU to sit idle. It will allocate the other task depending on its current state. If the process was in ready state it will allocate it to ...

Read More

What are different types of DBMS languages?

Bhanu Priya
Bhanu Priya
Updated on 14-Sep-2023 40K+ Views

Once data is stored or filled it requires manipulation like insertion, deletion, updating, and modification of data. For these operations a set of languages are provided by the database management system (DBMS). So, the database languages are used to read, update and store data in the database.The different types of DBMS languages are as follows −Data Definition Language (DDL) − Create, Drop, Truncate, Rename.Data Manipulation language (DML) − Select, Insert, Delete, Update.Data Control Language (DCL) − Revoke, Grant.Transaction Control Language (TCL) − Rollback, Commit.The DBMS languages are pictorially represented as follows −Data Definition Language (DDL)It is a language that allows ...

Read More
Showing 201–210 of 1,060 articles
« Prev 1 19 20 21 22 23 106 Next »
Advertisements