19 Program to demonstrate Section and Article in HTML

Program:
<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="UTF-8">

    <title>HTML Article Element</title>

    <style>

        body {

            font-family: Arial, sans-serif;

        }

    </style>

</head>



<body>



    <!-- Section

     The <section> element defines a section in a document.

    -->

    <section>

        <h1>Sport Info</h1>

        <p>

            Sport includes all forms of competitive physical activity or games which,[1] through casual or organized

            participation, at least in part aim to use, maintain or improve physical ability and skills while providing

            enjoyment to participants, and in some cases, entertainment for spectators.[2] Sports can bring positive

            results to one's physical health. Hundreds of sports exist, from those between single contestants, through

            to those with hundreds of simultaneous participants, either in teams or competing as individuals. In certain

            sports such as racing, many contestants may compete, simultaneously or consecutively, with one winner; in

            others, the contest (a match) is between two sides, each attempting to exceed the other. Some sports allow a

            "tie" or "draw", in which there is no single winner; others provide tie-breaking methods to ensure one

            winner and one loser. A number of contests may be arranged in a tournament producing a champion. Many sports

            leagues make an annual champion by arranging games in a regular sports season, followed in some cases by

            playoffs.

        </p>

    </section>



    <!-- Article

        The <article> element specifies independent, self-contained content. -->

    <article>

        <h2>Google Chrome</h2>

        <p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web

            browser today!</p>

    </article>

</body>



</html>


Output:

 Section and Article in HTML

Previous
Next Post »