HTML - Syntax

HTML Syntax

In this tutorial, I will be using one of the basic elements to explain the syntax of an HTML elements.

definition
DEFINITION:

Syntax simply means the arrangement of letters, figures, symbols and words in a particular sequence or order in which it can be properly interpreted by a language.

  • Tags - Opening tag <p> and Closing tag </p>
  • Content - Anything that is placed in between the opening and closing tags.
  • Attribute - Additional properties that is placed inside the opening tags.
syntax
note
NOTE:

Remember the difference between the opening and closing tags is the forward slash / in the closing tag.

tips
TIP:

Not all HTML tags have separate closing tags. Some are self closing such as <br />, <img />, <link />, <hr /> etc.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT