summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Charrier <max@puffer.fish>2025-04-19 13:21:31 +0200
committerMax Charrier <max@puffer.fish>2025-04-19 13:21:31 +0200
commit22ad69583210106dd93d934a5b2f87b4b9c0f5b7 (patch)
tree191e7bc384eb553076908742ac8effd9d1479c6a
parentaaab05649f7542dc6d0b59b5fede24ec2f503a57 (diff)
Conforming to Nu Html Checker
Fix element a/button must not appear as a descendant of button/a element. Use only a element with distinct class style Signed-off-by: Max Charrier <max@puffer.fish>
-rw-r--r--en.html2
-rw-r--r--index.html2
-rw-r--r--stylesheet.css9
3 files changed, 10 insertions, 3 deletions
diff --git a/en.html b/en.html
index 13665c5..4eb69fe 100644
--- a/en.html
+++ b/en.html
@@ -16,6 +16,6 @@
<BODY>
<H1>Max</H1>
<P>Welcome to Deez Nuts!</P>
- <BUTTON LANG="fr"><A HREF="index.html">Go back to La France! &lt;-</A></BUTTON>
+ <A LANG="fr" CLASS="button" HREF="index.html">Go back to La France! &lt;-</A>
</BODY>
</HTML>
diff --git a/index.html b/index.html
index e0909aa..d202baf 100644
--- a/index.html
+++ b/index.html
@@ -16,6 +16,6 @@
<BODY>
<H1>Max</H1>
<P>Pain, beurre et confiture</P>
- <BUTTON LANG="en"><A HREF="en.html">-&gt; For the English document</A></BUTTON>
+ <A LANG="en" CLASS="button" HREF="en.html">-&gt; For the English document</A>
</BODY>
</HTML>
diff --git a/stylesheet.css b/stylesheet.css
index 9170b68..269ad1c 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -7,10 +7,17 @@ body {
h1 {
font-size: 4rem;
}
-button {
+.button {
position: absolute;
top: 20px;
right: 40px;
font-family: 'comic_monobold', ui-monospace, monospace;
font-size: 1.2rem;
+ display: inline-block;
+ padding: 10px 20px;
+ background-color: #5d3a00;
+ color: #f9ea9a;
+ text-decoration: none;
+ border: 1px solid #f98948;
+ border-radius: 5px;
}