From 023b725609a576abce6b08ae21148923b553be2a Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Thu, 15 Jun 2023 17:24:15 +0200 Subject: [PATCH] chore(html): use const, format code example --- .../other-semantics.html | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/html/introduction-to-html/advanced-text-formatting/other-semantics.html b/html/introduction-to-html/advanced-text-formatting/other-semantics.html index 317f3393b7..3f48481483 100644 --- a/html/introduction-to-html/advanced-text-formatting/other-semantics.html +++ b/html/introduction-to-html/advanced-text-formatting/other-semantics.html @@ -1,14 +1,20 @@ - - + + Other semantics examples -

We use HTML, Hypertext Markup Language, to structure our web documents.

+

+ We use HTML, Hypertext Markup Language, to structure our web + documents. +

-

I think Rev. Green did it in the kitchen with the chainsaw.

+

+ I think Rev. Green did it in the kitchen + with the chainsaw. +

Chris Mills, Manchester, The Grim North, UK

@@ -16,25 +22,35 @@

My birthday is on the 25th of May 2001.

-

Caffeine's chemical formula is C8H10N4O2.

+

+ Caffeine's chemical formula is + C8H10N4O2. +

If x2 is 9, x must equal 3.

-
var para = document.querySelector('p');
+    
const para = document.querySelector('p');
 
 para.onclick = function() {
   alert('Owww, stop poking me!');
 }
-

You shouldn't use presentational elements like <font> and <center>.

+

+ You shouldn't use presentational elements like + <font> and <center>. +

-

In the above JavaScript example, para represents a paragraph element.

+

+ In the above JavaScript example, para represents a paragraph + element. +

-

Select all the text with Ctrl/Cmd + A.

+

+ Select all the text with Ctrl/Cmd + A. +

$ ping mozilla.org
 PING mozilla.org (63.245.215.20): 56 data bytes
 64 bytes from 63.245.215.20: icmp_seq=0 ttl=40 time=158.233 ms
-