May 30, 2014 07:45 PM
(This post was last modified: Jun 23, 2014 06:58 PM by Exemplification.)
This thread offers and introduction to HTML, CSS, Freelance Business, and general web development practices and standards.
I do not guarantee that all content in this thread is accurate or is accurate for all readers; please notify me of any errors and I will resolve them.
I apologize for the British spelling of words such as "colour" (color); I had the British dictionary checked at the time and it isn't worth going back through.
All HTML has been validated and tested in Firefox 29.0.1.
I WILL be considering candidate recommendations as standards in this thread.
I HAVE taken some liberties of questionable standards. If you would like to challenge them please private message me
It took 1,366 lines of writing,
an estimated 62,000 characters,
9.4 hours of writing, editing, and condensing,
3 cans of red bull, and 4 soft tacos to write this; it only takes a minute and a minimum of 35 characters to leave feedback; please provide feedback about this thread.
Content Summary
Introduction to HTML
What is HTML?
Yes, we have to get over with this part of the lesson but it will be only a few lines. HTML stands for Hypertext Markup Language and is used to structure web pages for humans to read and for bots to view and crawl. HTML by itself is not the prettiest thing; pages made with only html are unstyled and very simple. HTML standards are governed by W3C (World Wide Web Consortium); documentation on all HTML elements can be found on the W3C website. HTML has traveled through several versions and the most current is HTML5 which added several things from previous versions such as offline file storage, addition of form elements, the canvas element, media elements, and a newly developed tight friendship between CSS and HTML.
Here is a view of Hackforums with only HTML (Click to View)
An HTML page is made up of many different elements each with its own purpose; there are more than 100 HTML elements (unless I can't count, which could be a possibility). You'll learn more about elements now.
What are some common HTML elements?
Entering into the world of HTML instantly reveals the structured life it dictates. Each element has its purpose and should be used for that purpose, not as a work around. Just because it works does not mean it is right so before you use an element make sure you are
Here are the common HTML elements used in nearly every site
[b]<!-- Comments! -->[/b]
While not an element, knowing what defines comments is essential to reading this thread. Any text inside of <!-- --> is a comment and will NOT be visible on the page but IS visible if the user were to view the page source. An example follows:
<html>
Think of this element as a surname. Your surname is your family and represents your roots, the <html> element represents the root of your HTML document. The use of the <html> element is fairly straightforward, everything other than the DOCTYPE will be housed within this element. An example follows:
<head>
Your head element is one of the most important within your html document. It is within <head> that you will direct the browser to find the CSS, JavaScript files, the title of your page (<title>), metadata (<meta>), and some other less used content. This element cannot be valid and contain other text (other than comments) outside of the listed elements. The <head> element comes after the opening of your <html> element. An example of the <head> use follows:
<title>
The <title> element defines the title of your page. This is the name that will be displayed on the top of the browser, tab, or often times on a bookmark. As stated earlier this element goes into the <head> element. An example follows:
<link>
The <link> element is used to point toward CSS outside of the HTML document. This element has attributes that must be filled in to link to a stylesheet. You should provide a value for "href" (the location of the file), rel (the relationship to the HTML document, for a style sheet it will be "stylesheet"), type (the type of document, for linking to a CSS file the type will be equal to "text/css"), and media (the media attribute should be set equal to "all" for the purposes of this thread. This will change once the doors to responsive design are opened). Note that the <link> element does not require a closing tag. An example of the <link> element which is pointint to a psuedo document called "styleSheet.css" follows:
<body>
The <body> element is the main portion of your HTML document. Everything you want to be displayed to the visitor will be within this element. There isn't much to explain with th body, so an example follows.
<p>
The <p> (paragraph) element is used to define a paragraph. Content within the <p> element should relate to each other as writing in paragraph is accepted. The use of the <p> element is shown as follows:
<h1>,<h2>,<h3>,<h4>,<h5>,<h6>
The <hX> (0 < X < 7) elements represent headings. <h1> is the most important and defaults to the biggest text in most browsers, and <h6> is the least important and defaults to the smallest text in most browsers. The use of proper headings is important to search engine optimization. Do NOT use heading elements to change the size of font. An example of a heading element follows:
<article>
The <article> element is used to define content that is published such as a forum post, blog comment, or a blog post. This element is often found nested within another <article> element indicating that the inner element is in relation to the outer. An example follows:
<section>
The <section> element is a new addition in the world of HTML5 and is a candidate recommendation but not standard. This element is to separate content into logical section. You should not use this element as a container for random content as the <div> element is for; if the <article> element is better suited, it should be used before the <section> element. An example of the <section> element with proper example content follows:
<header>
The <header> element is fairly self explanatory. This element contains the page header such as the logo and navigational links. This element is NOT the same as the heading elements (<hX>). An example of the <header> element follows:
<footer>
This is again another self explanatory element. The footer element is at the bottom of the page and contains content such as copyright, extra links, or contact information. An example follows.
<main>
The <main> element is used to house the main part of the page, perhaps articles, weather info, sale info, or contact information could go inside. An example of the <main> element within a page follows.
<ol>
This is an ordered list and will create a list that uses numbers. You can find an example under <li>.
<ul>
This is an unordered list that is commonly denoted with bullets. You can find an example under <li>.
<li>
This is a list item. This must go within an ordered or unordered list.
<div>
Used to group content that is not suitable to be grouped with other elements such as section, header, or article. Main purpose is for styling with CSS.
<nav>
The main site navigation. There should be only one per page.
I do not guarantee that all content in this thread is accurate or is accurate for all readers; please notify me of any errors and I will resolve them.
I apologize for the British spelling of words such as "colour" (color); I had the British dictionary checked at the time and it isn't worth going back through.
All HTML has been validated and tested in Firefox 29.0.1.
I WILL be considering candidate recommendations as standards in this thread.
I HAVE taken some liberties of questionable standards. If you would like to challenge them please private message me
It took 1,366 lines of writing,
an estimated 62,000 characters,
9.4 hours of writing, editing, and condensing,
3 cans of red bull, and 4 soft tacos to write this; it only takes a minute and a minimum of 35 characters to leave feedback; please provide feedback about this thread.
Content Summary
- Introduction to HTML
- What is HTML?
- What are common HTML elements?
- How do these elements go together to create a html page?
- Create a demo HTML only page.
- What is HTML?
- Introduction to CSS
- What is CSS?
- How do these work with HTML to style a page?
- Edit our first HTML demo to use CSS for style
- What is CSS?
- Introduction to freelance work
- What is freelancing?
- What are the pros and cons of doing freelance work?
- How do I start freelancing?
- What are some common reasons for freelance failure?
- How do I stay safe while freelancing?
- What is freelancing?
- Other Content - NOTE: All links are NOT to nsfw
- Reading HTML Specification
- Linking to Files
- Getting Your First Clients
- Basic Webmaster Troubleshooting by Exemplification
- Good resources for starting your website! WebHosting | Domains | HTML | Scripts! by Nasyr
- Content will continuously be added to this thread after the initial posts by me; posts adding content will be linked to in this part of the summary
- I need to keep characters available in this post for several links
Character Placeholders (Click to View)
- Reading HTML Specification
Introduction to HTML
What is HTML?
Yes, we have to get over with this part of the lesson but it will be only a few lines. HTML stands for Hypertext Markup Language and is used to structure web pages for humans to read and for bots to view and crawl. HTML by itself is not the prettiest thing; pages made with only html are unstyled and very simple. HTML standards are governed by W3C (World Wide Web Consortium); documentation on all HTML elements can be found on the W3C website. HTML has traveled through several versions and the most current is HTML5 which added several things from previous versions such as offline file storage, addition of form elements, the canvas element, media elements, and a newly developed tight friendship between CSS and HTML.
Here is a view of Hackforums with only HTML (Click to View)
An HTML page is made up of many different elements each with its own purpose; there are more than 100 HTML elements (unless I can't count, which could be a possibility). You'll learn more about elements now.
What are some common HTML elements?
Entering into the world of HTML instantly reveals the structured life it dictates. Each element has its purpose and should be used for that purpose, not as a work around. Just because it works does not mean it is right so before you use an element make sure you are
Here are the common HTML elements used in nearly every site
[b]<!-- Comments! -->[/b]
While not an element, knowing what defines comments is essential to reading this thread. Any text inside of <!-- --> is a comment and will NOT be visible on the page but IS visible if the user were to view the page source. An example follows:
Code
[b]<!--[/b] A comment goes in here and will not be visible to the user unless they view the page source --><html>
Think of this element as a surname. Your surname is your family and represents your roots, the <html> element represents the root of your HTML document. The use of the <html> element is fairly straightforward, everything other than the DOCTYPE will be housed within this element. An example follows:
Code
<!DOCTYPE html>
<html>
[b]<!--[/b] All other HTML content goes here -->
</html><head>
Your head element is one of the most important within your html document. It is within <head> that you will direct the browser to find the CSS, JavaScript files, the title of your page (<title>), metadata (<meta>), and some other less used content. This element cannot be valid and contain other text (other than comments) outside of the listed elements. The <head> element comes after the opening of your <html> element. An example of the <head> use follows:
Code
<!DOCTYPE html>
<html>
<head>
[b]<!--[/b] Head Content Goes Here -->
</head>
</html><title>
The <title> element defines the title of your page. This is the name that will be displayed on the top of the browser, tab, or often times on a bookmark. As stated earlier this element goes into the <head> element. An example follows:
Code
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
</html><link>
The <link> element is used to point toward CSS outside of the HTML document. This element has attributes that must be filled in to link to a stylesheet. You should provide a value for "href" (the location of the file), rel (the relationship to the HTML document, for a style sheet it will be "stylesheet"), type (the type of document, for linking to a CSS file the type will be equal to "text/css"), and media (the media attribute should be set equal to "all" for the purposes of this thread. This will change once the doors to responsive design are opened). Note that the <link> element does not require a closing tag. An example of the <link> element which is pointint to a psuedo document called "styleSheet.css" follows:
Code
<!DOCTYPE html>
<html>
<head>
<link href="styleSheet.css" rel="stylesheet" type="text/css" media="all">
</head>
</html><body>
The <body> element is the main portion of your HTML document. Everything you want to be displayed to the visitor will be within this element. There isn't much to explain with th body, so an example follows.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
[b]<!--[/b] Body Content Goes Here -->
</body>
</html><p>
The <p> (paragraph) element is used to define a paragraph. Content within the <p> element should relate to each other as writing in paragraph is accepted. The use of the <p> element is shown as follows:
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>The quick brown fox jumps over the lazy dog, but the lazy dog has already feasted on the eggs.</p>
</body>
</html><h1>,<h2>,<h3>,<h4>,<h5>,<h6>
The <hX> (0 < X < 7) elements represent headings. <h1> is the most important and defaults to the biggest text in most browsers, and <h6> is the least important and defaults to the smallest text in most browsers. The use of proper headings is important to search engine optimization. Do NOT use heading elements to change the size of font. An example of a heading element follows:
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>I'm the most important</h1>
<h2>I'm a little less important</h2>
<h3>A bit less important than h2</h3>
<h4>Even further. At this rate I will be hardly noticable soon</h4>
<h5>Do I exist? Why am I so unimportant?</h5>
<h6>I'm the least important</h6>
</body>
</html><article>
The <article> element is used to define content that is published such as a forum post, blog comment, or a blog post. This element is often found nested within another <article> element indicating that the inner element is in relation to the outer. An example follows:
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<article>
[b]<!--[/b] Perhaps a blog post will go here -->
<article>
[b]<!--[/b] Perhaps comments to the post go here -->
</article>
</article>
</body>
</html><section>
The <section> element is a new addition in the world of HTML5 and is a candidate recommendation but not standard. This element is to separate content into logical section. You should not use this element as a container for random content as the <div> element is for; if the <article> element is better suited, it should be used before the <section> element. An example of the <section> element with proper example content follows:
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<section>
<h1>Snakes</h1>
<p>Snakes are cold blooded creatures</p>
</section>
<section>
<h1>Rabbits</h1>
<p>Rabbits are wonderful fuzzy creatures</p>
</body>
</html><header>
The <header> element is fairly self explanatory. This element contains the page header such as the logo and navigational links. This element is NOT the same as the heading elements (<hX>). An example of the <header> element follows:
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<header>
[b]<!--[/b] A logo and navigational content can go in here -->
</header>
</body>
</html><footer>
This is again another self explanatory element. The footer element is at the bottom of the page and contains content such as copyright, extra links, or contact information. An example follows.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<footer>
<p>© Company 2014
</footer>
</body>
</html><main>
The <main> element is used to house the main part of the page, perhaps articles, weather info, sale info, or contact information could go inside. An example of the <main> element within a page follows.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<main>
[b]<!--[/b] Most relevant information -->
</main>
</body>
</html><ol>
This is an ordered list and will create a list that uses numbers. You can find an example under <li>.
<ul>
This is an unordered list that is commonly denoted with bullets. You can find an example under <li>.
<li>
This is a list item. This must go within an ordered or unordered list.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
[b]<!--[/b] Ordered List -->
<ol>
<li>List Item 1</li>
<li>List Item 2</li>
</ol>
[b]<!--[/b] Unordered List -->
<ul>
<li>List Item</li>
<li>List Item</li>
</ul>
</body>
</html><div>
Used to group content that is not suitable to be grouped with other elements such as section, header, or article. Main purpose is for styling with CSS.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>
<footer>
<p>© Company 2014
</footer>
</div>
</body>
</html><nav>
The main site navigation. There should be only one per page.
Code
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<nav>
[b]<!--[/b] Links ->
</nav>
<footer>
<p>© Company 2014
</footer>
</body>
</html>![[Image: tkg318I.png]](https://i.imgur.com/tkg318I.png)


![[Image: ApYlKRV.png]](https://i.imgur.com/ApYlKRV.png)
![[Image: suxa3y2.png]](https://i.imgur.com/suxa3y2.png)
![[Image: tz9Z2XS.png]](https://i.imgur.com/tz9Z2XS.png)
![[Image: 9OhH8RD.gif]](https://i.imgur.com/9OhH8RD.gif)
![[Image: RJnI8vX.png]](https://i.imgur.com/RJnI8vX.png)
![[Image: FXwHKyZ.png?1]](https://i.imgur.com/FXwHKyZ.png?1)
![[Image: TdOz6m9.png]](https://i.imgur.com/TdOz6m9.png)
![[Image: pqCsB9f.png?1]](https://i.imgur.com/pqCsB9f.png?1)
![[Image: 51oEs5O.png]](https://i.imgur.com/51oEs5O.png)
![[Image: Z9RfYkT.png]](https://i.imgur.com/Z9RfYkT.png)
![[Image: bWPSs7e.png]](https://i.imgur.com/bWPSs7e.png)
![[Image: B5aAGuy.png]](https://i.imgur.com/B5aAGuy.png)


![[Image: vjPWhyy.gif]](https://i.imgur.com/vjPWhyy.gif)
![[Image: 1zL3pDG.jpg]](https://i.imgur.com/1zL3pDG.jpg)