diff --git a/rc/base/html.kak b/rc/base/html.kak
index 2cc0b843..4b7380f0 100644
--- a/rc/base/html.kak
+++ b/rc/base/html.kak
@@ -26,8 +26,8 @@ add-highlighter -group /html/comment fill comment
add-highlighter -group /html/style ref css
add-highlighter -group /html/script ref javascript
+add-highlighter -group /html/tag regex \b([a-zA-Z0-9_-]+)=? 1:attribute
add-highlighter -group /html/tag regex ?(\w+) 1:keyword
-add-highlighter -group /html/tag regex \b([a-zA-Z0-9_-]+)= 1:attribute
add-highlighter -group /html/tag regex <(!DOCTYPE(\h+\w+)+) 1:meta
add-highlighter -group /html/tag regions content \