Tutorialspoint

HTML DOM addEventListener() Method

Arjun Thakur
Answered on 21st Jun, 2019

The HTML DOM addEventListener() method is used to attach an event handler to the specified element.Following is the syntax −element.addEventListener(event, function, capture)Above, the parameters include −event: The name of the event. Required.function: The function to run when the event occurs. Required.capture: Whether the event should be executed in the capturing ... Read More

HTML <form> autocomplete Attribute

Ankith Reddy
Answered on 21st Jun, 2019

The autocomplete attribute of the <form> element allows you to set whether the autocomplete for the form should be on or off. The web browser automatically fills the values if the autocomplete is on. This only happens if the user already entered values before.Following is the syntax −<form autocomplete="on|off">Above, on ... Read More

HTML <font> Tag

George John
Answered on 21st Jun, 2019

The <font> tag in HTML is used to set font color, font family and font size. Following is the attributes −color: Set the color of the font.face: Set the font face i.e. family.size: Set the font sizeNote: The <font> tag isn’t supported in HTML5.Let us now see an example to ... Read More

HTML <embed> Tag

Chandu yadav
Answered on 21st Jun, 2019

The <embed> tag is used to include an external application in the HTML document.Following are the attributes −height: It is the height of the embedded content in pixels.src: Address of the external file to embed i.e. mention the URL.type: It is the media type that specifies the media type of ... Read More

HTML <dfn> Tag

Arjun Thakur
Answered on 21st Jun, 2019

The <dfn> tag in HTML is used to define the instance of a term in HTML, which is the initial use of a term.Let us now see an example to implement the <dfn> tag −Example Live Demo<!DOCTYPE html> <html> <body> <h2>Subjects in MCA</h2> <p><dfn title="Master of Computer Applications">MCA</dfn> is a 3-year ... Read More

HTML DOM activeElement Property

Ankith Reddy
Answered on 21st Jun, 2019

The HTML DOM activeElement property is a read-only property to return the currently focused element in the document.Following is the syntax −document.activeElementLet us now see an example to implement the DOM activeElement property −Example Live Demo<!DOCTYPE html> <html> <body onclick="display()"> <h2>Heading Two</h2> <p>Click in the element to get the active element.</p> ... Read More

HTML DOM accessKey Property

George John
Answered on 21st Jun, 2019

The HTML DOM accessKey property is used to set the accessKey attribute of an element. However, the accesskey attribute in HTML is used to set a shortcut key to activate or focus on an element.Following is the syntax to set the accessKey property −HTMLElementObject.accessKey = charAbove, char is the shortcut ... Read More

HTML <center> Tag

Chandu yadav
Answered on 21st Jun, 2019

The center tag in HTML is used to center align text.Note: The <center> tag isn’t supported in HTML5. CSS usage is suggested.Let us now see an example to implement the center tag in HTML −Example Live Demo<!DOCTYPE html> <html> <head> <style> table, th, td {    border: 2px solid blue; } ... Read More

HTML canvas shadowColor Property

Arjun Thakur
Answered on 21st Jun, 2019

The shadowColor property of the HTML canvas is used to set the color for shadow. The default value is #000000.Following is the syntax −ctx.shadowColor=color;Above, set the color for shadow.Let us now see an example to implement the shadowColor property of canvas −Example Live Demo<!DOCTYPE html> <html> <body> <canvas id="newCanvas" width="600" height="350" style="border:2px solid orange;"> </canvas> <script> ... Read More

HTML <time> datetime Attribute

Ankith Reddy
Answered on 21st Jun, 2019

The datetime attribute of the <time> element is used to display the machine-readable date time.Following is the syntax −<time datetime="YYYY-MM-DDThh:mm:ssTZD">Above, the attribute datetime displays the datetime −YYYY - yearMM - monthDD - day of the monthhh - hourmm - minutesss - secondsTZD - Time Zone DesignatorYou can also set PTDHMS −P ... Read More

HTML DOM Object Width Property

George John
Answered on 21st Jun, 2019

The HTML DOM Object Width property is used to set or return the width of an object. This width is set in pixels. Following is the syntax to set the width of an object −objObject.widthFollowing is the syntax to return the width of an object −objObject.width = pixelsAbove, pixels is ... Read More

HTML defaultPrevented Event Property

Chandu yadav
Answered on 21st Jun, 2019

The defaultPrevented event property in HTML is used to check whether the preventDefault() method was called or not. It returns a boolean value i.e. true if the preventDefault() method was called, else false.Following is the syntax −event.defaultPreventedLet us now see an example to implement the defaultPrevented event property in HTML ... Read More

How to change css styles of elements in JavaScript?

vineeth.mariserla
Answered on 21st Jun, 2019

JavaScript can change Css styles such as color, font size etc. of elements using some methods such as getElementById(), getElementByClassName() etc.In the following example font style and font size of the elements have changed using getElementById() method.Example-1Live DemoIn the following example, using style commands "style.fontSize" and "style.fontStyle", the provided texts are changed ... Read More

What is Thick Ethernet?

Moumita
Answered on 21st Jun, 2019

Thick Ethernet was the first commercially available form of cabling supported by Ethernet. It is technically known as 10-BASE-5. Here, 10 is the maximum throughput, i.e. 10 Mbps, BASE denoted use of baseband transmission, and 5 refers to the maximum segment length of 500 metres (1, 600 ft). This type ... Read More

What is DIX Standard?

Moumita
Answered on 21st Jun, 2019

DIX standard is a popular standard for Ethernet that was put forth in 1978. The name DIX is an abbreviation of the three organizations who implemented it, namely DEC, Intel and Xerox. DIX Ethernet provides data speed of 10 Mbps.DIX Ethernet is also known as Ethernet II framing. The main ... Read More

Previous 1 ... 3 4 5 6 7 8 9 ... 1449 Next
Advertisements
Loading...
Unanswered Questions View All

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.