In the early days of the internet, we had something called flat html.
Here is an example.
But now a days we we have the "new and improved" html, that takes 10 times as long to write, and takes up ten times as much space.
Now obviously I'm exaggerating a little here with some obvious overkill, but it's not that far off.
I'm not sure I see much advantage in the "new way" of doing it.
Here is an example.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
But now a days we we have the "new and improved" html, that takes 10 times as long to write, and takes up ten times as much space.
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello, World!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
<style>
body {
background-color: #f0f0f0;
}
.container {
margin-top: 50px;
text-align: center;
}
.hello-world {
font-family: 'Comic Sans MS', cursive, sans-serif;
color: #ff6347;
text-shadow: 2px 2px #000000;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="hello-world">Hello, World!</h1>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script>
<script>
$(document).ready(function() {
console.log('Hello, World!');
});
</script>
</body>
</html>
Now obviously I'm exaggerating a little here with some obvious overkill, but it's not that far off.
I'm not sure I see much advantage in the "new way" of doing it.
Last edited: