Skip to content

Update index.html - #4

Open
st9540834 wants to merge 1 commit into
masterfrom
st9540834-patch-1
Open

Update index.html#4
st9540834 wants to merge 1 commit into
masterfrom
st9540834-patch-1

Conversation

@st9540834

Copy link
Copy Markdown
Owner

add header

add header
Comment thread index.html
<body>
Hello there, awesome person!
<h1>
I'm the header

Copy link
Copy Markdown
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
I'm the header
<img src="https://avatars3.githubusercontent.com/u/57016285?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://avatars3.githubusercontent.com/u/57016285?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