Mozilla's Element entry summarizes what an element is very nicely. The element is the part inside of the tag: Basic template for an HTML page.
In this example, is an opening tag while is a closing tag. We'll do so by looking at the following example: Basic template for an HTML pageĪn element is enclosed in tags.
#Introduction to brackets text editor code
Finally, the is where our HTML code will go - such as the and headings we just discussed.īefore we move on, let's also discuss briefly discuss the difference between tags and elements.We won't link to external files just yet - but we will do so later in this section. This is also where we add tags to link stylesheets and JavaScript code. The title is what shows up in the tab at the top of your browser. The contains important information about the document.We can specify a language type as we do above to make it easier for screen readers (for the vision-impaired) to read and for browsers to translate. Next, we'll always have, which encloses the document's HTML.This tells the browser (such as Chrome) what kind of document this is so it can easily translate it. The actual language of HTML is all of those instructions that we wrap around the text to format it and as we'll see, many other instructions for things like images, links, videos and more.īefore we start writing our first HTML, let's look at the basic structure of an HTML document: As we can see in the example above, the text in the HTML file is normal text that is marked up with instructions written inside of these, known as angle brackets. The "ML" of HTML stands for markup language. HyperText, the "HT" of HTML is a nerdy word for a link. The goal for this lesson is to show how simple HTML is to read and write by displaying a text written in HTML and what it looks like when it is rendered in a browser. The goal for this lesson is to show how simple HTML is to read and write by displaying a text written in HTML and what it looks like when it is displayed in a browser.Īnd like this in our browser: HTML lesson For Epicodus