diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 1819b691a3..5b21d0619c 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Remove inline styles and address basic accessibilty issues on rescue templates.
+
+ *Jacob Herrington*
+
* Add support for 'private, no-store' Cache-Control headers.
Previously, 'no-store' was exclusive; no other directives could be specified.
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb
index 1fbc107e28..f6637b70c8 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb
@@ -1,7 +1,7 @@
Blocked host: <%= @host %>
-
+
To allow requests to <%= @host %>, add the following to your environment configuration:
config.hosts << "<%= @host %>"
-
+
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
index cd808c072f..a68eaab8d7 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
@@ -7,7 +7,7 @@
-
+
<%= render "rescues/message_and_suggestions", exception: @exception %>
<%= render "rescues/actions", exception: @exception, request: @request %>
@@ -32,4 +32,4 @@
<% end %>
<%= render template: "rescues/_request_and_response" %>
-
+
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb
index e887ef5886..3743994e48 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb
@@ -1,4 +1,4 @@
-
+
<%= @exception.class.to_s %>
<% if @request.parameters['controller'] %>
@@ -7,7 +7,7 @@
-
+
<%= h @exception.message %>
<% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %>
@@ -21,4 +21,4 @@
<%= render "rescues/source", source_extracts: @source_extracts, show_source_idx: @show_source_idx %>
<%= render "rescues/trace", traces: @traces, trace_to_show: @trace_to_show %>
<%= render template: "rescues/_request_and_response" %>
-
+
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
index cedf18853f..19dbabe5a2 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
@@ -129,7 +129,7 @@
.source .data .line_numbers {
background-color: #ECECEC;
- color: #AAA;
+ color: #555;
padding: 1em .5em;
border-right: 1px solid #DDD;
text-align: right;
@@ -261,7 +261,7 @@
-<%= yield %>
+ <%= yield %>