Code Basics
HTML stands for HyperText Markup Language. It is not a programming language but rather it tells browsers how to display web pages.Most html tags (computer instruction identifiers enclosed with <> brackets) require both an opening and a closing. The closing tag is distinguished from the opening tag in that it has a / placed before the identifier.
A web site's skeletal structure looks like this:
A web site's skeletal structure looks like this:
The html tag at the beginning tells the browser that the information on this page can be read and displayed as a webpage. Note that there is a closing html tag at the bottom of the page to indicate that this is the end of the page.
The head tag is a place to put information that does not appear directly on the webpage. This might be the title of the page or instructions about formatting for the page.
The title tag names the page. This title will appear at the top of the browser. It's important to appropriately name your page because this is one of the main ways that search engines identify the content of your page.
The body tag is where most of the information for the webpage will go. It is where the content of the page is placed.
ATTRIBUTES
The head tag is a place to put information that does not appear directly on the webpage. This might be the title of the page or instructions about formatting for the page.
The title tag names the page. This title will appear at the top of the browser. It's important to appropriately name your page because this is one of the main ways that search engines identify the content of your page.
The body tag is where most of the information for the webpage will go. It is where the content of the page is placed.
ATTRIBUTES
Sometimes it's a good idea to include comments within your code as a reference to yourself or others as a description of what the code is doing. This code would not appear when the website is displayed. Non-active comment codes are written this way:
Type <!-- where you want to enter the comment, then press the spacebar.
Write your comment.
Type --> to close the comment.
For example: