skip to Main Content

Can ı use footer element in header element.

 <header>Lorem ipsum dolor sit amet.
  <footer>
    <img src="/src/images/clouds-1440w-desktop.jpg" alt="">
  </footer>
</header>

2

Answers


  1. No. The definition of the header element forbids footer descendants:

    Content model:

    Flow content, but with no header or footer element descendants.

    Login or Signup to reply.
  2. It is not good to use a footer in the header instead you can use the footer in sections like

    <section class="your_class_Name">
      <footer>
        <img src="/src/images/clouds-1440w-desktop.jpg" alt="">
      </footer>
    </section>
    

    or

    <div class="your_class_Name">
      <footer>
        <img src="/src/images/clouds-1440w-desktop.jpg" alt="">
      </footer>
    </div>
    

    or

      <footer class="your_class_name">
        <img src="/src/images/clouds-1440w-desktop.jpg" alt="">
      </footer>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search