Web Page Setup
Section outline
-
Basic Web Page
The art of Self Discipline
A Basic Web Page
A basic web page has these parts.
01) All HTML code has less than < and greater than > signs around the code. These pieces of code are called 'tags'
02) The first tag is the <!DOCTYPE> type. It tells the browser the web standards used.
02a) The <html> tag next tells the browser the type of code to look for on the page.
HTML stands for HyperText Markup Language
02b) An <html> must have an opening and a closing </html> tag.
03) The <head> tag is next. It opens and closes before the <body> tag.
04) Next is the <body> tag.
04a) The <body> tag is the start of what you see.
04b) A <body> tag must have an opening and a closing </body> tag.
04c) There can be only one <body> </body> tag (opening and closing) per web site page.<head> tags on a website</head>
3 more tags can be added to a web page to give the browser more information
These tags go in the <head> tag.
The first tag is the opening <head> tag.
The <head> tag contains the <meta> </meta> tag and the <title> </title> tag
The <meta> </meta> tag contains data about the web page, and things like character sets (language) and display types.
There can be several <meta> </meta> tags for a web page.
A <meta> tag must also have a </meta> closing tag.
The <title> </title> tag has name of your website and is what search engines show when you do a search.
The <head> tag can now be closed with a </head> closing tag tag..
.
.
.
<!DOCTYPE html>
<html><head>
<meta></meta>
<title></title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p></body>
</html>