Every web page is created by a programmer like you for a specific purpose. My site is to take care of animals that have been abandoned. We use tags to order the content on the page to help visitors understand the purpose of a website and why it was created. So far, you've learned nine tags. Can you remember them all? In this lesson, we’re going to teach a few more important ones.
We have introduced nine tags: paragraph, headings 1-6, strong, emphasis, image, ordered list, unordered list, list item, and anchor. That's quite a few tags. But the more tags you know, the better you can organize your site, the better it will look, and the more impact it will have!
Today, you are going to learn how to wrap text around words and phrases. Wrapping tags around text means that you put the open tag at the start of the text, and the close tag at the end. You've been doing this all along. But having a word for it makes it easier to explain what you're doing with your code.
You can use the insert and delete tags for edits to your HTML file that you want your users to see. You wrap the Insert Tag around something that you want show is inserted. This put an underline. Let me show you an example on my page. My pet posts used to charge money for people to take pets home, but we really didn't think this was right. So, we made it free.
In the paragraph under our pets, I wrapped the Delete tags around $25 to show that we no longer charge a fee for taking pets home. This puts a line through $25. I added the text “$0” and wrapped the insert tags around it and this puts a line underneath $0. Now it's very obvious to my users where I made edits to my page. Hopefully, it inspires them to come adopt a pet.
Remember, we use tags to order the content on the page to help visitors understand the purpose of a website and why it was created.
That's it for today. See you next lesson!