diff --git a/views/tutorial/html/5.erb b/views/tutorial/html/5.erb index e6b83f77..9d0d84dc 100644 --- a/views/tutorial/html/5.erb +++ b/views/tutorial/html/5.erb @@ -5,19 +5,26 @@

For example, a link to another site looks like this:

-

<a href="//neocities.org">Check out Neocities!</a>

+

<a href="http://neocities.org">
+Check out Neocities!</a>

Add a link to your favorite site to
the end of the paragraph, right
before the </p> closing tag!

-

Nesting

-

Tags always need to be nested properly, like Russian dolls. So this is okay:

-
<%= erb '

Welcome! Link!

', layout: false %>
+

Link tags

+
<%= erb 'Click me!', layout: false %>
+

The 'a' in a link tag stands for 'anchor'.

+

The 'href' is short for 'hypertext reference' - it's a way to reference another hypertext document, like your favorite website!

+
-

But this is not correct:

-
<%= erb '

Welcome! Link!

', layout: false %>
+

Nesting

+

Tags always need to be nested properly, like Russian dolls. Note that both 'a' tags are inside the 'p' tags:

+
<%= erb '

Welcome! Link!

', layout: false %>
+ +

This code is incorrectly nested:

+
<%= erb '

Welcome! Link!

', layout: false %>