HTML Input Readonly Attribute

AmitDiwan
Updated on 19-Sep-2019 12:47:44

280 Views

The HTML input readonly attribute is used to declare an input element unmodifiable, though it still may be copied.Let us see an example of Input readOnly property −Example Live Demo Input Email readOnly    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Email-readOnly Contact Us :    var divDisplay = document.getElementById("divDisplay"); ... Read More

HTML High Attribute

AmitDiwan
Updated on 19-Sep-2019 12:36:57

172 Views

The HTML high attribute is used with a gauge to specify the high value of that gauge. Use it with max, min, low attributes of gauge to get better results.Let us see an example of Meter high property −Example Live Demo Meter high    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Meter-high Paula's Health Risk: ... Read More

HTML for Attribute

AmitDiwan
Updated on 19-Sep-2019 12:04:57

187 Views

The HTML for attribute bounds the element to the first labelable element which has an id same as the value of for attribute.SyntaxFollowing is the syntax −1. Returning value of for attribute −labelObject.htmlForExampleLet us see an example of for attribute − Live Demo Label htmlFor    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Label-htmlFor Current Editor: ... Read More

HTML File Paths

AmitDiwan
Updated on 19-Sep-2019 11:59:13

402 Views

File path in a website is the location of a file in that website. This path might be relative (in reference to current path) or absolute (full URL of file).SyntaxFollowing is the syntax:1) Relative pathsrc="ImgFolder/picture.jpg"Orsrc="../ImgFolder/picture.jpg"Orsrc="/ImgFolder/picture.jpg"2) Absolute pathsrc="http://www.tutorialspoint.com/html5/foo.mp4"Let us see an example of HTML DOM Video src property−Example Live Demo HTML DOM Video src    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML Entities

AmitDiwan
Updated on 19-Sep-2019 11:45:39

188 Views

In HTML, some characters are reserved for syntax declaration. Using these characters in text might cause unwanted errors. For example, you cannot use the greater than and less than signs or angle brackets within your HTML text because the browser will treat them differently and will try to draw a meaning related to HTML tag.NOTE  − Entity names are case sensitive so should be used as they are.SyntaxFollowing is the syntax:&entity_nameOr&#entity_numberFollowing are some of the useful entities:ResultDescriptionEntity NameEntity Numbergreater than>>&ersand&&"double quotation mark""'single quotation mark (apostrophe)'$£Pound££¥Yen¥¥€Euro€€©Copyright©©®registered trademark®®Read More

C++ Interview Questions Based on Constructors and Destructors

sudhir sharma
Updated on 19-Sep-2019 10:36:22

1K+ Views

C++ interview questions on ConstructorsWhat is a constructor?A constructor is a function of a class that has the same name as the class. The constructor is called at the time of the initialization of object. There are three types of constructors −Default constructorParameterized constructorCopy constructorSyntaxclass cl_name{    cl_name(){       //This is constructor..    } }What is a destructor?A destructor is a method of a class that has the same name as the class preceded by a tild ~ symbol. It is called at the end of code or when the object is destroyed or goes out of scope.Syntaxclass ... Read More

C++ Floating Point Manipulation

sudhir sharma
Updated on 19-Sep-2019 09:16:51

2K+ Views

Numerical implementation of a decimal number is a float point number. In C++ programming language the size of a float is 32 bits. And there are some floating point manipulation functions that work on floating-point numbers. Here we have introduced some of the floating-point manipulation functions.fmod()The fmod() function operating on floats will return the remainder of the division of the passed arguments of the method.Example Live Demo#include #include using namespace std; int main() {    float a, b, rem;    a = 23.4;    b = 4.1;    rem = fmod(a,b);    cout

Find IP Address, Subnet Mask and Default Gateway in C

sudhir sharma
Updated on 19-Sep-2019 09:09:18

1K+ Views

C programming language can be used to find the details of the Internet connection of the system. Now, let’s learn about the basics terms that we need in this problem.IP Address − IP Address stands for Internet Protocol address. An IP address is a fixed numerical identification number that is associated with each device. IP address allows communication of your device using IP address over the internet.Subnet Mask − A 32-bit component of the IP address. The subnet mask differentiates the network component of IP address into two parts of the IP address. One being network address and other being ... Read More

Find Direction of Growth of Stack in C

sudhir sharma
Updated on 19-Sep-2019 09:07:16

779 Views

A stack is a data structure that stores elements. There are two operations on the stack. push that adds a new element to the stack. pop that removes an element from the stack.The stack can grow upward and downward according to the nature of the program that uses it. The program to find the direction of the growth of stack in a program.AlgorithmStep 1: Create a local variable in the main function. Step 2: Create a function that with a local variable. Step 3: Call the function from the main function. And then compare the local variables of in both ... Read More

Compare Two Files and Report Mismatches in C

sudhir sharma
Updated on 19-Sep-2019 09:04:22

9K+ Views

In the C programming language, the programmer can excess the files and read and write content in them.A file is a simple memory block that can store information, here we are concerned with text only.In this program, we will compare two files and report mismatches that occur. These files are almost identical but may have some characters that are different. Also, the program will return the line and position of the file at which the first mismatch occurs.AlgorithmStep 1: Open both the file with pointer at the starting. Step 2: Fetch data from file as characters one by one. Step ... Read More

Advertisements