Web Analytics Made Easy -
StatCounter what is main function? - CodingForum

Announcement

Collapse
No announcement yet.

what is main function?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • what is main function?

    What is main function and why it is called main function?

  • #2
    The primary purpose of <main> is to map ARIA’s landmark role main to an element in HTML. This will help screen readers and other assistive technologies understand where the main content begins.

    You should still use the ARIA role until all browsers map the role to the <main> element.

    Comment


    • #3
      Originally posted by I3ANNED View Post
      You should still use the ARIA role until all browsers map the role to the <main> element.
      There are actual browsers or even ANY legitimate user-agent that does something USEFUL with Aria roles?!? :/

      Of course, IMHO <main>, just like <section>, <aside>, <header>, <footer>, <nav> and pretty much all the new ALLEGEDLY structural tags the whatWG vomited on the specification with, so far as I'm concerned they're ALL redundant to just using numbered headings and horizontal rules properly... But hey, at least we got them to admit that <hgroup> just proved they didn't know enough about HTML to be making its successor!

      ... and Aria? 90% of it is redundant trash that serves ZERO legitimate purpose apart from satiating the wants and needs of data scrapers -- just like that microformat asshattery before it. Last I checked, Data scraper was just a polite name for content thief, the type of sleazy dirtbags you want to keep OUT of your site!

      Seriously, are there ANY legitimate UA's that do ANYTHING useful with ANY of that? I've never seen one.

      I swear, they won't be happy until we have tags for verb, noun, adverb, adjective, conjunction... and everyone is writing 200k of markup for every 256 bytes of plaintext.

      Shhh... don't give them any ideas!
      Last edited by deathshadow; Sep 15, 2016, 12:05 AM.
      Walk the dark path, sleep with angels, call the past for help.
      https://cutcodedown.com
      https://medium.com/@deathshadow

      Comment


      • #4
        Originally posted by addisoncave View Post
        What is main function and why it is called main function?
        What are you even talking about?
        Stop solving problems you don’t yet have!

        Comment


        • #5
          Originally posted by VIPStephan View Post
          What are you even talking about?
          I was kind of wondering that too... 13anned seemed to think they meant the <main> tag... which would make sense for the HTML/CSS area of the forums, but that presence of the word "function" makes it... that doesn't make sense as a HTML question.
          Walk the dark path, sleep with angels, call the past for help.
          https://cutcodedown.com
          https://medium.com/@deathshadow

          Comment


          • #6
            Originally posted by deathshadow View Post
            Of course, IMHO <main>, just like <section>, <aside>, <header>, <footer>, <nav> and pretty much all the new ALLEGEDLY structural tags the whatWG vomited on the specification with, so far as I'm concerned they're ALL redundant
            <main> was actually proposed by a completely different group and WhatWG tried to get it rejected and failed. It is the one of the tags you mention that actually has a legitimate purpose as it is intended to identify to mobile devices and web readers the part of the page that contains the most important content. It is actually intended to replace the role="main" attribute that has been in use for many years as an aide to accessibility for disabled web users. It does not have any place in the supposed hierarchy that those "structural" tags supposedly define (but which no browser appears to have any plans to support).

            I do agree that the question doesn't make sense unless it is reworded as "What is the function of the main tag?" which I have just briefly answered (you'd need to go to an ARIA accessibility reference to find out more about how it is supposed to aid accessibility).
            Stephen
            Learn Modern JavaScript - http://javascriptexample.net/
            Helping others to solve their computer problem at http://www.felgall.com/

            Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

            Comment


            • #7
              My question was more or less rhethorical because the user addisoncave has a similar record of post quality/quantity as any mediocre aspiring spammer and I don’t expect any serious reply by this user in this thread. I rather expect their membership in this forum to end sooner or later (if you know what I’m implying ). There is no point in wasting ones time replying to poorly stated questions like these.
              Stop solving problems you don’t yet have!

              Comment

              Working...
              X