step-1 Firstly we need website URL to get data.step-2 we are using PHP HTML Dom Parser library.step-3 Create a folder with any name inside xampp htdoc folder then inside folder create an index.php file and also download PHP HTML Dom parser library.step-4 After downloading library Extract zip file.Step-5 please copy the code and paste index.php file then run localhost or server. ('simplehtmldom/simple_html_dom.php');$html = file_get_html(''enter website url");foreach($html- find('div') as $element){echo "

";print_r($element->class).'

';print_r($element->style).'

';foreach($html->find('img') as $element){echo $element->src . '

';echo $element->style . '

';foreach($html->find('a') as $element)echo $element->href . '

';echo $element->style . '

';?>