Tell us what’s happening:
please am have a very difficult problem in using html
Your code so far
<h1>helllo word
<h2>catphotoapp
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/headline-with-the-h2-elementstrong text
Most of the times, when you begin with a tag eg: <h1> you’ve got to end with </h1>.
hmm, looks like you have missed part of a previous lesson about html opening and closing tags.
you are given this code
<h1>Hello World</h1>
It starts with an opening h1 tag <h1>
and it ends with a closing h1 tag </h1>
So to use html to mark up text, you need to use the opening and closing tags around relevant bits of text (words).
And h2 tag works the same as h1. It needs an opening and closing tag.
Therefore, I suggest you reset the code and re-read the instructions in the challenge (given what I have said above) and retry the exercise.
1 Like