Why is it not advisable to rely on HTML for layout purposes?
Relying on HTML for layout purposes is not advisable because it can lead to messy and difficult-to-maintain code. Instead, it is recommended to use CSS for layout styling as it provides more flexibility and control over the design. By separating the layout from the content, it becomes easier to make changes and updates to the design without affecting the underlying structure of the webpage.
<!DOCTYPE html>
<html>
<head>
<style>
/* CSS for layout styling */
.container {
width: 80%;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="container">
<!-- Content goes here -->
</div>
</body>
</html>