Home
HTML Basics
HTML elements are typically comprised of two tags. Tags are like containers for content. They surround the elements they describe. Opening tags start with a less-than symbol, the element name and then the greater-than symbol. Closing tags start with a less-than symbol, then a slash, then the element name and then the greater-than symbol.
Yesterday, we learned about the html, head, title, body, and p tags. Let's review these individually.
- html - This element goes at the beginning of every HTML page. It is closed with /html when you're finished with the file
- head - This part of the file will contain information like the site's title, and any additional files you want to use, like CSS or javascript.
- title - This is the title of your webpage. The title tag, and it's closing tag, are between the head and the /head tags. Your screen reader will read the title of a page when it loads, but it is not displayed on the screen.
- body - The body contains the content you will read off the screen. It is where you will put the majority of your content, text, audio, video, images, links, and so on.
- p - This is a paragraph tag. Text will go between the two p tags (opening and closing) and will be displayed in the main browser window.
Let's learn some new element types!.