hands-on lab

Working With Web APIs - DOM Manipulation

Difficulty: Beginner
Duration: Up to 45 minutes
Students: 41
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this lab, you will be working with DOM manipulation. A DOM manipulation is the use case of Web API methods, to create and remove content on the web page. 

Learning Objectives

Upon completion of this lab, you will be able to:

  • Create a HTML element
  • Add text content to an element
  • Append an element to another element
  • Add a class to an element
  • Remove an element of the web page

Intended Audience

  • Beginners learning front-end development
  • Software Engineers who need to learn front-end technologies to expand their skillset

Prerequisites

The following content can be used to fulfill the prerequisite:

Covered topics

Lab steps

Introduction to HTML and CSS Labs
Creating a New Paragraph Element
Appending the Body Element
Setting a Paragraph Element Attribute
Removing the Paragraph Element