Course Content
HTML Forms
HTML forms are an essential part of web development and provide a way for users to input and submit data to a server. Forms allow users to enter data such as text, numbers, checkboxes, radio buttons, and more. When a user submits a form, the data is typically sent to a server for further processing.
0/6
HTML Graphics
HTML provides various ways to incorporate graphics into web pages.
0/2
HTML Media
HTML provides built-in support for embedding and displaying various types of media content on web pages.
0/5
HTML APIs
HTML APIs, also known as browser APIs or web APIs, are a set of interfaces and methods provided by web browsers to interact with and manipulate web content, access device features, and perform various tasks. These APIs are implemented in JavaScript and are accessible to web developers when creating web applications. Here are some commonly used HTML APIs:
0/5
HTML Examples
Creating a Simple Web Page, Adding Links and Images and more
0/4
HTML5 for Free | HTML5 – Unleashing the Potential of Web Development
About Lesson

Here are some HTML elements along with examples to illustrate their usage:

  1. <h1> to <h6> (Headings):
<h1>This is a Heading</h1>
<h2>This is a Subheading</h2>
  1. <p> (Paragraph):
<p>This is a paragraph of text.</p>
  1. <a> (Link):
<a href="https://www.example.com">Visit Example Website</a>
  1. <img> (Image):
<img src="image.jpg" alt="Description of the image">

Replace "image.jpg" with the actual path or URL of your image file.

  1. <ul> and <li> (Unordered List):
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>
  1. <ol> and <li> (Ordered List):
<ol>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ol>
  1. <table>, <tr>, <th>, and <td> (Table):
<table>
  <tr>
    <th>Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>John Doe</td>
    <td>30</td>
  </tr>
  <tr>
    <td>Jane Smith</td>
    <td>25</td>
  </tr>
</table>
  1. <form>, <input>, and <button> (Form):
<form>
  <label for="name">Name:</label>
  <input type="text" id="name" name="name"><br><br>
  <label for="email">Email:</label>
  <input type="email" id="email" name="email"><br><br>
  <button type="submit">Submit</button>
</form>
  1. <div> (Division):
<div>
  <h3>Section Title</h3>
  <p>This is the content of the section.</p>
</div>
  1. <span> (Inline Container):
<p>This is some text with <span style="color: red;">highlighted</span> word.</p>
  1. <header>, <nav>, <main>, and <footer> (Semantic Elements):
<header>
  <h1>My Website</h1>
</header>
<nav>
  <a href="#">Home</a> |
  <a href="#">About</a> |
  <a href="#">Contact</a>
</nav>
<main>
  <h2>Welcome to My Website</h2>
  <p>This is the main content of the website.</p>
</main>
<footer>
  <p>© 2023 My Website. All rights reserved.</p>
</footer>

These examples demonstrate the usage of various HTML elements for headings, paragraphs, links, images, lists, tables, forms, containers, semantic elements, and more. You can modify and combine these elements to suit your specific needs when building web pages.

Join the conversation