Tuesday, November 28, 2023
HomeVideo EditingHTML Component: deal with

HTML Component: deal with


Syntax

The <deal with> component is an inline component and is written like this:

1
<deal with>
2

3
<!-- Contact data goes right here -->
4

5
</deal with>

Instance

Right here’s an instance of how you should use the <deal with> component to supply contact data for the creator of an article:

1
<article>
2
  <header>
3
    <h1>My Superior Article</h1>
4
    <deal with>
5
      Written by Andy L.<br>
6
      E mail: andy@web-crunch.com<br>
7
      Twitter: <ahref="https://twitter.com/webcrunchblog">@webcrunchblog</a>
8
    </deal with>
9
  </header>
10
  <p>Lorem ipsum dolor sit amet...</p>
11
</article>

Consequence

Attributes

The <deal with> component has no particular attributes. Nonetheless, it may be styled utilizing international attributes, comparable to class or id.

Content material

The content material of the <deal with> component sometimes consists of contact data for the creator or proprietor of a doc, comparable to a reputation, e-mail deal with, bodily deal with, or cellphone quantity.

Did You Know?

  • The <deal with> component was launched when the HTML 3 spec was drafted in 1995.
  • The <deal with> component is commonly mixed with the <footer> component to supply extra details about the creator or proprietor of a doc.

“The deal with component shouldn’t be acceptable for all postal and e-mail addresses; it ought to be reserved for offering such details about the contact individuals for the doc.” — W3C HTML5 specification

Be taught Extra



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments