HTML Introduction 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.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
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.
Web development  World Wide Web (web) is the Internet system for hypertext linking.  A hypertext document (web page) is an online document. It contains.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
Internet Publishing / Dreamweaver Luke E. Reese CARRS
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
COMPUTERS AND INFORMATION SYSTEMS HTML. How the Web Works To access a web site  Enter its address (URL) in the address box of your browser 
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
1 Creating a Web Page An introduction to Hypertext Markup Language (HTML) ~~~~~ ~~~~ ~~~~~
Basics of HTML.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Understanding HTML Code
Website Development with Dreamweaver
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Just Enough HTML How to Create Basic HTML Documents.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
HTML INTRODUCTION. What is HTML?  HTML stands for Hypertext Markup Language  Developed in 1990  Hidden code that helps us communicate with others on.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
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.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML – The Basics COE 201- Computer Proficiency. The Internet The World Wide Web ▫Also known as the Web ▫Created in 1989  European Laboratory for Particle.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Internet Publishing / Dreamweaver Luke E. Reese Biosystems & Ag. Engr. / CARRS
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
HTML – The Basics Rebecca Shillingburg
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. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
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.
Introduction to HTML.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Presentation transcript:

HTML Introduction HTML 4/17/2017 Today’s goals: Introduce HTML Hand Code your project in HTML Upload to your uweb folder View your new page on the Web! Anyone already familiar with HTML? Disclaimer: I do not work in HTML very often.

Introduction to HTML Scholarly Writing and the Internet 4/17/2017 No clear favorites among tools and techniques for “Internet documentation.” Format can be: Hand-coded HTML HTML via an authoring tool (e.g., Dreamweaver) The most significant requirement is some knowledge of HTML. We will be working with Dreamweaver later in the quarter, but first it is important to learn a little bit of html so you can troubleshoot and edit on your own. MySpace Users? Already probably know a little html.

Introduction to HTML Some acronyms 4/17/2017 HTML: Hypertext Markup Language, the format used on the World Wide Web. HTTP: Hypertext Transfer Protocol, the language used to transfer HTML files from web servers to browsers. URL: Universal Resource Locator, an address for information on the web.

Introduction to HTML What is HTML? 4/17/2017 When you look at a Web page, you are looking at HTML. HTML is a language HT = Hypertext ML = Markup Language HTML files are ASCII text files. HTML files end in .HTM or HTML.

Introduction to HTML What is HTML? 4/17/2017 Markup codes define document structure. Internet browsers interpret markup codes so that formatting is displayed. To see a file in its source format, view it in a text editor such as Notepad. Markup codes are visible and editable. File with html code sitting on another server somewhere. Saved to a giant harddrive, just like any other kind of file. The difference is that this file is publicly accessible, I.e. you can access the file with the piece of software known as your internet browser. You point your browser to an URL (Universal Resource Locator). Your broswer opens the file, and “reads” the code. Based on the code, the browser begins assembling the graphical document that you know as a “website.” So it is a bit of a misconception that you are going “to” a website. The document is actually assembled, in its fully realized form on your computer.

Coding HTML Viewing page and source code 4/17/2017 Open Internet Explorer. Browser displays a formatted page. To see HTML source code, from the View menu select Source. See how document elements are tagged. For example, there are tags for Heading 1, lists, etc. Let’s look at a page as an example. This is what the actual file looks that resides on the remote server. Your internet browser will interpret this code and give you the fully formatted page that you see when you are “browsing.” Right now, this probably looks very confusing. But it will make more sense once we jump in and start a little bit of coding.

Coding HTML HTML source code 4/17/2017 Tags are codes enclosed in angle brackets. For example: <h1>Works Cited</h1> is a line of text that uses the Heading 1 tag. The tag is <h1> Before we start entering code, I want to explain a bit about the way that your browser reads the formatting. The tools of formatting are called “tags.” Just like any other language HTML has certain rules of syntax. One of the most basic rules is the separation between content and formatting. Formatting is indicated by the angle brackets. For the most part, content falls between the angle brackets.

