HTML DOM Table Caption Property

AmitDiwan
Updated on 19-Sep-2019 13:03:42

158 Views

The HTML DOM table createCaption() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.createCaption()Let us see an example of HTML DOM table createCaption() method −Example Live Demo    body {       color: #000;       background: lightblue;       height: 100vh;       text-align: center;    }    table {       margin: 2rem auto;    }    caption {       color: #db133a;    }    .btn {       background: #db133a;       border: none;     ... Read More

HTML isTrusted Event Property

AmitDiwan
Updated on 19-Sep-2019 12:59:00

128 Views

The HTML isTrusted event property returns a boolean value corresponding to whether the event is trusted or not.NOTE − If invoked by a script the isTrusted returns false and if invoked by user then isTrusted returns true.Let us see an example of isTrusted event property −Example Live Demo HTML isTrusted    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML Input Value Attribute

AmitDiwan
Updated on 19-Sep-2019 12:52:56

245 Views

The HTML input value attribute is used to set/return the value of value attribute.Let us see an example of Input value property −Example Live Demo Input URL value    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } URL-value URL Id:    var divDisplay = document.getElementById("divDisplay");    var inputURL = ... Read More

HTML Input Readonly Attribute

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

265 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

153 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

169 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

372 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

Advertisements