Skip to content

Update index.html#4

Open
tsotsoobi wants to merge 2 commits intomasterfrom
tsotsoobi-patch-2
Open

Update index.html#4
tsotsoobi wants to merge 2 commits intomasterfrom
tsotsoobi-patch-2

Conversation

@tsotsoobi
Copy link
Copy Markdown
Owner

body of my my web page

body of my my webpage
Copy link
Copy Markdown

@github-learning-lab github-learning-lab Bot left a comment

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

  1. Click on Files Changed.
  2. Click on the 📝 to edit the 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://avatars0.githubusercontent.com/u/46179822?v=4
  5. In the Commit changes section, enter a commit message that describes what you've done.
  6. Click on Commit changes.

Watch below for my response

Added a picture to my web page
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