HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
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.
HTML popo.
Introduction to HTML & CSS
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
WeB application development
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
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 and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Creating Web Pages Getting Started. Overview What Web Pages Are How Web Pages are Formatted Putting Graphics on Web Pages How Web Pages are Linked Linking.
HTML Introduction HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
Chapter 14 Introduction to HTML
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Creating a Basic Web Page
DAT602 Database Application Development Lecture 14 HTML.
With your friendly Web Developer, Chris.. Terminology  HTML - > Hypertext Markup Language  CSS -> Cascading Style Sheet  open tag  close tag  HTTP->Hypertext.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Understanding HTML Code
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
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.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
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.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
Explorers Guild April 27, What is HTML? Hypertext Markup Language (HTML) is the basic building block of the World Wide Web page. HTML files are.
Just Enough HTML How to Create Basic HTML Documents.
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
HTML: Hyptertext Markup Language Doman’s Sections.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to HTML UWWD. Agenda What do you need? What do you need? What are HTML, CSS, and tags? What are HTML, CSS, and tags? html, head, and body.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
LBSC 690 Session 4 Programming. Languages How do we learn a language? Learn by listening Then reading Then writing How do we teach programming? Learn.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
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.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Introduction to XHTML.
Document Structure & HTML
Lesson 2: HTML5 Coding.
Presentation transcript:

HTML Basics BCIS 3680 Enterprise Programming

Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer (Web server).  The Web server locates the requested page and, if the requested page is a dynamic page, executes programming code.  The Web server sends the resulting page to the client that requested it.  Each resource (a web page, a JPG file, a downloadable EXE file, etc.) on the Web server is uniquely identified by its Uniform Resource Locator (URL).

What’s In a URL 3

Web Root  If you just enter the domain name, e.g., the Web server assumes that you want to access the Web root directory.  Since only domain name is entered, there won’t be a directory for sure. In this case, you will get the default page in the root directory.  They usually go by the name default.htm, default.html, index.htm, index.html, etc., as defined by the admin.  and will all bring up the same index.php file in the root directory

CoB Default Page: No File Name in URL 5

CoB Default Page: File Name in URL 6

Default Page in a Subdirectory  If you don’t specify any file name, the Web server assumes that you want to access the “default page” in that directory.  and both will bring up the page called index.php in the itds directory.  Note this file is different from the index.php in the CoB root directory.  In the Tomcat jargon, a default page is a “welcome file”. 7

ITDS Default Page 8

Static Web Pages 9  A Web page author composes an HTML page, and saves it as an.htm or.html file.  A user types a page request via URL into the browser, and the request is sent from the browser to the Web server.  The Web server receives the page request and locates the.htm / html page in local file system.  The Web server sends the HTML stream back across the Internet to the client browser.  The browser interprets the HTML and displays the page.

HTML  HTML is not case sensitive.  Two main components of an HTML page  Head  Body  HTML defines how text should be displayed on Web pages by using tags. The text enclosed between an opening tag and its matching closing tag is controlled by the tag. 10

Writing HTML with Notepad Add “html” or “htm” file extension Change type to “All Files” 11

HTML Elements 12  An element (“tag”) consists of an opening tag (e.g., ) and a closing tag (e.g., ).  Both contain a tag name between angled brackets. The only difference is the forward slash in the closing tag.  An element defines either the structural role or formatting instruction for the portion of the text between the opening and closing tags, e.g.,  for level-1 heading  for boldface

HTML Elements 13 TagUse Header section of HTML Text to display as title of page, used as child of Defines a table, parent of,, and Table row Column headings (bold, centered), used as child of Table data (cell), used as child element of Unordered list List item (bullet), used as child of Paragraph Headings (# being a number between 1 and 7) Horizontal bar Line break

Well-Formed Documents 14  Some elements do not enclose any text. They usually are structural elements, e.g., for break, for horizontal bar.  Only the opening tag is really needed for these elements.  However, there is a trend toward “well-formed” markup documents. To be compliant, it’s a recommended practice to add a matching closing tag any ways.  A shorthand is to insert a space and a forward slash after the tag name in the opening tag, e.g.,. This is considered a well-formed element, even though there is only one tag.

HTML Element Example  Each attribute is a name=value pair.  Quotation marks in the attribute are optional but often included.  An element can have multiple attributes, e.g.,  Closing tag is the same as opening tag, with a “/” added to the front.  Not every element has attributes, e.g., the element doesn’t. 15

Table HTML 16 Note how the use of non-breaking space ( ) adds borders to an empty cell.

Dynamic Web Pages 17  In a dynamic page, certain contents do not exist before the page is requested.  The dynamic contents are generated upon request and often related to input provided by the user.  For example:  The current time on the Web server.  Page contents that show the current user’s username, first name, etc.

Creating Dynamic Web Pages with JSP 18  JSP is a way to generate dynamic contents in Web pages.  It is a server-side scripting language.  You can mix regular HTML tags with JSP script in the same JSP page.  The JSP scripts, if any, are interpreted on the Web server (in fact, the application server does this).  The content generated by the execution of JSP code is integrated with HTML code and the resulting page is sent to the client browser.

HTML Formatting  Instructs the browser on how to format and display HTML tags (elements).  HTML defines the structure of a document, e.g., to for headings of different levels; for paragraph.  Although you may add attributes to these tags to define their formatting, there are shortcomings to this method:  The coding is fixed to the tag. Style defined in an tag is good only for that particular instance of. Any other tags on the SAME document will not take on the same look.  If you want to update the looks of your page, you have to search the page, and find and fix every single instance of the tag you want to update.  Don’t even think about reusability on other pages. 19

Cascading Style Sheets  The trend is to move toward the CSS.  If you define styles for the current sheet, you only need to define a style for a particular tag once. All instances of that tag within the page gets the same look.  If you define styles as a separate CSS document, you can link any number of pages to that document. All instances of a particular tag in all pages will look the same. This facilitates uniform looks across all pages on a site.  Updating only needs to be done at one spot.  A top-level style is inherited downwards unless overridden, e.g., background will be inherited by and. This is what “cascading” in the name means. 20

Defining a Style  For styles defined within the page, use the tag and put it in the section.  A style name starts with a period (well, it’s fact more complex than that, but this is good enough for this course), followed by the name of the style.  A style can be composed by more than one aspect, e.g., font, font-size, font-style, background, foreground, etc. Each of these is defined in the form of attribute_name:attribut_value. Use semicolon to separate different name-value pairs. The semicolon after the last name-value pair is optional. 21

Using a Style  To format an HTML tag using a defined style, add a name- value pair as an attribute of the tag in the format of: style = style_name 22