Step 2.1: Click the tab Properties and select Static website hosting.

Step 2.2: Select the first option from the Static website hosting window i.e. Use this bucket to host a website.

Step 2.3: Provide Directory Index filenames for the default index filename (zehntech_index.html) and error filename (zehntech_error.html). Then click Save.

Step 2.4: Find the attached example HTML files used for reference. The zehntech_index.html file includes:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Zehntech Amazon S3</title>
</head>
<body>
<h2>Hi, Welcome to Zehntech article on how to host static website using AWS S3!!!</h2>
</body>
</html>
And the zehntech_error.html page includes:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Zehntech Amazon S3</title>
</head>
<body>
<h2>Hi, Thi is an error page!!!</h2>
</body>
</html>
Step 2.5: Use the Endpoint URL from the Static website hosting window.

The Endpoint URL is your website URL.