-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchallenge-8.html
More file actions
49 lines (32 loc) · 889 Bytes
/
challenge-8.html
File metadata and controls
49 lines (32 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head> </head>
<body>
p tag
Defines paragraph.
<p>This is a sample of the p tag in action!</p>
JavaScript
Scripts the browser.
var x = 10;
function test() {
console.log(x);
}
<!--
The challenge here is to markup some code samples.
Code is a tag. Any time you want to markup/identify code samples
in your content wrap it in the code tag.
Code snippets are often formatted and the formatting matters! The
browser removes formatting which creates a problem. To preserve
formatting use the <pre> tag.
Imagine the content above contains two code snippets. One for the p
tag and the other for JavaScript. There are two sections each with
a heading and code snippet.
You may also need to use html entities for special characters
that appear in a code snippet.
Tags
- section
- h1-6
- p
- code
- pre
-->