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-headers-and-images. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add-headers-and-images. #4

wants to merge 1 commit into from

Conversation

jsj2004
Copy link
Owner

@jsj2004 jsj2004 commented Jan 26, 2022

added header

added header
@@ -3,6 +3,7 @@
<title>My awesome web page</title>
</head>
<body>
<h1>I'm a header 1!</h1>
Hello there, awesome person!
Copy link
Contributor

Choose a reason for hiding this comment

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

Step 7: Add an image

Fantastico! Headers will help you highlight segments of your web page.

So far, we've used tags that stand on their own. However, we sometimes need to specify an attribute, which is information that the tag needs to do its work. For example, to display an image, we need an <img> tag, but we also need a source attribute so the browser knows the location of the image. We can add an attribute as follows:

<img src="https://octodex.github.com/images/vinyltocat.png">

You'll also notice that the image tag doesn't need to close since it is considered to be an empty tag.

⌨️ Activity: Add an image to your web page

Follow the instructions below to add an image. You can use your GitHub avatar image (suggested below) or link to your image of choice.

Suggested change
Hello there, awesome person!
<img src="https://avatars.githubusercontent.com/u/98444832?v=4">
  1. Click on Files Changed.
  2. Click on the ellipsis (...) and select Edit file.
  3. Place an opening <img> tag between the body tags. Reminder: you don't need to close an <img> tag!
  4. Set the src attribute to the image you would like to display. You can use your GitHub profile picture: https://avatars.githubusercontent.com/u/98444832?v=4
  5. In the Commit changes section, enter a commit message that describes what you've done.
  6. 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.

1 participant