Semantic HTML Tags #6 | Web designing Course

Index HTML Code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="author" content="Webgapp">
    <meta name="description" content="This page contains all the things I am learning how to create as I learn HTML.">
    <title>My First Web Page</title>
    <link rel="icon" href="html5.png" type="image/x-icon">
    <link rel="stylesheet" href="main.css" type="text/css">
</head>

<body>
    <header>
        <h1>My Goals for the Year</h1>

        <nav aria-label="primary-navigation">
            <ul>
                <li>
                    <a href="#html">Learning HTML</a>
                </li>
                <li>
                    <a href="#vacation">Planning a Vacation</a>
                </li>
            </ul>
        </nav>
    </header>

    <hr>
    <main>
        <article id="html">
            <h2>I'm Ready to Learn HTML</h2>
            <p>This is my first web page.</p>
            <section>
                <h3>HTML5</h3>
                <img src="img/html_logo_300x300.png" alt="HTML5 Logo" title="I am learning Web designing course" width="300"
                    height="300">
                <figure>
                    <figcaption>An Example of HTML5 code</figcaption>
                    <p>
                        <code>&lt;h1&gt;Hello World!&lt;/h1&gt;</code>
                    </p>
                </figure>
            </section>
            <section>
                <h3>My Daily Schedule</h3>
        <p>Let me tell you how:</p>
        <ol>
            <li>...I learn more about web dev.</li>
            <li>...I plan out my schedule.</li>
            <li>...I use resources from <abbr title="webgapp learning">
                    <a href="https://www.webgapp.com/category/web-designing-course/">Webgapp</a>
                </abbr>.</li>
        </ol>
                <aside>
                    <details>
                        <summary>Guess the <mark>number of hours</mark> I code per day</summary>
                        <p>I start at <time datetime="08:00">8 am</time> and I write code for <time datetime="PT3H">3
                                hours</time> every morning.</p>
                    </details>
                </aside>
            </section>
        </article>

        <hr>

        <article id="vacation">
        <h2>I Am Also Planning a Vacation</h2>
        <p>I've been working hard and <em>really need a getaway</em>.</p>
        <p>I live in <abbr title="Madurai">Mdu</abbr> so I want visit a Mahal.</p>

            <section>
                <h3>Places I'd Like to Visit</h3>
                <ul>
                    <li>
                        <<p>I've heard good things about the Mahal.</p>
            </li> <figure>
                    <img src="img/mahal.jpg" alt="Mahal" title="I want to visit a Mahal." width="400" height="225" loading="lazy">
                            <figcaption>
                                Mahal
                            </figcaption>
                        </figure>
                    </li>
                    <li>
                        <p>I've heard good things about going here:</p>
                        <address>
                            Thepakkulam<br>
                            Madurai Meenakshi Amman Temple<br>
                            Ave Mary Church
                        </address>
                        <figure>
                            <img src="img/vacation.jpg" alt="Cancun Vacation" title="It's 5 o'Clock Somewhere!"
                                width="400" height="267" loading="lazy">
                            <figcaption>
                                A Caribbean Vacation Image
                            </figcaption>
                        </figure>
                    </li>
                </ul>
            </section>
            <!-- TODO: Add more places -->
            <section>
                <h3>Places I Want to Avoid</h3>
        <dl>
            <dt>North India Trip</dt>
            <dd>I hear this is <strong>Hot</strong>!</dd>

            <dt>Rajastan</dt>
            <dd>This is also Hot.</dd>

            <dt>Bihar</dt>
            <dd>These are also Hot.</dd>
        </dl>
            </section>
        </article>
    </main>
    <hr>
    <footer>
        <p>
            &lt;&lt;&lt; &copy; <a href="about.html">Webgapp About</a> &gt;&gt;&gt;
        </p>
        <p>
            <a href="#">Back to Top</a>
        </p>
    </footer>
</body>

</html>

What are Semantic Elements?

A semantic element clearly describes its meaning to both the browser and the developer.

Examples of non-semantic elements: <div> and <span> – Tells nothing about its content.

Examples of semantic elements: <form><table>, and <article> – Clearly defines its content.

