560 likes | 998 Views
HTML / CSS – Basics. Why the heck are we doing this ?. HTML. HyperText Markup Language. CSS. Cascading Style Sheets. Reasons to learn HTML and CSS. Presentation. Content. Structure. Layout / Design. I have some content , how do I structure it ?.
E N D
HTML / CSS – Basics Whythe heck arewedoingthis?
HTML HyperText Markup Language
CSS Cascading Style Sheets
Reasonstolearn HTML and CSS Presentation Content Structure Layout / Design I havesomecontent, how do I structureit? I havethecontentandthestructure, how do I makeitlookgood? Appreciatethelogic in this. Change thelookofeverythingefficiently.
HTML Document – Basic Structure Youalwaysneedthis: <html>Start ofdocument <head> Start of Head </head>End of Head <body> Start of Body </body>End of Head </html> End ofdocument
HTML – Source andSurface Source code Whatthebrowserdisplaysisactually:
Rules • Alwaysclose tags. Always! No matter what. • Some tags can not benested in others. <h1><p></p></h1> • A nested tag must beclosedbefore a parent tag isclosed. <p><span></p></span> <p><span></span></p>
HTML – Basic tags <p></p>a paragraph <h1></h1>headingofthefirst order <h2>-<h6>moreheadings <ul></ul> an unorderedlist <ol></ol>an orderedlist <li></li> a list item <a></a>theanchor tag <img /> an imageobject
HTML – Hierarchy <html> <head> <body> <p> <h1> <div> <ol> <ul> <span> <li> <a> <img>
HTML – Hierarchy <html> <head> <body> <p> <h1> <div> <ol> <ul> <span> <li> <a> <img>
HTML – Hierarchy <html> <head> <body> <p> <h1> <div> <ol> <ul> <span> <li> <a> <img>
HTML – Basic attributes <a href="">Some Text</a> the hypertext reference, turning “Some Text” into a link <imgsrc="" alt="" /> an image object is not complete if the source is not given and an alternative text is missing
Absolute vs. Relative Links <a href="http://www.google.com/"> Some Text</a> an absolute reference <a href="page2.html">Some Text</a> a relative reference
Relative links revisited <a href="page2.html">Some Text</a> file in the same directory <a href="pages/page2.html">Some Text</a> file in a sub-directory called pages
Relative links revisited 2 <a href="../page2.html">Some Text</a> file in the parent directory <a href="../pages/page2.html">Some Text</a> file in a sub-directory of the parent directory dw
HTML – Special tags <div></div>a division <span></span>specialsegments <strong></strong>makeitbold <em></em>makeititalics <br /> line break <hr /> horizontal line <blockquote> a block ofquote </blockquote>
Want more? http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/ http://www.selfhtml.org/ http://www.w3schools.com/html/
Want more? Forthoseofyou not goodatrememberingstuff. http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/ http://www.selfhtml.org/ http://www.w3schools.com/html/
Want more? http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/ http://www.selfhtml.org/ http://www.w3schools.com/html/ Forthoseofyouwhowanttoknowallthedetails.
Want more? http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/ http://www.selfhtml.org/ http://www.w3schools.com/html/ Forthoseofyouwholiketotry out things.
Want more? http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/ http://www.selfhtml.org/ http://www.w3schools.com/html/