Coding HTML Well formed HTML source code 4/17/2017 Basic rules of well-formed HTML: Tags (elements) are lower case. For example, <h1>. Tags must have closing tags. For example, <h1>This is heading 1</h1> Tags must nest properly. For example, <h1>This is <em>heading 1</em></h1> Attribute values must be quoted. For example, <background-color=“blue”> Once you start to learn them, the tags make a certain amount of sense. Most are abbreviations or acronyms of english language descriptions of the particular formatting feature. For example, “h1” stands for Heading Level One. Opening / Closing Tags The easiest way for me to conceptualize the embedding of tags is to think of them occurring in concentric circles around the content. An attribute value is the name or number of a color or font, basically anything that has a variety of different values that could be assigned to it. So for instance, your background color could be white, black, blue, pink, whatever. The important thing is that you put the name of that color inside of quotation marks.

Introduction to HTML Let’s Start Coding 4/17/2017 You will hand code your project by adding: Head and body sections Headings Images Hyperlinks External links Connecting Multiple Pages

Coding HTML Use Notepad and browser 4/17/2017 Open Notepad and save the file as “index.html”. HTML file names Uweb.ucsb.edu/~kknight Uweb.ucsb.edu/~kknight/mypage.html Open the file with Internet Explorer When your browser looks for files, it is case-sensitive. In other words, if you name your file with capital letters and someone types in the URL / web address but doesn’t put the caps, they won’t find your file. To keep things simple, always use all lowercase letters and do not include spaces. Why use “index”? Main page should always be named index Browser, when locating a file, automatically looks for the index file, so you don’t have to append the file name to the URL.

Coding HTML Use Notepad and the browser 4/17/2017 You will work with both Notepad and the browser open. Make changes in Notepad. Save changes. Click Refresh in the browser to see your changes.

Coding HTML The HTML tag 4/17/2017 The first tag in every HTML file is the HTML tag. This tag tells the browser that the file is HTML. In Notepad, at the beginning of index.html, type <html></html> Always a good coding practice to type your closing tag right away and then put content in between. This helps ensure you won’t have tags left open in your document.

Coding HTML The HEAD tag 4/17/2017 Follows the HTML tag. Sets up an area for items that don’t appear on the page: The title that appears in the browser window’s title bar. Keywords that identify your page to Internet search engines. Don’t worry about spacing in the .html file Space things out so you can make sense of them later. This won’t affect the look of your page. I’ll demonstrate this later.

Coding HTML Insert the HEAD tag 4/17/2017 After the <html> tag, type <head> </head>

Coding HTML The TITLE tag 4/17/2017 Contains the title that appears in the browser window’s title bar. Goes in the HEAD section. The title is not visible in the page itself. The format of the Title tag is <title>Works Cited</title>

Coding HTML Insert a TITLE tag 4/17/2017 Between the HEAD tags, type: <title>Works Cited</title>

Coding HTML Save and check your work 4/17/2017 In Notepad, click File, Save. In the browser, Click Refresh and note changes in the title bar.

Coding HTML The BODY tag 4/17/2017 The BODY section contains the text and graphics that appear on your page. The BODY section follows immediately after the HEAD section. The format of the BODY section is <body>All text and graphics on the page. </body>

Coding HTML Insert the BODY tag 4/17/2017 After the </head> tag, type <body>. After the end of the text on the page, type </body>.

Background Color <body bgcolor=“colorname”> No closing tag required You can use the names of colors: green, pink, etc. You can also use hex values for the colors - an alphanumeric code that gives different shades of green, pink, etc. Find hex codes on webmonkey.com under “Color Codes.”

Coding HTML Heading Tags 4/17/2017 Heading tags define the sections on your page. Headings are hierarchical: Heading 1, Heading 2, Heading 3, etc. The format of Heading tags is <h1>This Is Heading 1</h1> <h2>This Is Heading 2</h2> <h3>This Is Heading 3</h3>

Coding HTML Heading Tags for Your Page 4/17/2017 In the body section of your page, enclose the title with <h1></h1>, so that it looks like this: <h1>Heading</h1> Save the file in Notepad, then refresh the page in your browser.

