The Opening Tag of an HTML Element

Q

How To Write the Opening Tag of an HTML Element?

✍: FYIcenter.com

A

When you are writing an HTML element, you must start with its opening tag, which contains the name of the element and attributes if needed. The opening tag is enclosed in a pair of angle brackets: "<" and ">".

HTML element names are predefined by the HTML specification. You can not make up your own tag names. Here are some good examples of HTML element opening tags:

  • <html> - Opening tag of the "html" element.
  • <head> - Opening tag of the "head" element.
  • <title> - Opening tag of the "title" element.
  • <body> - Opening tag of the "body" element.
  • <p> - Opening tag of the "p" element.
  • <script> - Opening tag of the "script" element.

 

Closing an HTML Element

Entering Comments into HTML Documents

HTML Tag and Attribute Syntax

⇑⇑ HTML Tutorials

2024-03-23, 1680🔥, 0💬