Improve accessibility of default error HTML.

This commit is contained in:
Sorin Davidoi 2020-02-22 21:29:41 +00:00 committed by Sergio Benitez
parent 20a76fee25
commit dfc9e9aab0
1 changed files with 4 additions and 2 deletions

View File

@ -125,16 +125,18 @@ macro_rules! error_page_template {
($code:expr, $name:expr, $description:expr) => ( ($code:expr, $name:expr, $description:expr) => (
concat!(r#" concat!(r#"
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>"#, $code, " ", $name, r#"</title> <title>"#, $code, " ", $name, r#"</title>
</head> </head>
<body align="center"> <body align="center">
<div align="center"> <div role="main" align="center">
<h1>"#, $code, ": ", $name, r#"</h1> <h1>"#, $code, ": ", $name, r#"</h1>
<p>"#, $description, r#"</p> <p>"#, $description, r#"</p>
<hr /> <hr />
</div>
<div role="contentinfo" align="center">
<small>Rocket</small> <small>Rocket</small>
</div> </div>
</body> </body>