HTML Elements are the building block of a webpage. We use elements to define the structure of our HTML document. HTML is typically made up of:
- Opening tag
- Content
- Closing tag
HTML Element syntax
Example:
<p>paragraph</p>
The above example shows how to write a simple text paragraph using p tag.
HTML Attributes
Attribute defines how an element behaves. It’s a key/value pair that is written inside an opening tag.
For example: href="https://coding180.com"
attribute in a link <a> tag specifies the destination of a link when clicked.
We will talk on more on Elements, tags and attributes in the coming lessons.
//= htmlentities($post["body"]); ?>