Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pococms
pococms / pcolordom.html
Created November 26, 2022 20:54
Failed attempt at getting paragraph color using DOM. Am able to get innerText though.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Trying to obtain <p> color using DOM</title>
<style>
p{color:red}
</style>
</head>
<body>