What Is an HTML Element?

Q

What Is an HTML Element?

✍: FYIcenter.com

A

An HTML element is the basic building block of an HTML document. An HTML element has the following features:

  • An HTML element must have a name.
  • An HTML element may have zero or more attributes.
  • An HTML element may or may not have any content.

Here is a good example of an HTML element:

  <a href="http://dev.fyicenter.com/">FYIcenter.com</a>

The above an HTML element has:

  • A name called "a", which is coded at the beginning of the opening tag.
  • An attribute called "href", which is coded inside the opening tag. It also has a value specified after the "=" sign.
  • A string of text as the content, which is coded between the opening tag and closing tag.

 

⇒HTML Tag and Attribute Syntax

⇒⇒HTML Tutorials

2017-02-20, 876👍, 0💬