Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
How to extract inline-tag styles from an html?

I have an html page with some <style>/*I need to extract this*/</style> and how can I extract that styles and get html without styles?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I would suggest you you use all:initial or all:unset so that you could make the element use default style.

I don't think you could create variable for the class, but you could use classList.add and classList.remove to switch.

document.querySelector('button').onclick= function(){
document.body.classList.add("nostyle");
this.classList.add('nostyle');

}
.nostyle{
all:revert;
}
body{
background:black;

}
button{
color:white;
background:black;
}
<button >Remove</button>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!