HTML tags

Form, a, img, link, table, p,

<form>

Attributes

<form method="get" action="<?= base_url('admin/'); ?>">
    <div class="input-group">
        <input type="text" class="form-control" placeholder="Enter your search..." name="search">
        <button class="btn btn-primary" type="submit">Search</button>
    </div>
</form>

Elements used inside forms


<a>

The <a> tag defines a hyperlink, which is used to link from one page to another.

The href value can be an absolute URL, a relative URL, or a URL fragment (used for scrolling to specific sections within the same page).

 <a href="https://www.example.com">Visit</a>
<a href="about/index.html">Learn More</a>

<img>

The <img> tag is used to embed an image in an HTML page.

attributes

Usage

<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">

<ul> and <ol>

Usage

<ol start="50">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Rendered

  1. Coffee
  2. Tea
  3. Milk

<table>

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>

Rendered

Month Savings
January $100

The <link> tag defines the relationship between the current document and an external resource.

<head>
  <link rel="stylesheet" href="styles.css">
</head>