coding180 icon

Coding180

Introduction to Html Elements

Introduction to Html Elements

Tutorials > HTML > HTML Introduction


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.


user

Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

Skills
  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel