mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-04 13:00:18 -04:00
fix(curriculum): adjust editable regions workshop-blog-page (#65464)
This commit is contained in:
@@ -55,10 +55,10 @@ assert.match(code, /<\/header>[.\n\s]*<\/body>/im)
|
||||
<title>Mr. Whiskers' Blog</title>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
--fcc-editable-region--
|
||||
<body>
|
||||
|
||||
</body>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -113,13 +113,13 @@ assert.strictEqual(figureElement?.lastElementChild?.tagName, "FIGCAPTION")
|
||||
<title>Mr. Whiskers' Blog</title>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
--fcc-editable-region--
|
||||
<body>
|
||||
<header>
|
||||
<h1>Welcome to Mr. Whiskers' Blog Page!</h1>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</header>
|
||||
</body>
|
||||
--fcc-editable-region--
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -83,15 +83,15 @@ assert.strictEqual(hrefAttribute, "#contact");
|
||||
/>
|
||||
<figcaption>Mr. Whiskers in the Garden</figcaption>
|
||||
</figure>
|
||||
--fcc-editable-region--
|
||||
<nav>
|
||||
<ul>
|
||||
--fcc-editable-region--
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
--fcc-editable-region--
|
||||
</ul>
|
||||
</nav>
|
||||
--fcc-editable-region--
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -96,11 +96,11 @@ assert.strictEqual(h2Element?.parentElement.tagName, 'SECTION');
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
--fcc-editable-region--
|
||||
<main>
|
||||
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -110,12 +110,12 @@ assert.strictEqual(h3Element?.parentElement.tagName, 'ARTICLE');
|
||||
His playful nature and boundless energy keeps me on my toes. I love him so much.
|
||||
</p>
|
||||
</section>
|
||||
--fcc-editable-region--
|
||||
<section id="posts">
|
||||
<h2>Posts</h2>
|
||||
|
||||
</section>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -101,12 +101,12 @@ assert.lengthOf(paragraphs, 2);
|
||||
</section>
|
||||
<section id="posts">
|
||||
<h2>Posts</h2>
|
||||
--fcc-editable-region--
|
||||
<article>
|
||||
<h3>Mr. Whiskers' First Day Home</h3>
|
||||
|
||||
</article>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -131,11 +131,11 @@ assert.strictEqual(h2Element?.innerText.trim(), 'Contact');
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -132,14 +132,14 @@ assert.strictEqual(addressElement?.parentElement.tagName, 'SECTION');
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
<footer>
|
||||
<section id="contact">
|
||||
<h2>Contact</h2>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</section>
|
||||
</footer>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -127,16 +127,16 @@ assert.strictEqual(pElement?.innerText.trim(), 'Email: fake@email.com');
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
<footer>
|
||||
<section id="contact">
|
||||
<h2>Contact</h2>
|
||||
<address>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</address>
|
||||
</section>
|
||||
</footer>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -51,11 +51,11 @@ assert.strictEqual(h1Element?.parentElement.tagName, 'HEADER');
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<header>
|
||||
|
||||
</header>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -73,12 +73,12 @@ assert.strictEqual(pElement?.innerText.trim(), text);
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
--fcc-editable-region--
|
||||
<section id="about">
|
||||
<h2>About</h2>
|
||||
|
||||
</section>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -133,17 +133,17 @@ assert.strictEqual(link.getAttribute('href'), "tel:5555555555");
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
<footer>
|
||||
<section id="contact">
|
||||
<h2>Contact</h2>
|
||||
<address>
|
||||
--fcc-editable-region--
|
||||
<p>Phone: 555-555-5555</p>
|
||||
--fcc-editable-region--
|
||||
<p>Email: fake@email.com</p>
|
||||
</address>
|
||||
</section>
|
||||
</footer>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -135,17 +135,17 @@ assert.strictEqual(link.getAttribute('href'), "mailto:fake@email.com");
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
<footer>
|
||||
<section id="contact">
|
||||
<h2>Contact</h2>
|
||||
<address>
|
||||
<p>Phone: <a href="tel:5555555555">555-555-5555</a></p>
|
||||
--fcc-editable-region--
|
||||
<p>Email: fake@email.com</p>
|
||||
--fcc-editable-region--
|
||||
</address>
|
||||
</section>
|
||||
</footer>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user