![creating web page using html and css creating web page using html and css](https://i.ytimg.com/vi/BHAVlxFb28w/maxresdefault.jpg)
It indicates that you've concluded this particular element. This final set of characters in HTML is a closing tag. In this heading, the text "Camping essentials" is shown as a heading as specified in the opening tag. It could be a paragraph, an image, a heading, etc.Īfter an opening tag, you'll often have the text content that will be shown. h1 is a heading, for example, and it's the most powerful (biggest) heading possible.Īn "element" is anything on a web page. Whatever comes between the signs indicates which type of element you're creating. In HTML, this first set of characters is called an opening tag.
CREATING WEB PAGE USING HTML AND CSS CODE
Let us dissect this friendly code snippet. It's up to you, as a developer, to choose the right tags!Ĭheck out this line of HTML below from the camping example (and don't let the weird characters like freak you out): Camping essentials HTML uses tags in order to describe each piece of content on a webpage. If you don't write clear HTML, your site won't be readable because browsers won't know what to do with it. Your browser also reads your code in order to show elements in a certain way. That way, when users search for something, your website will appropriately be shown in the list of results. Search engines like Google read your website's code in order to figure out what the page is about. Browsers and search engines also see your web page, but they don't have eyes. You're not the only one "seeing" your content though. This, on the web, is accomplished by writing good HTML. The content on the right tells a better story! It shows hierarchy of information, and the content is more understandable thanks to this structure. Which of these do you prefer? Unstructured and structured text The same is true when you write HTML on the web.Ĭompare these two articles on a camping website. When you're writing an article, press release, or other written document for work or school, you should make sure to structure your content in a way that makes sense.
CREATING WEB PAGE USING HTML AND CSS HOW TO
In this chapter, we'll go over HTML in more detail and learn how to tell a story with your code.