Today’s Goals What is HTML?

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
HTML popo.
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
HTML. The World Wide Web Protocols Addresses HTML.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Cascading Style Sheets
HTML / CSS – Basics Why the heck are we doing this?
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Links.  Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background-color).  Special for links are that they can.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
Introduction to HTML CPS470 Software Engineering Fall 1998.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Basic HTML UCR Webmasters Support Group Derk Adams.
HTML Introduction HTML
Css a web designer’s friend!. What is css? Simple “language” for formatting documents written in markup languages Stands for cascading style sheets, referring.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Chapter 14 Introduction to HTML
Designing Web Pages Getting to know HTML... What is HTML? Hyper Text Markup Language HTML is the major language of the Internet’s World Wide Web. Web.
Basics of HTML.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML (HyperText Markup Language)
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
OBJECTIVES  What is HTML  What tools are needed  Creating a Web drive on campus (done only once)  HTML file layout  Some HTML tags  Creating and.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
All you ever needed to know…and more!. H.T.M.L. HyperText Mark-up Language Web’s programming language All web browsers Set of instructions Written with.
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
1 Foundation of HTML Web Page Design. 2 Safe Web Fonts: Used by most computers regardless of environment or platform  Times New Roman  Arial  Courier.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
WebD Introduction to CSS By Manik Rastogi.
CSS for Styling Text.
INTRO TO WEB DEVELOPMENT html
Style Sheets.
>> Introduction to CSS
HTML GUIDE Press F5 and then
INTRODUCTION TO HTML AND CSS
HTML Formatting.
Introduction to Web programming
Introduction to Web Authoring
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Lesson 4 – Introduction to CSS
INTRODUCTION TO HTML AND CSS
Session 3: Basic CSS Spring 2009
Johan Ng and Muhammad Hazzry
WJEC GCSE Computer Science
Presentation transcript:

Today’s Goals What is HTML? Introduction to HTML Learn about tags Make an “About Me” page in HTML What is HTML? Go over goals Have students write down definition for HTML on worksheet Hypertext Markup Language – special code used to format text for display on the Internet

A SIMPLE Web site: This is what a super simple website looks like when displayed in I.E. Tell students they’ll be making a similar web site

Behind the scenes: <html> <head> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <html> <head> <title> This is the title. </title> </head> <body> <h1> All about Lindsay Cesari </h1> <h2> My Family </h2> <p> This part is a paragraph about my family. </p> <h2> My Hobbies </h2> <h2> My Job </h2> <p> This part is about my job. </p> </body> </html> HTML behind the website 2 portions of a web site -- content and the code Show students how to highlight the content, first, on the SmartBoard Have students highlight the content on their worksheet * Ask: What can you tell me about HTML? Let’s look at lines 3 and line 6. Can you identify any patterns? (start tag, end tag) Everything in a <> is called a tag. There is always a beginning tag and an end tag. Inside each tag is a command telling the website to display the text a certain way. On Worksheet, have students define: Tag = directions telling the computer to display the text in a certain way. When the computer sees the beginning tag, it starts displaying the text in that format, when it sees the end tag, it knows to stop displaying the text in that format. Must have a beginning AND an end tag, or computer won’t “get it” ASK: How does the computer tell the difference between a start tag and an end tag? (uses /) Have students highlight tags/code in pink

Common Tags <html> </html> <head> </head> <title> </title> <body> </body> <h1> </h1> <p> </p> <h2> </h2> Look at tags and decide what each tag does, recording on worksheet: o <html> - notifies computer that the following is in html code o <head> - holds all the stuff you’d put in a heading – doesn’t show up on the actual page o <title> - title of the website – displayed at the top of the browser window o <body> - holds all the text that is displayed on a web page o <h1> - biggest heading o <h2> - smaller heading o <p> - starts a new paragraph (skips a line)

Your Goal: A website that looks like the one below Now student knows enough to create a website like the one displayed on the slide Ask them to open Notepad They need to write the CONTENT first A title for the site A section on their families Hobbies Their choice Each section must have at least 3 sentences in it

Behind the scenes: <html> <head> <title> Lindsay Cesari </title> </head> <body> <h1> All about Lindsay Cesari <h1> <h2> My Family </h2> <p> I got married in August of 2008, so it's . . . /p> <h2> My Hobbies </h2> <p> I have lots of hobbies. I'm a librarian…</p> <h2> My Job </h2> <p> I am a school library media specialist at Durgee Junior High School…!</p> </body> </html> Now ask students to add the tags to their documents Explain they can have as many spaces and blanks lines as they want -- html will ignore them Remind them to use my example -- it shows the exact tags they need to use

