You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: week-1/1-parent-child/readme.md
-45
Original file line number
Diff line number
Diff line change
@@ -14,49 +14,4 @@ git push
14
14
15
15
_Hint: Use the first message as an example to help you write the second message correctly._
16
16
17
-
If you are having trouble, review the following information about HTML tags and parent-child relationships.
18
-
19
-
## HTML Syntax
20
-
21
-
You're already familiar with HTML code from your application process. If you want to refresh your memory, read this [quick guide to the HTML syntax](http://marksheet.io/html-syntax.html).
22
-
23
-
Let's review parent-child relationships in the following example.
24
-
25
-
```html
26
-
<articleclass="message">
27
-
<divclass="message__author">Anthony</div>
28
-
<pclass="message__content">Who is available to meet this week to work on our group project?</p>
29
-
<spanclass="message__time">6:48pm</span>
30
-
</article>
31
-
```
32
-
33
-
First, we start with an empty _parent_ tag:
34
-
35
-
```html
36
-
<articleclass="message"></article>
37
-
```
38
-
39
-
Now we add a _child_ tag:
40
-
41
-
```html
42
-
<articleclass="message">
43
-
<divclass="message__author">Anthony</div>
44
-
</article>
45
-
```
46
-
47
-
The `<div>` tag is a _child_ of the `<article>` tag because is starts _after_`<article>` and ends _before_`</article>`.
48
-
49
-
Add another _child_ tag:
50
-
51
-
```html
52
-
<articleclass="message">
53
-
<divclass="message__author">Anthony</div>
54
-
<pclass="message__content">Who is available to meet this week to work on our group project?</p>
55
-
</article>
56
-
```
57
-
58
-
The `<p>` tag is also a _child_ of the `<article>` tag. Since the `<div>` and `<p>` tags share the same _parent_, we call them "sibling" tags, like brothers and sisters.
0 commit comments