- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 8862 Articles for Front End Technology
17 Views
The element in HTML in HTML 4 was used to underlined a text on a web page, but HTML5 redefined to display text different from normal text.Let us now see an example to implement the tag−Example Live Demo Shortcut Keys Use the following shortcut keys: Cut: CTRL+X Copy: CTRL+C Paste: CTRL+V Undo: CTRL+Z OutputIn the above example, we have used the tag to display a text other than the default normal text−Use the following shortcut keys: Cut: CTRL+X
50 Views
The element in HTML is used to set keyboard input. Since the element deprecated now, therefore use instead.Note: The tag is not supported in HTML.Let us now see an example to implement the tag in HTML−Example Live Demo Shortcut Keys Use the following shortcut keys: Cut: CTRL+X Copy: CTRL+C Paste: CTRL+V Undo: CTRL+Z OutputIn the above example, we have set the shortcut keys using the element−Paste: CTRL+VWe have set one of the shortcut for pasting text as shown above −CTRL + V
1 Views
The placeholder attribute of the element is used to set a placeholder text in the textarea. A placeholder is considered as a hint, like “Enter you name”, “Enter mobile number”, “Write in 100 words”, etc.Following is the syntax−Above, text is the hint you want to set for the textarea as a placeholder text.Let us now see an example to implement the placeholder attribute of the element−Example Live Demo Interview Questions Q1 Q2 OutputIn the above example, we have set two textarea−Q1 Q2 To display a placeholder text, the placeholder ... Read More
1K+ Views
The clearRect() method in HTML canvas is used to clear the pixels in a given rectangle. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height and width respectively.Following is the syntax −ctx.clearRect(p, q, width, height);Above, p: The x-coordinate of the upper-left corner of the rectangle to clearq: The y-coordinate of the upper-left corner of the rectangle to clearwidth: Width of the rectangle to clearheight: Height of the rectangle to clearLet us now see an example to implement the clearRect() ... Read More
89 Views
The cancelable event property in HTML checks whether an event is a cancelable event or not. The values include TRUE if it is a cancelable event, else FALSE is returned.Following is the syntax −event.cancelableLet us now see an example to implement the cancelable event property −Example Live Demo Checking cancelable event The below button will display whether the event is cancelable or not. Click me function myFunction(event) { var val = event.cancelable; document.getElementById("myid").innerHTML = val; } OutputNow, click on the button to display whether the event is cancelable or not. A boolean value would be returned −
71 Views
The start attribute of the element is used to set the start value of the first list item.. Following is the syntax−Above, num is the number set for the start value of the first list item. Let us now see an example to implement the start attribute of the element−Example Live Demo Last Semester MCA Result Rank from 1-5 Steve David Kane William John Rank from 5-10 Tom Jack Will ... Read More
57 Views
The area tag in HTML is used to set an area in image map.Following are the attributes −AttributeValueDescriptionalttextSpecifies an alternate text for the area.coordsif shape = "rect" then coords = "left, top, right, bottom"if shape = "circ" then coords = "centerx, centery, radius"if shape = "poly" then coords = "x1, y1, x2, y2, .., xn, yn"Specifies the coordinates appropriate to the shape attribute to define a region of an image for image maps.downloadfilenameSpecifies that the target gets downloaded when hyperlink is clicked by user.hrefURLSpecifies the URL of a page or the name of the anchor that the link goes to.hreflanglanguage_codeSpecifies ... Read More
0 Views
The cols attribute of the element is used to set the width of the textarea. The cols set it and the width is visible under the textarea itself.Following is the syntax −Above, num is the width of the textarea. The default value is 20.Let us now see an example to implement the cols attribute of the element −Example Live Demo Interview Questions Why do you want go for the Editor Job Profile? (100 words) Write the answer in 100 words only... What are your weaknesses? (50 words) ... Read More
82 Views
The HTML DOM Anchor port property is used to set or return the port of the href attribute.Following is the syntax to set the port property−anchorObj.port = numAbove, num is the port number of the url.Following is the syntax to return the port property−anchorObj.portLet us now see an example to implement the DOM Anchor port property−Example Live Demo Demo heading Services Display pathname Display hreflang Display port function display1() { var a = document.getElementById("mylink").pathname; document.getElementById("myid").innerHTML = a; } function display2() { ... Read More
98 Views
The min attribute of the element is used to set the minimum value for . Both min and max are used to set a range of value for input element with type number, date, datetime, range, etc. It introduced in HTML5.Let us now see an example to implement the min attribute of the element. Here, we have set min as 1, therefore a user cannot enter an ID less than 1−Example Live Demo Log in to your account Id: Password: DOB: ... Read More