Introduction to HTML5 Elements/// whats is the main element

Introduction to HTML5 Elements/// whats is the main element
0

#1

Tell us what’s happening:

i dont understand what its the main element of html5???

Your code so far


<h2>CatPhotoApp</h2>
<header>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>kitt ipsum purr jump eat the grass rip the couch</p>
</header>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/introduction-to-html5-elements/


#2

HTML5 introduces more descriptive HTML tags. These include header, footer, nav, video, article, section and others.
The main HTML5 tag helps search engines and other developers find the main content of your page.
The HTML <main> element represents the dominant content of the <body> of a document, portion of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
EXAMPLE:

<!-- other content -->

<main>
  <h1>Apples</h1>
  <p>The apple is the pomaceous fruit of the apple tree.</p>
  
  <article>
    <h2>Red Delicious</h2>
    <p>These bright red apples are the most common found in many
    supermarkets.</p>
    <p>... </p>
    <p>... </p>
  </article>

  <article>
    <h2>Granny Smith</h2>
    <p>These juicy, green apples make a great filling for
    apple pies.</p>
    <p>... </p>
    <p>... </p>
  </article>
</main>

<!-- other content -->

#3

thank you friend it work :slight_smile:


#4

u r welcome… :slight_smile: Happy coding