Can we use instead of in HTML5? [closed]












-1















I am new to HTML. I like to know it is good to use
mark semantic tag
instead of something like div class="main-content"? And also I like to know about where to semantic tags and div elements.










share|improve this question













closed as too broad by Carl Binalla, Alon Eitan, cнŝdk, Ahmad, DanielBarbarian Nov 22 '18 at 8:19


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

    – Mr Lister
    Nov 22 '18 at 7:14











  • There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

    – Alon Eitan
    Nov 22 '18 at 7:38
















-1















I am new to HTML. I like to know it is good to use
mark semantic tag
instead of something like div class="main-content"? And also I like to know about where to semantic tags and div elements.










share|improve this question













closed as too broad by Carl Binalla, Alon Eitan, cнŝdk, Ahmad, DanielBarbarian Nov 22 '18 at 8:19


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

    – Mr Lister
    Nov 22 '18 at 7:14











  • There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

    – Alon Eitan
    Nov 22 '18 at 7:38














-1












-1








-1








I am new to HTML. I like to know it is good to use
mark semantic tag
instead of something like div class="main-content"? And also I like to know about where to semantic tags and div elements.










share|improve this question














I am new to HTML. I like to know it is good to use
mark semantic tag
instead of something like div class="main-content"? And also I like to know about where to semantic tags and div elements.







html html5 css3 frontend semantic-markup






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 6:48









kowsigan atsayamkowsigan atsayam

216




216




closed as too broad by Carl Binalla, Alon Eitan, cнŝdk, Ahmad, DanielBarbarian Nov 22 '18 at 8:19


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by Carl Binalla, Alon Eitan, cнŝdk, Ahmad, DanielBarbarian Nov 22 '18 at 8:19


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

    – Mr Lister
    Nov 22 '18 at 7:14











  • There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

    – Alon Eitan
    Nov 22 '18 at 7:38



















  • What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

    – Mr Lister
    Nov 22 '18 at 7:14











  • There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

    – Alon Eitan
    Nov 22 '18 at 7:38

















What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

– Mr Lister
Nov 22 '18 at 7:14





What's keeping you? I mean, can you explain why you think you can't use a <main> element? This sounds like it's primarily opinion based to be honest. Or are you asking about when to use a <main> element?

– Mr Lister
Nov 22 '18 at 7:14













There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

– Alon Eitan
Nov 22 '18 at 7:38





There are also schema markup and json-ld - Learn about them too (But don't forget that the quality and relevance of the content itself is the most important thing)

– Alon Eitan
Nov 22 '18 at 7:38












1 Answer
1






active

oldest

votes


















1














According to W3C, the main tag should be used only for content that is unique to that document.




The <main> tag specifies the main content of a document.



The content inside the <main> element should be unique to the
document. It should not contain any content that is repeated across
documents such as sidebars, navigation links, copyright information,
site logos, and search forms.



Note: There must not be more than one element in a document.
The <main> element must NOT be a descendant of an <article>, <aside>,
<footer>, <header>, or <nav> element.




for more html5 tags you can visit HTML5 Semantic Elements (W3Schools)






share|improve this answer
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    According to W3C, the main tag should be used only for content that is unique to that document.




    The <main> tag specifies the main content of a document.



    The content inside the <main> element should be unique to the
    document. It should not contain any content that is repeated across
    documents such as sidebars, navigation links, copyright information,
    site logos, and search forms.



    Note: There must not be more than one element in a document.
    The <main> element must NOT be a descendant of an <article>, <aside>,
    <footer>, <header>, or <nav> element.




    for more html5 tags you can visit HTML5 Semantic Elements (W3Schools)






    share|improve this answer






























      1














      According to W3C, the main tag should be used only for content that is unique to that document.




      The <main> tag specifies the main content of a document.



      The content inside the <main> element should be unique to the
      document. It should not contain any content that is repeated across
      documents such as sidebars, navigation links, copyright information,
      site logos, and search forms.



      Note: There must not be more than one element in a document.
      The <main> element must NOT be a descendant of an <article>, <aside>,
      <footer>, <header>, or <nav> element.




      for more html5 tags you can visit HTML5 Semantic Elements (W3Schools)






      share|improve this answer




























        1












        1








        1







        According to W3C, the main tag should be used only for content that is unique to that document.




        The <main> tag specifies the main content of a document.



        The content inside the <main> element should be unique to the
        document. It should not contain any content that is repeated across
        documents such as sidebars, navigation links, copyright information,
        site logos, and search forms.



        Note: There must not be more than one element in a document.
        The <main> element must NOT be a descendant of an <article>, <aside>,
        <footer>, <header>, or <nav> element.




        for more html5 tags you can visit HTML5 Semantic Elements (W3Schools)






        share|improve this answer















        According to W3C, the main tag should be used only for content that is unique to that document.




        The <main> tag specifies the main content of a document.



        The content inside the <main> element should be unique to the
        document. It should not contain any content that is repeated across
        documents such as sidebars, navigation links, copyright information,
        site logos, and search forms.



        Note: There must not be more than one element in a document.
        The <main> element must NOT be a descendant of an <article>, <aside>,
        <footer>, <header>, or <nav> element.




        for more html5 tags you can visit HTML5 Semantic Elements (W3Schools)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 22 '18 at 7:07









        Mr Lister

        34.6k1074117




        34.6k1074117










        answered Nov 22 '18 at 6:52









        Nir BerkoNir Berko

        62710




        62710















            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin