-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode_practice.html
61 lines (61 loc) · 2.83 KB
/
code_practice.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML Lists & More</title>
<script src="src/js/init.js"></script>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="styles.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!--Start lists-->
<h1>Lists & formatted text in html</h1>
<br>
<h3>Lists</h3>
<p>The first type of list is the unordered list. You can make it using the <code><ul></code> tag.</p>
<ul>
<li>It</li>
<li>looks</li>
<li>like</li>
<li>this.</li>
</ul>
<p>The second type of list is the ordered list. You can make it using the <code><ol></code> tag.</p>
<ol>
<li>It</li>
<li>looks</li>
<li>like</li>
<li>this.</li>
</ol>
<p>All lists need a few different parts:</p>
<ol>
<li>A list tag, like <code><ol></code></li>
<li>One or more list item tags, <code><li></code></li>
</ol>
<!--End Lists-->
<!--Start Formatting-->
<h3>Formatting</h3>
<p>This section will go over a few tags:</p>
<ul>
<li><code><code></code></li>
<li><code><pre></code></li>
<li><code><kbd></code></li>
<li><code><samp></code></li>
</ul>
<h4>Code Tags</h4>
<p>Both the <code><code></code> and <code><pre></code> tags allow you to write out code. The <code><code></code> tag allows you to write out code in-line. I have been using it in this website when I write out a tag. The <code><pre></code> tag allows you to write out blocks of code. It respects all whitespace, so you can put in tabbed code.</p>
<pre>
<!--This is a block of code taken from another spot in this page, formatted in a pre tag.-->
<p>The second type of list is the ordered list. You can make it using the <code><ol></code> tag.</p>
<ol>
<li>It</li>
<li>looks</li>
<li>like</li>
<li>this.</li>
</ol>
</pre>
<h4>Other formatting tags</h4>
<p>The <code><kbd></code> and <code><samp></code> commands both have similar effects to the code tags. The <code><kbd></code> tag is used to show keyboard inputs, like <kbd>ctrl + c</kbd>. The <code><samp></code> tag is used for showing samples of code output, like <samp>File not found.</samp></p>
<!--End Formatting-->
</body>
</html>