Conversation
body of my my webpage
There was a problem hiding this comment.
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
- Click on Files Changed.
- Click on the 📝 to edit the file.
- Place an opening
<img>tag between the body tags. Reminder: you don't need to close an<img>tag! - Set the
srcattribute to the image you would like to display. You can use your GitHub profile picture:https://avatars0.githubusercontent.com/u/46179822?v=4 - In the Commit changes section, enter a commit message that describes what you've done.
- Click on Commit changes.
Watch below for my response
Added a picture to my web page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
body of my my web page