What's Special About the HTML Main Tag?



  • Working in HTML, Notepad++ recognizes all of the standard HTML tags (including HTML5 semantic tags like <header>, <footer>, <section>, etc.) and colors them appropriately (for me, blue). With one exception: the <main> tag and its closure show up in the default text color (black).

    Is this expected behavior? What’s special about the <main> tag?



  • @Daniel-Collins

    must be related to something else, maybe html code, as a simple <main></main> works.
    Do you have an example code when it fails?

    Cheers
    Claudia


Log in to reply