hands-on lab

Selecting HTML Elements using CSS

Beginner
25m
152
4/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.
Lab description

Cascading Style Sheets (CSS) allow you to flexibly write rules that apply to a single HTML element or to multiple HTML elements. As well as applying a rule by class or identifier, you can create rules that set the same style properties on multiple HTML elements or on elements that have a specific parent HTML element.

Learning how to select HTML elements in different ways will help you write CSS more efficiently.

Learning Objectives

Upon completion of this beginner level lab, you will be able to write CSS rules that:

  • Select by HTML element type, identifier, and class
  • Select multiple HTML elements
  • Select by parent HTML element

Intended Audience

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

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Cascading Style Sheets (CSS)
  • Hypertext Markup Language (HTML)

The following content can be used to fulfill the prerequisites:

About the author
Students
66,343
Labs
163
Courses
2
Learning paths
4

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics
Lab steps
Introduction to HTML and CSS Labs
Selecting by Element Type, Class, and Identifier
Selecting Multiple Elements and Selecting by Parent Element