The Web Dev Guide by Wishtack
  • The Web Dev Guide by Wishtack
  • HTML
    • HTML Tags
    • HTML Attributes
    • Content Formatting
    • Empty Tags vs Content Tags
    • Some Links
  • ECMAScript
    • Some History
    • Language Properties
    • Single-Threaded thus Asynchronous
    • The Event Loop
    • Classes
    • Hoisting is Dead: var vs. let vs. const
    • this & "binding"
    • Arrow Functions
    • Template Strings
    • Syntactic Sugar
      • Spread
      • Destructuring
      • Rest
      • Object Literal Property Value Shorthand
    • Named Parameters
    • Compatibility
  • Tools
    • Node.js
    • NPM
    • Yarn
    • Webpack
    • WebStorm
    • StackBlitz
  • DOM
    • What Is It?
    • Element Selection
    • Element Modification
    • Events
  • Forms
    • The <form> tag
    • Form elements
    • Form validation
  • Networking
    • Fetch Web API
  • CSS
    • Selectors
    • Transforms
    • Transitions
    • Animations
    • Web Animations API
    • Sass
  • Responsive Web Design
    • Viewport
    • Media Queries
    • Grid Layout
    • Flex Layout
    • Frameworks & Libraries
  • Web APIs
  • Testing
    • Unit Testing
    • End to End Testing
  • Security
    • Injection
    • DOM XSS
    • Insecure Direct Object Reference
    • Cross-Site Request Forgery
    • Client vs API Validation
    • API Unauthorized Access and Data Leak
  • More Links
Powered by GitBook
On this page
  • Semantic tags
  • Component tags
  1. HTML

HTML Tags

PreviousHTMLNextHTML Attributes

Last updated 6 years ago

Some HTML tags describe the semantic structure and features of a web page.

Semantic tags

Semantic structure is mainly used for SEO (Search Engine Optimization) and accessibility.

<html>

    <head>
        <title>Wishtack Course</title>
    </head>

    <body>

        <h1>Wishtack</h1>

        <p>Wishtack is cool...</p>

    </body>

</html>

Component tags

Other tags are used to add components to the web page.

<!-- Link. -->
<a href="https://www.wishtack.com">Wishtack</a>

<!-- Image. -->
<img src="https://www.wishtack.com/logo.svg">

<!-- Form. -->
<form
        action="/submit"
        method="POST">

    <input
            name="userName"
            placeholder="Enter your name here"
            type="text">
    
    <button type="submit">Submit</button>
    
</form>
https://www.w3schools.com/html/html5_semantic_elements.asp
HTML Semantic Elements
Logo