Skip to content

Category Archives: HTML

Example: In this example, we simply display the GeeksforGeeks URL using DOM URL Property. HTML <!DOCTYPE html> <html>    <body>   <h2>GeeksforGeeks</h2>   <p id="GfG">     GeeksforGeeks URL:<br/>… Read More
The console.info() method in HTML is used for writing a message in the console. It indicates an important message about any element or object. The… Read More
The console.assert() method in HTML is used to write a message for user on the console only if the expression evaluates to false. The expression… Read More
The console.clear() method in HTML is used to clear the console and writes some message “Console was cleared” on the console whenever it is executed.… Read More
The console.group() method in HTML is used to create a group of messages in the console. It indicates the start of a message group and… Read More
The console.groupEnd() method in HTML is used to indicate the end of a group of messages in the console which has been created using the… Read More
The console.count() method in HTML is used to write the number of times the console.count() method is called. The console.count() method can be added to… Read More
The console.groupCollapsed() method in HTML is used to create a collapsed group of messages in the console. It indicates the start of a collapsed message… Read More
The console.error() method in HTML is used to display an error message on the console. The console.error() method is used for testing purpose. The error… Read More
The writeln() method is used to write a document with additional property of newline character after each statement. This method is similar to the document.write()… Read More
The DOM doctype property is used to return the doctype of any HTML document. The DocumentType object is the name property used to returns the… Read More
The space between two rows in a table can be done using CSS border-spacing and border-collapse property. The border-spacing property is used to set the… Read More
This createAttribute() method is used to create an attribute with the specified name and returns the attribute object. The attribute.value property is used to set… Read More
The display property in CSS is very useful and commonly used property which contains many values. This article contains display:inline and display:inline-block property. “display: inline”… Read More
It is called pseudo-selector and used to select all the elements when the user move mouse over the elements. It can be used on all… Read More