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?
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register Login