230 likes | 444 Views
Blog HTML Code . Professorpg.wordpress.com. What are we doing today (Learning Objectives)?. Basic HTML theory HTML Cheat sheets W3schools.com & Firebug CSS. HTML Code Example. <html> <head> <title>Enter a title, displayed at the top of the window.</title> </head> <body>
E N D
Blog HTML Code Professorpg.wordpress.com
What are we doing today (Learning Objectives)? Basic HTML theory HTML Cheat sheets W3schools.com & Firebug CSS W3schools.com
HTML Code Example http://www.dummies.com/how-to/content/a-sample-web-page-in-html.html
<html> <head> <title>Enter a title, displayed at the top of the window.</title> </head> <body> <h1>Enter the main heading, usually the same as the title.</h1> <p>Be <b>bold</b> in stating your key points. Put them in a list: </p> <ul> <li>The first item in your list</li> <li>The second item; <i>italicize</i> key words</li> </ul> <p>Improve your image by including an image. </p> <p><imgsrc="http://www.mygifs.com/CoverImage.gif" alt="A Great HTML Resource"></p> <p>Add a link to your favorite <a href="http://www.dummies.com/">Web site</a>. Break up your page with a horizontal rule or two. </p> </body> </html> http://www.dummies.com/how-to/content/a-sample-web-page-in-html.html
http://www.dummies.com/how-to/content/a-sample-web-page-in-html.htmlhttp://www.dummies.com/how-to/content/a-sample-web-page-in-html.html
HTML Code Example • <html> • <head> • <title>Enter a title, displayed at the top of the window.</title> • </head> • <body> • <h1>Enter the main heading, usually the same as the title.</h1> • <p>Be <b>bold</b> in stating your key points. Put them in a list: </p> • <ul> • <li>The first item in your list</li> • <li>The second item; <i>italicize</i> key words</li> </ul> • <p>Improve your image by including an image. </p> • <p><imgsrc="http://www.mygifs.com/CoverImage.gif" alt="A Great HTML Resource"></p> <p>Add a link to your favorite <a href="http://www.dummies.com/">Web site</a>. Break up your page with a horizontal rule or two. </p> • </body> • </html> http://www.dummies.com/how-to/content/a-sample-web-page-in-html.html
What are we doing today (Learning Objectives)? Basic HTML theory HTML Cheat sheets W3schools.com & Firebug CSS W3schools.com
Basic Tags (Parts of Page) • <html></html> • Creates an HTML document • <head></head> • Sets off the title and other information that isn’t displayed on the web page itself • <body></body> • Sets off the visible portion of the document Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
Body Attributes (How page looks) • <body bgcolor="pink"> • Sets the background color, using name or hex value • <body text="black"> • Sets the text color, using name or hex value • <body link="blue"> • Sets the color of links, using name or hex value Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
Text Tags (Headlines/Fonts) • <h1></h1> Creates the largest headline • <h6></h6> Creates the smallest headline • <b></b> Creates bold text • <i></i> Creates italic text • <em></em> Emphasizes a word (with italic or bold) • <strong></strong> Emphasizes a word (with italic or bold) • <font size="3"></font> Sets size of font, from 1 to 7 • <font color="green"></font> Sets font color, using name or hex value Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
Links (How to link to other sites) • <a href="URL"></a> • Creates a hyperlink • <a href="URL"><imgsrc="URL"> </a> • Creates an image/link Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
Formatting (Paragraph/Alignment) • <p></p> Creates a new paragraph • <p align="left"> Aligns a paragraph to the left, right, or center. • <br> Inserts a line break • <blockquote></blockquote> Indents text from both sides • <dl></dl> Creates a definition list • <ol></ol> Creates a numbered list • <ul></ul> Creates a bulleted list Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
Tables (Create a table) • <table></table> • Creates a table • <tr></tr> • Sets off each row in a table • <td></td> • Sets off each cell in a row • <th></th> • Sets off the table header (a normal cell with bold, centered text) Categories of HTML Basic Tags Body Attributes Text Tags Links Formatting Tables www.webmonkey.com
What are we doing today (Learning Objectives)? Basic HTML theory HTML Cheat sheets W3schools.com & Firebug CSS W3schools.com
Firebug (shows html code) http://reference.sitepoint.com/html/page-structure
What are we doing today (Learning Objectives)? Basic HTML theory HTML Cheat sheets W3schools.com & Firebug CSS W3schools.com
Cascading Style Sheet (code language) www.blumentals.net
Thank You Company SMM Plan: 2/22 Student Blog Unit #2: 3/1 Theme Pics 7 Posts Social Media Links 2 pages with content