What Stuck? </p> <p> <h2> My hobbies. What is HTML? <h2> My hobbies. <p>I love books.</p> Have students answer questions for candy . . . What is HTML? What is <p> tell the browser? And what does </p> tell the browser? What’s missing from these 2 lines of code? Take a 5 minute break

What’s New? Show students new version of site Ask them to identify the new things: * Ordered list * Bold words * Italic words * Unordered list

<strong> </strong> = bold <ul> </ul> = unordered list <li> </il> = item in the list <em> </em> = italics Review each section of code to explain what it does: Unordered list: * Start the list with <ul> tag * every item in the list gets an <li> -- list item, tag * end with an </ul> tag Strong or bold: <strong> </strong> Italics/emphasis: <em> </em> Ordered List: <ol> for start of list <li> for ever item in the list <ol> </ol> = ordered list <li> </il> = item in the list

Your Goals: Add an unordered list Make a word bold Make a word italics Add an ordered list REMEMBER: Add content BEFORE you add tags * Students have my example for code They need to add all those elements first, and then add the code

Welcome to Thursday! Today’s Goals: Review Horizontal Lines and Links Add to about me page CSS (Cascading Style Sheets)

What’s New? HIGHLIGHT each section of code as we discuss it on the worksheet; make a note about what that section of code does

<hr> </hr> You just type <hr> </hr> with nothing in between

Nested list: <ul> <li> 1 Husband <li> He likes cars </li> <li> He likes video games </li> </ul> </li>

<a> </a> tag is used = does nothing by itself need to add an href tag with a destination (a Web site) <a href=“http://www.google.com”> </a> Between the tags, you need to write what you want displayed for your CONTENT <a href=“http://www.google.com”> Visit Google! </a>

<a href="mailto:lcesari@bville.org”>Send me an e-mail!</a> Instead of a URL, you use the word mailto: followed by your e-mail address

Your Turn! Update your About Me page to include: A horizontal rule A nested list An Internet link (or three or four) A e-mail link

What Stuck? <li> Difference between: What’s the tag for an ordered list? <li> Difference between: <em> and <strong> Tag for ordered list = <ol> <li> = item in the list <em> = italics <strong> = bold

CSS: Cascading Style Sheets CSS lets you control the look of a page. It doesn’t interfere with content, but allows you to quickly and easily change things like color, font, text size, etc. CSS Zen Garden

CSS Does All This:

Working with Color Visit: Color Scheme Designer and/or Visit: Codes for Web Colors Then write down the #s for 3 different colors

New Tags <head> <title> Lindsay Cesari </title> <style type=“text/css”> </style> </head> Circle new tags on worksheet All style formatting takes place in the heading section of your html coding

Style definition for the body Defining the Style You can define a different style for each element (between the <style> and </style> tags). So your <body> and <h1> areas will look different. body { font-size: 1em; font-weight: normal; font-family: comic sans, Sans-serif; color: #000000; text-align: left; } h1{ font-size:1.4em; font-weight:bold; font-family:comic sans, sans-serif; color:#0000ff; text-align:center } Style definition for the body Style definition for h1

CSS Does All This:

Style Components: Vocab Selector: The HTML element that you’re formatting. Could also be the h1, h2, a, hr, p, ul, ol and li elements body { font-size: 1em; font-weight: normal; font-family: comic sans, Sans-serif; color: #000000; text-align: left; } Value: The specific format you want. Ex: 1 is the value of the font size, and Comic Sans is the value of the font family Highlight each thing as we discuss in a different color on worksheet ex : selectors in blue, properties in pink, and values in green Write down definition for each vocab word DISCUSS PUNCUATION!!!! Property: An element of formatting. Ex: font size, font style, color, etc.

So how do I know what properties and values are available? You visit: CSS Properties body { font-size: 1em; font-weight: normal; font-family: comic sans, Sans-serif; color: #000000; text-align: left; }

How do I figure out colors? Visit: The Webmaster’s Color Lab Write down the 6 digit color code, and use that as your value.

Your Goals: Add a style sheet to your About Me page Add properties and values for at least 3 selectors on your page Remember you need these new tags in the heading: <style type=“text/css”> and </style> Your style formatting goes BETWEEN the style tags.

REVIEW: What Stuck? body { font-size: 1em; font-weight: normal; Selector: The HTML element that you’re formatting. Could also be the <h1> or <h2> element body { font-size: 1em; font-weight: normal; font-family: comic sans, Sans-serif; color: #000000; text-align: left; } Value: The specific format you want. Ex: 1 is the value of the font size, and Comic Sans is the value of the font family Property: An element of formatting. Ex: font size, font style, color, etc.

What Stuck? </p> <p> <h2> My hobbies. What is HTML? <h2> My hobbies. <p>I love books.</p>