From 0f4c0562f2e1bf6e06a85f99c8b22a428088dab9 Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Mon, 18 Apr 2016 12:07:32 -0700 Subject: [PATCH] Improvements to pg 5 help text --- views/tutorial/html/5.erb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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 %>