buckybrendan
Registered Member
- Aug 6, 2013
- 64
- 72
I''m sick of most of these website development tutorials, they promise the moons and the stars while delivering nothing. Well I won't be doing that here. I will give you the understanding of xHTML 1.0/HTML 4 and CSS from the foundation up until the house is built, that will get you on your long road to website development success.
?Any fool can know. The point is to understand.?
? Albert Einstein
There will terminology unfamiliar to you, but by the end it will be part of your daily vocabulary.
What is HTML?
HTML stands for Hypertext Markup Language and xHTML stands for Extensible HTML. These are markup languages with predefined tags.
A markup language, what does this mean?
Well a markup language is a language that is based on tags (example '<html>') nested in each other, that are valid and well formed. Valid means that the script obeys the rules for the specific language in this case xHTML. Well formed means that it is easily read by any machine with a browser and is correctly nested.
What are Tags?
Tags are special words inside of angle brackets(greater than > and less than <). There are opening tags such as this '<html>' and closing tags e.g. '</html>'. Each tag must be closed in order to be valid.Other tags such as '<hr />' and '<br />', these tags are wrote like this because they have no closing tags and in xHTML all tags must close.
What the hell is nested?
Nested means that there is a root tag, that all other tags are stored within. Tags that hold other tags within them are the nests. Tags that are in a nest are said to be nested.
Example:
Head is nested in the HTML tags. If this is unclear, you will start to understand it when you begin coding.
I will be adding a few posts each day until completed. I choose to do this because this will give you time to research/ask questions on any concepts that may be confusing to you and also in other posts it will provide you with time to play around with the code and practice.
A skeleton is the bare-bones with no flesh. In HTML the bare-bones is a HTML file that displays nothing on the clients browser. Lets create your first website. For now it does nothing, because it is a skeleton.
Steps:
Breakdown:
I'll explain doctypes in the last post. Saving the file as .html tells the operating system that this file is a HTML file. The ?<html>? ?</html>? tag is the root tag, with all other tags nested in it. This root tag tells the browser to interpret the code as HTML.The head section tells the browser information about the website like the keywords, the scripts to use as well as CSS. Title is nested in head, this is just the title of this page, it will be displayed not on the page but on the tab, or top of the browser, depends on your browsers interpretation of HTML.Body is not nested in head, but is nested in HTML. This is where the web page as you see it will be, The text, the images, everything.
Tip: Make sure to use correct indentation as I have above. It makes it easier to read your HTML and did you notice the nesting? Also makes it easier to read your HTML for debugging and for the next person who has to look at your code.
Remember as you go along mess around with the code. You learn more from your mistakes.
?In life, there are no mistakes, only lessons.?
? Vic Johnson, Day by Day with James Allen
?Any fool can know. The point is to understand.?
? Albert Einstein
There will terminology unfamiliar to you, but by the end it will be part of your daily vocabulary.
What is HTML?
HTML stands for Hypertext Markup Language and xHTML stands for Extensible HTML. These are markup languages with predefined tags.
A markup language, what does this mean?
Well a markup language is a language that is based on tags (example '<html>') nested in each other, that are valid and well formed. Valid means that the script obeys the rules for the specific language in this case xHTML. Well formed means that it is easily read by any machine with a browser and is correctly nested.
What are Tags?
Tags are special words inside of angle brackets(greater than > and less than <). There are opening tags such as this '<html>' and closing tags e.g. '</html>'. Each tag must be closed in order to be valid.Other tags such as '<hr />' and '<br />', these tags are wrote like this because they have no closing tags and in xHTML all tags must close.
What the hell is nested?
Nested means that there is a root tag, that all other tags are stored within. Tags that hold other tags within them are the nests. Tags that are in a nest are said to be nested.
Example:
HTML:
<html>
<head> </head>
</html>
Head is nested in the HTML tags. If this is unclear, you will start to understand it when you begin coding.
I will be adding a few posts each day until completed. I choose to do this because this will give you time to research/ask questions on any concepts that may be confusing to you and also in other posts it will provide you with time to play around with the code and practice.
A skeleton HTML
A skeleton is the bare-bones with no flesh. In HTML the bare-bones is a HTML file that displays nothing on the clients browser. Lets create your first website. For now it does nothing, because it is a skeleton.
Steps:
- Open notepad and save the file as skeleton.html
- Type the following code.
HTML:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Skeleton </title> </head> <body> </body> </html> - Save the file again
- Right click on the file and open with your browser [firefox, chrome, safari or Internet Explorer]
Breakdown:
I'll explain doctypes in the last post. Saving the file as .html tells the operating system that this file is a HTML file. The ?<html>? ?</html>? tag is the root tag, with all other tags nested in it. This root tag tells the browser to interpret the code as HTML.The head section tells the browser information about the website like the keywords, the scripts to use as well as CSS. Title is nested in head, this is just the title of this page, it will be displayed not on the page but on the tab, or top of the browser, depends on your browsers interpretation of HTML.Body is not nested in head, but is nested in HTML. This is where the web page as you see it will be, The text, the images, everything.
Tip: Make sure to use correct indentation as I have above. It makes it easier to read your HTML and did you notice the nesting? Also makes it easier to read your HTML for debugging and for the next person who has to look at your code.
Remember as you go along mess around with the code. You learn more from your mistakes.
?In life, there are no mistakes, only lessons.?
? Vic Johnson, Day by Day with James Allen