Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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');
Copy link to clipboard
Copied
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
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more