HTML DOM console groupEnd() Method Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The console.groupEnd() method in HTML is used to indicate the end of a group of messages in the console that has been created using the console.group() method. This method does not accept any parameter. Syntax:console.groupEnd()Example: The below program illustrates the console.groupEnd() method in HTML html <!DOCTYPE html> <html> <head> <title>DOM console.groupEnd() Method</title> <style> h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM console.groupEnd() Method</h2> <p> To view the message in the console press the F12 key on your keyboard. </p> <script> console.log ("GeeksforGeeks offers the following courses:"); console.group("Courses"); console.log("1. fork python"); console.log("2. fork cpp"); console.log("3. fork java"); console.log("4. Interview preparation"); console.groupEnd(); console.log("GeeksforGeeks offers tutorials on the " + "following data structures :"); console.group("Data Structures"); console.log("1. Array"); console.log("2. Linked List"); console.log("3. Stack"); console.log("4. Queue"); console.groupEnd(); </script> </body> </html> Output:Supported Browsers: The browsers are supported by the console.groupEnd() method is listed below:Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML DOM embeds Collection S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM head Property The head property in HTML is used to return the first occurrence of the head if multiple heads in the document. It returns the reference of the head object, which represents the <head> elementSyntax: document.headReturn value: It returns the <head> element of the head object.Example: The 2 min read HTML DOM embeds Collection The DOM embeds collection property in HTML is used to return the collection of all embedded elements. The elements in the collection are sorted that appear in the source code. This property is used for read-only. Syntax: document.embedsProperty: This property contains a value length that returns the 3 min read HTML DOM console warn() Method The console.warn() method is used to write a warning message in the console. So open the console to display the output (warning message). Syntax:console.warn( message )Parameters: This method accepts single parameter message which is mandatory. This parameter is used to hold the warning message. Exa 2 min read HTML DOM console trace() Method This console.trace() method is used to display the trace which represents how the code ended up at a certain point. Syntax:console.trace( label )Parameters: This method accepts a single parameter label. Example: In this example, we will use a console.trace() methodHTML<!DOCTYPE html> <html 2 min read HTML DOM title Property The DOM title property is used to return the title of the HTML document and also used to sets the value of the title in the document. This property is used to specify the information about the title.Syntax: It is used to return the title property document.titleIt is used to set the title property do 2 min read HTML DOM createComment() Method The createComment() method is used to create a comment node with some specified text. This property is used to set a text value as a parameter that is of string type. Syntax:document.createComment( text )Parameters: This method accepts single parameter text which is optional. This parameter is used 2 min read HTML DOM console time() Method The console.time() method in HTML is used to start a timer in the console view. The console.time() method can be used for calculating the time of programs for various testing purposes. The label is sent as a parameter to the console.time() method. Syntax:console.time( label )Parameters: This method 2 min read HTML DOM History forward() Method The History forward() method in HTML is used to load the next URL in the history list. It has the same practical application as the forward button in web browsers. This method will not work if the next page will not exist in the history list. Syntax: history.forwardExample: Below program illustrates 1 min read HTML DOM console log() Method The console.log() method in HTML is used for writing a message in the console. It indicates an important message during the testing of any program. The message is sent as a parameter to the console.log() method. Syntaxconsole.log( message )ParametersParameterDescriptionmessageIt is mandatory and use 2 min read HTML DOM Location hash Property The Location Hash property in HTML is used to return the anchor part of a URL. It can also be used to set the anchor part of the URL. It returns the string which represents the anchor part of a URL including the hash '#' sign. Syntax: It returns the hash property.location.hashIt is used to set the h 2 min read Like