Introducing HTML Skills: create simple Web pages

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

Introduction to HTML & CSS
HTML. The World Wide Web Protocols Addresses HTML.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
WeB application development
A guide to HTML. Slide 1 HTML: Hypertext Markup Language Pull down View, then Source, to see the HTML code. Slide 1.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Skills: None Concepts: Text editor versus word processor, information, text file, code, ASCII This work is licensed under a Creative Commons Attribution-Noncommercial-Share.
Creating hyperlinks with the tag Skills: using the tag IT concepts: tag, attribute This work is licensed under a Creative Commons Attribution-Noncommercial-Share.
Skills: include images in Web pages Concepts: tag, attribute, value, path (to a stored file) This work is licensed under a Creative Commons Attribution-Noncommercial-Share.
Using the Google Docs word processor Skills: getting a Google account, creating a text document and sharing it on the Internet Concepts: stand-alone applications.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
HTML tags Skills: adding HTML tags, text editor IT concepts: plain text, computer components – storage versus memory, separation of content and format.
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
IT skills: IT concepts: Web client (browser), Web server, network connection, URL, mobile client, peer-to- peer application This work is licensed under.
Including images with the img tag Skills: using the img tag IT concepts: none This work is licensed under a Creative Commons Attribution-Noncommercial-
Introducing HTML Skills: none IT concepts: markup, HTML tag, presentation vs content, HTTP protocol, historical context This work is licensed under a Creative.
Attributes of HTML tags Skills: none IT concepts: HTML tag, value, attribute This work is licensed under a Creative Commons Attribution-Noncommercial-
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
Creating hyperlinks with the a tag Skills: using the a tag IT concepts: none This work is licensed under a Creative Commons Attribution-Noncommercial-
Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-
HTMLMR.Mostafa badr1. Lesson 3 HTML Tags Lesson 2 Creating a HTML File Lesson 1: Hyper Text Markup Language (HTML) Basics Get Trained for a Better Future.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Basic HTML The Magic Of Web Pages. Create an HTML folder  Make a folder in your H drive and name it “HTML”. We will save EVERYTHING for this unit here.
HTML. We’ll learn … What HTML is What tags are What a basic web page looks like What 3 HTML tags are required What HTML comments look like How to title.
Basic XHTML Module 2: XHTML Basics LESSON 1. Module 2: XHTML Basics LESSON 1 Lesson Overview In this lesson, you will learn to:  Write XHTML code using.
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 Structure & syntax
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Chapter 4 (through page 110) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
Just Enough HTML How to Create Basic HTML Documents.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
HTML INTRODUCTION. What is HTML?  HTML stands for Hypertext Markup Language  Developed in 1990  Hidden code that helps us communicate with others on.
HTML I An Introduction to the Language of the Web Terry Bake
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Hypertext Mark-Up Language Web Page Creation HTML.
Lesson 2: Basic HTML Code Basic HTML Code. HTML is an acronym for Hypertext Markup Language. Internet browsers translate the HTML code into texts and.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
Introduction to HTML. HTML Introduction HTML – Hypertext Markup Language are the instructions that tell a browser how to lay out the information (text,
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
Web Design. How do web pages work? Webpages are written in a code called HTML. Programs like Internet Explorer read the code, and then show it as a web.
HTML. Hyper Text Markup Language Markup your text document The markup is the tag Hyper text means you can jump from place to place.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
Basic HTML. Lesson Overview In this lesson, you will learn to:  Write HTML code using a text editor application such as Notepad.  View Web pages created.
Hypertext Markup Language.  Developed by Tim Berners-Lee in 1990  Stands for HyperText Markup Languange  A format that tells a computer how to display.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Creating and Editing a Web Page Using Inline Styles
HTML: Hypertext Markup Language The language to make web pages 0.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
HTML. Hyper Text Markup Language Markup your text document The markup is the tag Hyper text means you can jump from place to place Programming language.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Computer Basics Introduction CIS 109 Columbia College.
Online PD Basic HTML The Magic Of Web Pages
HTML & teh internets.
HTML HYPERTEXT MARKUP LANGUAGE.
An Introduction to HTML Pages
WJEC GCSE Computer Science
Presentation transcript:

Introducing HTML Skills: create simple Web pages Concepts: hypertext, markup, HTML tag, appearance vs. content, text editor, HTML page structure This presentation introduces HTML tags which are used to control the appearance of Web pages. We’ll define hypertext and markup and see how to create a simple HTML page using a text editor. This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Where does this topic fit? Internet concepts Applications Technology Implications Internet skills Application development (web) Content creation User skills We introduce some Web concepts and Web development skills.

hypertext markup language HTML hypertext markup language HTML stands for hypertext markup language, though it is not a language in the conventional sense. Let’s look at the parts of the name separately, starting with “hypertext.”

Hypertext . . . Hypertext: Linear text: Table of contents Chapter 1 1 A hypertext has embedded links, and you can jump from page to page by clicking on a link. We can contrast that to a conventional linear text, like a book or magazine article. A linear text is intended to be read from page one to page two and so forth to the end. You could think of the World Wide Web as a huge hypertext with trillions of linked pages. That explains the “hypertext” in HTML, what about the term “markup?” . . .

Markup – adding tags to control appearance This word is bold. This <b>word</b> is bold. When we mark up an HTML page, we add tags to control its appearance. Here we began with the sentence “this word is bold.” Next we added the tag <b> and </b> to our original sentence. When the page is displayed by a Web client program, everything between the <b> and the </b> is boldface.

Examples of HTML tags Tag Effect <h1> … </h1> large heading <h2> … </h2> smaller heading <p> … </p> paragraph <b> … </b> bold text <i> … </i> italicized text <u> … </u> underlined text Here are some of the HTML tags. As you see, these each begin with a <tag> and end with </tag>. They mark the beginning and end of the text effects. But, some tags do not require a start and end. Let’s look at a couple of them. What do you suppose the command to bre ak a line (like I just did) is?

Examples of HTML tags Tag Effect <hr /> draw a horizontal line (a rule) across the window <br /> force a break in the line being typed These tags are different. By their nature, they don’t require a start and an end tag. We just use them to indicate where a line break or a horizontal line should occur in the page. Note that HTML changes over time. The current version is HTML 4, but the HTML 5 standard is being defined now. The trailing “ /” is optional in HTML 4, but mandatory in HTML 5.

HTML tags control appearance, not content As we’ve seen in our earlier example and here, adding tags to a page does not change its content, just its format. Each of these pages has the same words, but they differ in appearance. The top page had no HTML tags added to it. For the second one, I added tags to change the color of parts of the text. In the third, I added more tags to change the layout of the page on the screen.

HTML tags These are the HTML 4 tags. <!--...--> <cite> <h3> <menu> <strong> <!doctype> <code> <h4> <meta> <style> <a> <col> <h5> <noframes> <sub> <abbr> <colgroup> <h6> <noscript> <sup> <acronym> <dd> <head> <object> <table> <address> <del> <hr> <ol> <tbody> <applet> <dfn> <html> <optgroup> <td> <area> <dir> <i> <option> <textarea> <b> <div> <iframe> <p> <tfoot> <base> <dl> <img> <param> <th> <basefont> <dt> <input> <pre> <thead> <bdo> <em> <ins> <q> <title> <big> <fieldset> <isindex> <s> <tr> <blockquote> <font> <kbd> <samp> <tt> <body> <form> <label> <script> <u> <br> <frame> <legend> <select> <ul> <button> <frameset> <li> <small> <var> <caption> <h1> <link> <span> <center> <h2> <map> <strike> These are the HTML 4 tags. There are too many to memorize, unless you become a professional Web developer. So you need a good reference.

W3schools make changes on the left side see the result on the right side The W3schools Web site has a complete HTML 4 and 5 reference and online tutorials. It also has a handy tool for learning what a particular tag does. As shown here, you enter an HTML snippet in the left pane. When you click the button at the top left, the result will be rendered in the pane on the right. Can you see what the <h1> tag does? Remember that this is just a learning tool – you cannot actually build Web sites using this tool, but you could copy snippets of HTML from W3schools to a page you were working on. http://www.w3schools.com/Html/

Codeacademy course on HTML and CSS Codeacademy offers a similar course and tag tester. Try both to see which you like both.

Steps to create a Web page Write page content using a text editor Add tags Save page View page using a Web browser Correct any errors Using an ASCII text editor, write the page content and add tags. You must use a plain text editor like Notepad, not a word processor. Save the page, and view it using a Web browser. Correct any errors and check the result using the browser.

Text editor versus word processor This is one sentence. You must compose your HTML pages using a text editor like Microsoft Notepad, not a word processor like Microsoft Word. A text editor stores only the characters you type, one character per byte using a standard character code. A word processor stores a lot of other things like the font and font size used, the size of page margins, whether the text is in the body of the page or a footnote, and so forth. Here we contrast a simple text file with a one sentence Word file. A Web client expects standard text characters in an HTML page. A Web browser would not be able to display a Word file.

All programs > Accessories > Notepad Which text editor? All programs > Accessories > Notepad There are many text editors. Notepad is included with Windows, and is accessed as shown above. You can use it or any other text editor to create HTML files. Regardless of which text editor you use, be sure to save your HTML files with the extension htm or html. If you are using Notepad, be sure to select all files, not txt as the file type. If you accidentally use .txt, your file will end up with the name xxx.html.txt and will not work. I use an editor called Textpad because it can show line numbers, has a spell checker and I am used to it.

To display the HTML source Chrome: Ctrl + U FireFox: Ctrl + U Internet Explorer: Ctrl + F3 You can view the HTML for a page using these shortcuts. You can see how a page you are looking at was marked up using the view source command for your Web browser.

Structure of an HTML page HTML page structure Structure of an HTML page <html> <head> <title>Page title goes here.</title> </head> <body> The body of the page goes here. </body> </html> Every HTML page has a head and body section. The <head> and </head> tags start and end the head section. The <body> and </body> tags start and end the body section. The bulk of the Web page goes in the body section. The head section contains information about the page, like its title. Let’s create a Web page.

Summary We’ve seen that the Web is a hypertext – many interlinked pages. We covered the basics of HTML, in which tags are added to pages to control their appearance when displayed in a browser. We also saw how to create and debug pages using a text editor. You should be able to create simple HTML pages on your own at this point.

Self-study questions What happens if you accidentally leave the closing tag </b> off of a bold-face portion of text? What happens if you accidently misspell the <b> tag as <bx>? How would you make some text both bold face and italicized? What does the <hr /> tag do? What happens if you leave out the </h2> at the end of a heading? What happens if you accidentally leave the "<" off of a tag? Does it matter if tags are in upper case or lower case? We introduced several HTML tags that altered the appearance of the page in this presentation. Do you recall what they were and what each does? An HTML page has two sections, what are they and what tags are used to start and end them? What tags start and end an entire HTML page? What are some of the other tags shown at w3schools, and what are their functions? The HTML standard has been revised several times, but Web authors don’t have to go back and change all of their old pages when a new standard is published. Why not? What does have to be changed when the HTML standard is revised?

Resources W3schools HTML reference and tutorial: http://www.w3schools.com/Html/ HTML & CSS for Beginners http://www.codecademy.com/tracks/htmlcss Free text editors: http://www.techsupportalert.com/best-free-text-editor.htm