From a1c16eff88dca7e2eb31fc84cd3dcb9c27f52ef6 Mon Sep 17 00:00:00 2001 From: conzer12 Date: Fri, 6 Dec 2024 06:32:11 +0000 Subject: [PATCH] Add 2. Outside the body --- 2.-Outside-the-body.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 2.-Outside-the-body.md diff --git a/2.-Outside-the-body.md b/2.-Outside-the-body.md new file mode 100644 index 0000000..dfd4464 --- /dev/null +++ b/2.-Outside-the-body.md @@ -0,0 +1,23 @@ +Say you would want something like a footer. Tags outside an element are ignored. You must create a custom element for them. +```html + + + I am in the body element. + +

I am not in the body element.

+ + I am outside the body element, but inside the outside element. + +
+``` +See how we created an "outside" element? The text inside it will be placed outside the body element, in our output html: +```html + + + +I am in the body element. + +I am outside the body element, but inside the outside element. + +``` +Therefore, you could create a `footer` element and have `` and it would act as a footer when it's compiled. \ No newline at end of file