Skip to content
Related Articles

Related Articles

Improve Article

HTML | DOM console.groupEnd() Method

  • Difficulty Level : Basic
  • Last Updated : 23 Jul, 2019

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 method. This method does not accept any parameter.



Below program illustrates the console.groupEnd() method in HTML:


<!DOCTYPE html>
        <title>DOM console.groupEnd() Method</title
            h1 { 
            h2 {
                font-family: Impact;
            body { 
        <h2>DOM console.groupEnd() Method</h2
        <p>To view the message in the console press the F12
        key on your keyboard.</p>
            ("GeeksforGeeks offers the following courses:");
            console.log("1. fork python");
            console.log("2. fork cpp");
            console.log("3. fork java");
            console.log("4. Interview preparation");
            console.log("GeeksforGeeks offers tutorials on the " +
            "following data structures :");
  "Data Structures");
            console.log("1. Array");
            console.log("2. Linked List");
            console.log("3. Stack");
            console.log("4. Queue");


Console View:

Supported Browsers: The browser supported by console.groupEnd() method are listed below:

  • Google Chrome
  • Internet Explorer 11.0
  • Firefox 4.0
  • Opera
  • Safari 4.0

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :