how to open website in website html code example

Example 1: how to open a website inside a website

<iframe src="https://www.codegrepper.com" width="100%" height="300px"
        title="website" style="border: 10px solid black;">
</iframe>

Example 2: display websites inside a div

<!DOCTYPE html> 
<html> 
  
<head> 
    <title>Object Tag</title> 
</head> 
  
<body> 
    <center> 
        <h1>Object Tag</h1> 
        <br> 
    </center> 
  
    <object data= 
"https://media.geeksforgeeks.org/wp-content/cdn-uploads/Geek_logi_-low_res.png"
            width="550px" height="150px">GeeksforGeeks</object> 
  
</body> 
  
</html>

Tags:

Html Example