HTML Anchor Tag | How to Link to a Section of the Page | Know 10 things about HTML Anchor | Course

Поділитися
Вставка
  • Опубліковано 16 гру 2021
  • Learn How to Link to a Section of a Web Page.
    Important Links:
    - GitHub: github.com/atapas/anchors
    - Anchors app: anchors.vercel.app/

КОМЕНТАРІ • 6

  • @dipankarpariary8187
    @dipankarpariary8187 5 місяців тому +1

    Sir one question when i use class instead of id it cannot work why? And also id and class is same or different?

    • @tapasadhikary
      @tapasadhikary  5 місяців тому

      Id and class are different. Id is unique to a page where the class can be repeated.
      It is meant to work only with ID as ID can be identified with # and it is unique. As class can be duplicated, it will be confusing which section to go to.

  • @vizijayt
    @vizijayt 5 місяців тому +1

    Will the url be updated when the user scrolls down?

    • @tapasadhikary
      @tapasadhikary  5 місяців тому

      No, not by default. We need to use browser history API for it.

    • @vizijayt
      @vizijayt 5 місяців тому

      @@tapasadhikary can you give me more details about it? Thank you

  • @NeilAndreiCandelanza
    @NeilAndreiCandelanza 5 місяців тому

    unsaon pag tapad