Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index.html #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add index.html #2

wants to merge 2 commits into from

Conversation

ambokor
Copy link
Owner

@ambokor ambokor commented Jun 29, 2021

Add the index.html file

Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com>
@@ -0,0 +1,7 @@
<html>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step 4: Add a page title

Your web page is beginning to take shape! HTML and body tags are important, but their effect isn't too visible. Next, we'll make a visible change, by giving your page a title. Your page's title will show up on the title bar in your web browser, or as the title of any tabs you've got open. The title is used in all sorts of other places!

a screenshot of the title on a browser tab

The title tag looks like this:

<title>I am a title!</title>

But the title tag must be inside of a head tag. By now, you've noticed that tags have a hierarchical structure. In our prior example, the html tag was the parent of the body tag. In a similar fashion, the head tag will be the parent of the title tag, like so:

<head>
    <title>I am a title!</title>
</head>

Finally, the head and title tags, will be children of the html tag, but siblings of the body tag.

<html>
    <head>
        <title>I am a title!</title>
    </head>

    <body>
        Some content.
    </body>
</html>

⌨️ Activity: Give your page a title

Apply this suggested change, or follow the instructions below if you'd like to type out the code manually.

Suggested change
<head>
<title>My awesome web page</title>
</head>
  1. Click on Files Changed.
  2. Click on the ellipsis (...) and select Edit file.
  3. Place an opening <head> tag and an opening <title> tag after the first opening html tag, but before the body tag.
  4. Write out a title after the opening title tag.
  5. Place a closing </title> tag and a closing </head> tag after your new title, but before the body tag.
  6. In the Commit changes section, enter a commit message that describes what you've done.
  7. Ensure you've selected Commit directly to the add-index branch.
  8. Click on Commit changes.

I'll respond when I detect you've committed in this pull request.

@@ -0,0 +1,7 @@
<html>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step 4: Add a page title

Your web page is beginning to take shape! HTML and body tags are important, but their effect isn't too visible. Next, we'll make a visible change, by giving your page a title. Your page's title will show up on the title bar in your web browser, or as the title of any tabs you've got open. The title is used in all sorts of other places!

a screenshot of the title on a browser tab

The title tag looks like this:

<title>I am a title!</title>

But the title tag must be inside of a head tag. By now, you've noticed that tags have a hierarchical structure. In our prior example, the html tag was the parent of the body tag. In a similar fashion, the head tag will be the parent of the title tag, like so:

<head>
    <title>I am a title!</title>
</head>

Finally, the head and title tags, will be children of the html tag, but siblings of the body tag.

<html>
    <head>
        <title>I am a title!</title>
    </head>

    <body>
        Some content.
    </body>
</html>

⌨️ Activity: Give your page a title

Apply this suggested change, or follow the instructions below if you'd like to type out the code manually.

Suggested change
<head>
<title>My awesome web page</title>
</head>
  1. Click on Files Changed.
  2. Click on the ellipsis (...) and select Edit file.
  3. Place an opening <head> tag and an opening <title> tag after the first opening html tag, but before the body tag.
  4. Write out a title after the opening title tag.
  5. Place a closing </title> tag and a closing </head> tag after your new title, but before the body tag.
  6. In the Commit changes section, enter a commit message that describes what you've done.
  7. Ensure you've selected Commit directly to the add-index branch.
  8. Click on Commit changes.

I'll respond when I detect you've committed in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants