Many people believe html is hard and they just don’t understand it. First off, I’d like to point out if you don’t want to learn something you won’t. Your mind will wonder, you won’t be active listening to learn and even worse you’ll give up. As long as you WANT to learn and are active listening this will all make sense to you!
I am going to just break down what you HAVE to have in code to make a complete web site. It’s simple! I promise!
Every html document has to start out with <!DOCTYPE html>.
Not those < and > shapes are referred to as TAGS in the coding world. Some people refer to the shape as a carrot but the proper term is a tag.
<!DOCTYPE html> is followed by <html> on the next line. The actual coding document starts after the <html>. The text that is visible on a page starts after the next tag, <body>.
As a visual reference, what we have so far:
The tags above are what are necessary to start a web page. Now lets talk about what is necessary to end a web page.
The tags listed are considered “opened” tags because we have not “closed” them yet. For something (the tags) to work, once they are opened, they eventually need to be closed to work in the web page. The tags need to be closed is opposite order they were opened. The order of closing the tags is very important. If it is not done correctly, the tags will not work.
So the first tag that needs to be closed is the last one used, <body>. To close the tag there is a “/” inserted in front of the tags word, </body>. That is what a closed body tag looks like. The last thing to do to finish our basic html document/blank web site is to close the over all, WHOLE document by adding a closing html tag. That lets the internet know that this web page is over, and to end it at that point.
The coding we have so far should look like:
I hope this made sense! I am so glad that I can put part of my computer science degree to use to help others learn. Please help me by listing any questions you have that were unclear so I can help you (and hopefully others as well) understand the question.
Also, stay tuned because this is going to be a series that you can learn more with. I am going to be incorporating CSS coding as well. Thanks for stopping by and staying a while! Be sure to say Hi to me as well on my Instagram @corrineelizabeth_3 and let me know what content you would like to see here.