Skip to main content
Ezad
Inspiring
August 24, 2025
Answered

Insert Main Dialog Panel with a To Do

  • August 24, 2025
  • 1 reply
  • 113 views

Hello

 

Begin to develop a page. From the right panel Insert selected Insert MAIN

 

Do I ignore the Class and ID? If there is the need for Class and ID what do I do?

 

Thanks 

 

Correct answer Nancy OShea

You're under no obligation to use them. The choice to assign reusable classes or unique IDs to selectors is entirely your own.  The most common reasons for using classes are to invoke CSS styles.  

 

<main class="container">

<main class="container-fluid">

<main class="container-[breakpoint]">  

See Bootstrap .container classes:

Unique IDs are mostly used as hooks for interactive elements like navigation targets or JavaScript functions. 

 

<section id="home">

   Home section

</section>

<section id="contact">

   Contact section

</section>

 

<nav>

<a href="#home">Link to Home</a>

<a href="#contact">Link to Contact</a>

</nav>

 

Javascript

document.getElementById('home');
document.getElementById('contact');

 

 

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
August 24, 2025

You're under no obligation to use them. The choice to assign reusable classes or unique IDs to selectors is entirely your own.  The most common reasons for using classes are to invoke CSS styles.  

 

<main class="container">

<main class="container-fluid">

<main class="container-[breakpoint]">  

See Bootstrap .container classes:

Unique IDs are mostly used as hooks for interactive elements like navigation targets or JavaScript functions. 

 

<section id="home">

   Home section

</section>

<section id="contact">

   Contact section

</section>

 

<nav>

<a href="#home">Link to Home</a>

<a href="#contact">Link to Contact</a>

</nav>

 

Javascript

document.getElementById('home');
document.getElementById('contact');

 

 

Nancy O'Shea— Product User & Community Expert
Ezad
EzadAuthor
Inspiring
August 24, 2025

Thank you for the comment, the details.

Will use just Main tag; and in the days ahead begin to learn how to use Classes and Ids

Thanks