HTML and CSS Reference
In-Depth Information
greater than and less than symbol with a forward slash inside (before the closing tag name is declared
</>.
Opening and closing tags for and html command are <html> (representing the open-
ing tag)and </html> as the closing tag. And since we are writing html code we have
to cover the whole script in these tags (with all other html elements inside these
tags).
 Line 3: <head> , stands for the header, and is used just to give the file some
declarations of how the outlay should interact and what parameters to use. But for
the most part the header isn't used much. So the commands in it will almost always
stay the same.
 Line 4: <meta charset=”utf-8” /> , this is a type of character encoding that will
always need to be displayed on the inside of your header.
 Line 5: <title> New Website </title> , this is where you give your website a
name that will appear on the opening tab of your browser.
 Line 6: </head> , represents the end of your header.
 Line 7: <body> , This is where all of the html code you learn will be written.
It contains all of the important aspects of your website, include the photos, text,
videos, music, links, and all other kinds of attachments and inputs.
 Line 8-11: Blank space or blank lines in your text editor will not be detected as
anything to your browser of text editor, as long as you do not abnormally space your
code, you will be fine adding spaces between chunks of code to be able to identify
the functions easier.
 Line 12: </body>, is the ending of the body.
 Line 13: is the end of the html file </html>
You can see that I closed the body tag before I closed the html tag. That is because
you must have all your html files in order for your website to run and identify objects
properly. This can be a big problem when you are working with a lot of code at once,
but practice will help, and reviewing your code will come natural as your learn how it
works.
Search WWH ::




Custom Search