Best Website Builders CompanyBest Website Builders Company
    What's Hot

    2,000-Year-Old Necropolis Found in Excavation Near Notre Dame

    May 1, 2023

    Paraguay Voters Elect Conservative Economist as President

    May 1, 2023

    Gov. Abbott Calls Texas Mass Shooting Victims ‘Illegal Immigrants’

    May 1, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website Builders CompanyBest Website Builders Company
    • Home
    • CSS

      Management of Chronic Local Pain Syndrome: Potential Impact of the Food and Drug Reform Act

      April 30, 2023

      fantasy cricket tips, today’s play 11, player stats, pitch report for Sharjah Ramadan T20 League 2023, match 23

      April 30, 2023

      Saints Report: CSS Baseball Splits With Oles – Duluth News Tribune

      April 30, 2023

      SECNAV Renames Naval Academy Superintendent’s Office After Admiral Farragut

      April 30, 2023

      US Air Force upgrades nuclear security with advanced JLTV vehicles

      April 29, 2023
    • Joomla

      Web Designer Job Description: Shaping the Digital Landscape

      April 30, 2023

      Rising Opportunities in the Enterprise Mobile Content Management Systems Market, Latest Trends, Technological Advancements, Drivers and Forecasts to 2030

      April 29, 2023

      Mariposa County Daily Sheriff and Reservation Report for Friday, April 28, 2023

      April 29, 2023

      How to choose the best web hosting services for developers in 2023

      April 28, 2023

      Mariposa County Daily Sheriff and Reservation Report for Wednesday, April 26, 2023

      April 27, 2023
    • PHP

      Anthony Carrigan Reflects on That ‘Barry’ Scene from Season 4 Episode 4

      May 1, 2023

      TikToker Kat Abu is very happy that Tucker Carlson has been fired

      April 28, 2023

      How ‘Single Drunk Female’ Season 2 Tackled Emotional Sobriety

      April 24, 2023

      Trans-Missouri Residents Affected by Attorney General Order

      April 24, 2023

      Andrew Tate’s conversion to Islam makes Muslims skeptical

      April 21, 2023
    • UX

      MMI Hires Brian McKray as Director of Product Development

      May 1, 2023

      Carson High School FBLA Sends 13 Students to National Convention

      April 30, 2023

      Googler confirms upcoming Android changes to improve user experience

      April 30, 2023

      Why the human touch is essential in UX design

      April 30, 2023

      The future of financial services in India

      April 30, 2023
    • Web Builders
      1. Web Design
      2. View All

      What Comes First in Website Development — Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Can Religious Freedom Be Saved? This group is racing the clock to teach America’s first freedom

      February 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023

      Is There A Market For Rap-Themed Slot Games? – Rap Review

      January 19, 2023
    • WordPress

      Planning to travel or cook? Bing AI with ChatGPT just got better

      April 30, 2023

      Google Pixel 7a design and colors leak in unboxing images

      April 30, 2023

      A Leaked Samsung Galaxy Z Fold 5 Render Shows Off A Familiar Design

      April 30, 2023

      Stop press! This is the cheapest 2TB NVMe SSD I have ever seen.

      April 30, 2023

      Quordle Today – Tips and Answers for Sunday April 30 (Game #461)

      April 30, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website Builders CompanyBest Website Builders Company
    Home » 8 semantic HTML tags to make your website accessible, clean and modern
    CSS

    8 semantic HTML tags to make your website accessible, clean and modern

    websitebuildersnowBy websitebuildersnowMarch 20, 2023No Comments5 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Before semantic HTML was introduced, developers used divs to position content. The div element itself has no meaning. It just provides a way to apply styles and arrange content.


    What does the word semantic mean about the meaningA semantic HTML element describes the purpose of content. They bring meaning to developers, users, search engines, and assistive technologies. Here is a list of common semantic HTML tags that you can use in your next project.

    What is Div

    In HTML, a div (split) element is a block-level container. Use divs to group or divide HTML elements into sections on your web page. The syntax is:

     <div>

    </div>

    Advantages of using semantic HTML elements over Div

    HTML5 introduced semantic HTML elements to make code easier to read. Semantic elements provide meaning and structure to web content.

    Help other developers understand your code. It also makes it easier for search engines to find your content and drive traffic to your site. Here are the semantic elements you can use in your HTML and CSS projects.

    of <ヘッダー> Tags define the header section of the document. It typically includes the site logo, navigation, and page titles. A section that appears at the top of a web page. You can customize the header according to your needs. The syntax is:

     <body>

        <header>

           <h1> Hi There!</h1>

           <p>I am a header</p>

       </header>

    </body>

    2. <ナビ>

    of <ナビ> The tag contains the website navigation links. These are menus, tables of contents, or indexes.Normally <ヘッダー> Tag. The syntax is:

     <header>

        <nav>

            <ul>

                <li>My website links</li>

                <li><a href="#"> Home</a> </li>

                <li ><a href="#"> About Us </a></li>

            </ul>

        </nav>

                <h1>The above is navigation part of my website.</h1>

    </header>

    Here’s what it looks like in a browser:

    website nav tag

    on a web page using CSS layout models such as CSS flexbox

    elements can be placed.

    3. <メイン>

    of <メイン> Tags contain the main content of your web page. Separate content from headers, sidebars and footers. The main <本体> section.

     <body>

        <header>

            <title> Website facts </title>

        </header>

        <main>

           <p> This website is a short demonstration of how the main tag works.</p>

           <p> It encloses the part of the website with useful content.</p>

        </main>

        <footer>

            <h3> This is a footer </h3>

        </footer>

    </body>

    It will be displayed in the following manner.

    Main tag section of webpage-1

    Four. <記事>

    use <記事> Use tags to define self-contained sections within a document or website. For example, it can be used to structure blog posts, magazines, or product cards.of <記事> Elements can surround other elements, including other articles, sections, and headings. The enclosed elements should be related to the topic of the article.

     <article>
        <h1>Stranger Than Fiction</h1>

            <article>

               <h3>Introduction</h3>

               <p>The events and persons naratted in this book are fictitious.</p>

           </article>

           <article>

               <h3>Chapter One</h3>

               <p> The day was bright and the sun smiled from the sky</p>

           </article>

    </article>

    It will be displayed in the following manner.

    The article element arranges the blog

    Five. <脇>

    of <余談> Tags contain content related to the main content. Use this tag to create a sidebar for your quotes, comments, or shoutouts. <余談> Highlight information that readers may miss. It stands out from other content.

     <!DOCTYPE html>

    <html>

        <style>

            body{

                background-color:#abdbe3;

                }

            aside {

               width: 30%;

               padding-left: 0.5rem;

               margin-left: 1rem;

               flex:left;

               box-shadow: inset 5px 0 5px -5px green;

               font-style: italic;

               color: red;

           }

            aside > p {

               margin: 0.5rem;

        </style>

        <body>

            <main>

                <h1> Weaver Birds</h1>

                <p>Ploceidae is a family of small passerine birds. Many of which are called weavers, weaverbirds, weaver finches and bishops.</p>

                <aside>

                   <p>Kingdom: Animalia
                 Phylum: Chordata</p>

                </aside>

                <p>In most recent classifications, Ploceidae is a clade, excludes some birds that have historically been placed in the family.Some of the sparrows, but includes the monotypic subfamily Amblyospizinae.</p>

            </main>

        </body>

    </html>

    The aside element highlights an area of ​​text

    6. <セクション>

    of <セクション> Elements contain parts of the page that do not have specific semantic elements. Sections may contain headings that introduce content and surround other HTML elements. <セクション> Represents a component of a web page, such as a book or blog chapter.

     <!DOCTYPE html>

    <html>

        <body>

            <h1>The Bible</h1>

            <section>

                <h2>Introduction</h2>

                <p>The Bible is a collection of religious scriptures sacred in Christianity, Judaism, Samaritanism. The Bible is an anthology &ndash; a compilation of texts of a variety of forms &ndash; originally written in Hebrew, Aramaic, and Koine Greek.</p>

            </section>

            <section>

               <h2>Chapter one:Genesis</h2>

               <p>The Book of Genesis is the first book of the Hebrew Bible and the Christian Old Testament. Its Hebrew name is the same as its first word, Bereshit. Genesis is an account of the creation of the world, the early history of humanity, and of Israel's ancestors and the origins of the Jewish people</p>
            </section>

        </body>

    </html>

    It will be displayed in the following manner.

    A section tag surrounds a portion of the page with semantic tags

    7. <フィギュア>

    of <図> element I enclose Self-contained illustrations such as images and diagrams. These figures refer to the main page content.The figure is accompanied by a caption given by <フィグキャプション> element.of <フィグキャプション> Describes the content of the image.of <フィギュア>, <フィギュアキャプション>, Content represents a single unit.

     <!DOCTYPE html>

    <html>

        <body>

            <main>

                <section>

                    <h1>Parts of a Computer</h1>

                    <p> There are several parts that work together to make up a computer</p>

                    <figure>

                           <img src="some-url.jpg" alt="computer mouse">

                           <figcaption>This is a computer mouse</figcaption>

                   </figure>

                </section>

            </main>

        </body>

    </html>

    It will be displayed in the following manner.

    The figure element displays an image and caption

    You can go further and learn how to create responsive images in HTML.

    of <フッター> HTML elements surround information at the bottom of a web page.it is the opposite of <ヘッダー> element.of <フッター> May contain information about the page owner. This includes copyright data or links to additional information on the site.

     <!DOCTYPE html>

    <html>

        <body>

           <main>

               <section>

                   <h1>Parts of a Computer</h1>

                   <figure>

                           <img src="some-url.jpg" alt="computer mouse">

                           <figcaption>This is a computer mouse</figcaption>

                   </figure>

               </section>

           </main>

           <footer>

               <p> Manufactured by ComputerTech &copy; 2023</p>

           </footer>

       </body>

    </html>

    The code above changes the footer to computer parts The page shown in the following image.

    Footer element creates a footer on the page

    Why Use Semantic HTML Elements?

    Using semantic HTML elements gives your code context. Anyone can easily understand the code by looking at it. Tags make it easier to style elements and collaborate on projects.

    You can use semantic HTML in front-end libraries and frameworks. Most modern web browsers prefer semantic HTML elements over traditional elements. Start using semantic HTML to make your code modern, readable, and beautiful.



    Source link

    Share this:

    • Tweet
    • Email
    • Pocket
    • Mastodon
    • WhatsApp
    • Telegram
    • Share on Tumblr
    • Print
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous ArticleThe next step in network operations
    Next Article Caversham Primary: Ofsted urged to pause inspections after teacher death
    websitebuildersnow
    • Website

    Related Posts

    Management of Chronic Local Pain Syndrome: Potential Impact of the Food and Drug Reform Act

    April 30, 2023

    fantasy cricket tips, today’s play 11, player stats, pitch report for Sharjah Ramadan T20 League 2023, match 23

    April 30, 2023

    Saints Report: CSS Baseball Splits With Oles – Duluth News Tribune

    April 30, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    Advertisement
    Demo

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    2,000-Year-Old Necropolis Found in Excavation Near Notre Dame

    May 1, 2023

    Paraguay Voters Elect Conservative Economist as President

    May 1, 2023

    Gov. Abbott Calls Texas Mass Shooting Victims ‘Illegal Immigrants’

    May 1, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.

    x