Heading Tags & Alignment The default alignment is left-justified To center your heading, insert the following tag <center></center> Remember to embed or “nest” them properly <h1><center>Title</center></h1> To do right justification, you have to create a division within the code: <div><div align=“right”>Content</div>

Coding HTML Paragraph tags 4/17/2017 Insert the <p> tag at the beginning of each paragraph and </p> at the end. Otherwise, lines of text will appear as a single paragraph in browser, even if you have line breaks in text file. To put a line break in, use the <br> tag

You can format text using HTML font tags: 4/17/2017 You can format text using HTML font tags: <em></em> Renders as italic text style. <strong></strong> Renders as bold text style. <font size=“#”></font> Renders text different sizes. The attribute values range from 1 - 7, with 1 being the smallest. <font color=“color”></font> Renders text a different color You can combine the font color and font size tags as follows: <font color=“color”; size=“#”></font> Note that the font size attributes work in the opposite direction from the heading values. For example, h1 is the largest heading, while font size 1 is the smallest font size.

3 types of links: external, internal, and “mail to” HTML Hyperlinks 4/17/2017 HTML files can contain hyperlinks to files on the same computer or around the world. 3 types of links: external, internal, and “mail to” The “a” stands for address.

All Link tags require two components HTML External Links All Link tags require two components The location you want to link to The text that you want to appear on the page <a href=“http://www.ucsb.edu”>Link Text</a> In an external link, this is the web address of the site

Internal Links An internal link is very similar to an external one. The difference is that you are linking to another html file on your own server. You’ll first need to decide what to name the second file - remember all lowercase, no spaces. Then construct a link with the name of your new file: <a href=“page2.html”>Next</a>

Mail-to Links These allow interested viewers to contact you. <a href=“mailto:kknight08@gmail.com”> Contact Me</a>

You can insert images into HTML code. HTML Images 4/17/2017 You can insert images into HTML code. You insert an image reference using the <img src = > tag. For example, <img src = “zoo.gif”> inserts the zoo.gif file. No closing tag needed. You can also specify the height and width of images to make the rest of the page load faster. <img src=“zoo.gif” height=100px width = 100px> Upload image files with your html files. A note about images: you have to respect copyright when using images. It is best to use your own photos or clip art / photos that is already licensed. When scavenging images off the web, you need to look for copyright information on the site. If you cannot find that the images are copyrighted and you decide to use them, you should always give credit to the site that you took the images from. NEVER link to images hosted on someone else’s site. Always

Coding HTML Upload Your File Using Uweb 4/17/2017 Open your browser and go to www.umail.ucsb.edu Click the ustorage button on the left of the screen Click U-Storage Manager Log in using your UCSBnetID and password. This is the same ID and password you use to access Umail.

Coding HTML Upload Your File Using Uweb 4/17/2017 Click the ustorage button on the left of the screen Click U-Storage Manager button on the left of the screen You will want to upload index.htm to the uweb folder. So click on uweb.

Coding HTML Upload Your File Using Uweb 4/17/2017 Scroll to the bottom of the screen to the File Upload section. Click Browse and go to the folder containing our index.html file. Select index.html and click upload file.

Coding HTML Upload Your File Using Uweb 4/17/2017 Point your browser to the following url: www.uweb.ucsb.edu/~UCSBnetID Your page should now appear! As you update this page, you will repeat this process of uploading the new page to uweb. Refer frequently to this procedure.

DreamWeaver is used at UCSB Knowing some of the code is very useful. HTML Authoring Tools Authoring tools shield you from having to deal directly with HTML code: HomeSite DreamWeaver Microsoft FrontPage Adobe PageMill DreamWeaver is used at UCSB Knowing some of the code is very useful.

Additional Tools You can always “view source” on a page to see what code has been used to create a certain effect. Webmonkey.com - html cheat sheet, color codes, etc.

Title tag: <title> Headings: <h1> Text formatting HTML What we covered Head and Body sections Title tag: <title> Headings: <h1> Text formatting Hyperlinks Images Uploading your site