The provided code is an HTML document that represents a simple web page. It incorporates semantic HTML, which means using HTML elements to convey the meaning and structure of the content. Here’s an explanation of the semantic HTML elements and their usage in the code:

  1. <header>: Represents the header section of the web page containing the page title and navigation.
  2. <nav>: Represents a section that contains navigation links.
  3. <ul>: Represents an unordered list of items.
  4. <li>: Represents a list item within an unordered or ordered list.
  5. <article>: Represents a self-contained composition or article that can be independently distributed or syndicated.
  6. <section>: Represents a thematic grouping of content within an article.
  7. <h1>, <h2>, <h3>: Represents headings of different levels, where <h1> is the highest level and <h3> is the lowest level.
  8. <img>: Represents an image and includes attributes such as src, alt, title, width, and height to provide information about the image.
  9. <figure>: Represents a figure, typically containing an image and its caption.
  10. <figcaption>: Represents the caption or description of a <figure> element.
  11. <p>: Represents a paragraph of text.
  12. <code>: Represents a fragment of computer code.
  13. <ol>: Represents an ordered list of items.
  14. <em>: Represents emphasized or important text.
  15. <abbr>: Represents an abbreviation or acronym and includes the title attribute to provide the full form of the abbreviation.
  16. <aside>: Represents a section of the page content that is indirectly related to the main content.
  17. <details>: Represents a disclosure widget from which the user can obtain additional information or controls.
  18. <summary>: Represents a summary or a caption for the content of a <details> element.
  19. <time>: Represents a specific time or a range of time.
  20. <hr>: Represents a thematic break or horizontal rule.
  21. <footer>: Represents the footer section of the web page.

By using these semantic elements, the code provides clear and meaningful structure to the content, making it more accessible and understandable for both humans and search engines.

About.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="Webgapp">
    <meta name="description" content="Hi, Webgapp. This page is about our company.">
    <title>About Me</title>
    <link rel="icon" href="html5.png" type="image/x-icon">
    <link rel="stylesheet" href="main.css" type="text/css">
</head>

<body>
    <h1>Webgapp</h1>

    <hr>

    <p>
        Our passion for technology meets your business needs. We are a team of experienced IT professionals committed to empowering your digital transformation. Our goal is to provide innovative IT solutions that drive growth and improve operational efficiency for your business. 
Whether you're looking for Web development, Mobile App Development, or any other IT service, we have the expertise to deliver. Our commitment to customer satisfaction and cutting-edge technology sets us apart. Let us partner with you to take your business to the next level. Contact us today to learn more."
    </p>

    <hr>

    <ul>
        <li>
            Download an <a href="https://www.webgapp.com/wp-content/uploads/2023/04/webgapp-logo-edited.png" download>HTML5 favicon</a>
        </li>
        <li>
            Contact me at <a href="mailto:random@email.com">my email address</a>.
        </li>
        <li>
            Dial <a href="tel:+1234567890">my phone number</a>.
        </li>
        <li>
            Open <a href="https://www.google.com/" target="_blank">Google</a> in a new tab.
        </li>
    </ul>

    <hr>
    &lt;&lt;&lt; &copy; <a href="about.html">Webgapp</a> &gt;&gt;&gt;
    <p>
        <a href="/">Back to Home</a>
    </p>
</body>

</html>

CSS CODE main.css

html {
    font-size: 22px;
}

body {
    background-color: #333;
    color: whitesmoke;
}

a {
    color: aliceblue;
}

a:visited {
    color: lightgray;
}

a:hover, a:active {
    color: #eee;
}

These content was really helpful for web development career prepared by Webgapp Learning – Internship in madurai – Web Development Certification Training Course Madurai

Are you looking for a Web Development Certification Training Course and Internship in Madurai?

Join our team and gain valuable experience through our internship program designed specifically for computer science engineering students. Enhance your skills, expand your knowledge, and carve a successful career path in the dynamic world of web development. Take advantage of this opportunity in Madurai and visit our website today to learn more and embark on a journey towards professional growth and expertise.

For More Details

+91 97879 68375

-> You should bring your own laptop during the Course

60 Hrs Practical Learning

Who can enroll on this course?

  • Graduates or under-graduates.
  • Diploma holders with basic computer knowledge
  • Business Entrepreneurs

After the completion of the web design & development course here at Webgapp, you can become a professional in the IT sector and your job role could be any one of the following –

  • Front end web designer
  • Back end web developer
  • Web application Designer
  • Design and layout analyst
  • Web developer
  • Web Designer

The Web Designing Course in Madurai at Webgapp shows the right path to students and professionals who have an eye for learning the web designing course. 

  • Real-Time Experts as Trainers
  • LIVE Project
  • Certification
  • Affordable Fees