<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
main {
border: 1px solid blue;
height: 150px;
display: flex; /* defines flexbox */
flex-direction: column; /* top to bottom */
justify-content: space-between; /* first item at start, last at end */
}
h2 {
margin: 0;
}
</style>
</head>
<body>
<main>
<h2>Header title</h2>
Текст, выровненный по нижней границе
</main>
</body>
</html>