CS105 Introduction to Computer Concepts HTML

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 popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
HTML popo.
Teppo Räisänen LIIKE/OAMK 2010
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Overview  Recap  HTML. Recap  What is cloud computing?  What are application service providers (ASPs)?  Describe major functions of operating systems.
Designing for Use CS 105. Building Blocks of the Web HTML –The language of the web. Every web developer should have a basic understanding of it. XHTML.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Softsmith Infotech HTML. Softsmith Infotech HTML Introduction Creation Tags Text List Image Background Link Table Frames Forms.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
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.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
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.
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
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Getting Started with HTML Please use speaker notes for additional information!
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
IS1824: Introduction to Internet Multimedia Lecture 5: Layout in HTML Rob Gleasure
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
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.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
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.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
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 is a markup.
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
HTML.
Introduction to HTML.
HTML Basics.
What is HTML? Acronym for: HyperText Markup Language
Marking Up with XHTML Tags describe how a web page should look
Elements of HTML Web Design – Sec 3-2
Elements of HTML Web Design – Sec 3-2
COMPUTING FUNDAMENTALS
Computers and Scientific Thinking David Reed, Creighton University
Web Design and Development
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
HTML Tables & Frames Internet Technology.
Html.
Introduction to HTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
HTML Tables & Frames Internet Technology.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

CS105 Introduction to Computer Concepts HTML Instructor: Yang Mu

A browser retrieving a Web page

Static vs. Dynamic web page A static web page is a web page that is delivered to the user exactly as stored. Dynamic web pages are generated by a web application.

HTML Provides a simple notation for describing nearly all of the features we would want to incorporate into design of our page. Hyper-Text Markup Language - Hyper : Links - Text - Markup : Tags to describe the page we are designing. - Language : It is a computer language with its syntax and semantics.

A marked-up document

What is an HTML file An HTML file is a text file containing small markup tags. The markup tags tell the web browser how to display the page. These tags are called Elements. An HTML file must have an htm or html file extension. An HTML file can be created using a simple text editor

HTML Elements HTML Tags Tags are used to mark-up HTML elements. Tags are surrounded by “<“ and “>” (angle brackets). Tags normally come in pairs like <html> and </html> Start and end tags mark off regions of the text file to indicate some processing that is to be applied to that section of text. This region is called the content of the element. There are elements like <BR>, which do not mark blocks of text and thus do not require and end tag. Tags are not case sensitive, <b> is the same as <B>

HTML Elements Tag Attributes Tags can have attributes to provide additional information about the HTML elements on your page. <BODY BGCOLOR=“Red”> … </BODY> will show a red background. Attributes are always added to the start tag of an HTML element.

HTML Elements Headings Paragraphs Line Breaks Headings are defined with the <H1> to <H6> tags. <H1> defines the largest heading. <H6> defines the smallest heading. Paragraphs Paragraphs are defined with the <P> tag. Line Breaks <BR> tag is used when you want to end a line, but you don’t want to start a new paragraph. Horizontal Rule: <HR> Comments in HTML <!-- This is a comment --> is a comment and it will be ignored by the browser (Notes for programmers).

Example

Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: <HTML> <HEAD> … </HEAD> <BODY> </BODY> </HTML>

Page Structure The HTML element surrounds the entire page description and identifies it to the browser as an HTML document. The HEAD element contains relatively few elements that provide the browser information about the document. The BODY element contains all of the text to be displayed and elements that control its display on the page.

Try HTML Open Notepad++/Notepad or Wordpad. Type: Save the <head> <title>Title of Page</title> </head> <body> This is my first homepage. <b>This text is bold</b> </body> </html> file as “mypage.html” Close the Notepad and find the file from local drive, you can see this file has the webpage icon, double click the file and see it through Internet Explorer.

HTML Links HTML uses a hyperlink to link to another document on the web. HTML uses the <a>(anchor) tag to create a link to another document An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc. The href attribute is used to address the document to link to Ex: <a href=“www.cs.umb.edu”> CS Dept.</a>

HTML Links The name attribute is used to create a named anchor. When using named anchors we can create links that can jump directly into a specific section on a page, instead of letting the user scroll around to find that section. Ex. <a name=“Tips”> Tips to display</a> And we can have a link to jump to Tips section: <a href=“#Tips”>Go to Tips </a>.

HTML Images An image element doesn’t contain anything and has no close tag. <IMG SRC = “ Some URL” (Required) Where the image is. ALIGN = LEFT, RIGHT, or CENTER How to align it on the page. WIDTH = n Scale the image to n pixels wide. HEIGHT = n Scale the image to n pixels high. HSPACE = n Total space around the image horizontally. VSPACE = n Total space around the image vertically. ALT = “some text”> What shows up if the image doesn’t appear.

HTML Images The IMG element is an element that uses its attributes to identify an image to be inserted into the page and to describe how the image is to be presented. Images are identified using the required SRC attribute, the value of which is a URL. Images don’t really live in the pages they appear in, but they are treated as implicit hyperlinks to the specified file. The image may be aligned relative to the text it appears next to using the ALIGN attribute. The size of the image can be controlled using the WIDTH and HEIGHT attributes. The HSPACE and VSPACE attributes indicate the total number of pixels of space that will surround the image. The ALT attribute should be used to provide a text substitute for non-graphical browsers and also for use while the image is loading.

HTML Tables In HTML, tables are defined with the <TABLE> tag. A table is divided into rows (with the <TR> tag, and each row is divided into data cells (with the <TD> tag). The letters TD stands for “table data” which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

Tables and Border If you do not specify a border attribute, the table will be displayed without any borders To display the table with borders, you will have to use the border attribute Ex. <table border=“1”>

Table and Heading Headings in a table is defined with <th> tag. Ex. <th>Column 1</th>

Example

HTML Tables <TABLE BORDER = n Width of the table border. CELLSPACING = n Space between cells. CELLPADDING = n Blank space within cells. WIDTH = n or n% Width of the table in pixels or as a portion of the page. A table can only contain TR elements. </TABLE>

HTML Tables <TR ALIGN = “LEFT”, “RIGHT”, or “CENTER” Alignment of contents of data in cells. VALIGN = “TOP”, “BOTTOM”, or “MIDDLE”> Vertical alignment in cells. A table row can only contain TD or TH elements. </TR>

Example

HTML Tables <TH ALIGN = “LEFT”, “RIGHT” or “CENTER” Alignment of contents in this cell. VALIGN = “TOP”, “BOTTOM” or “MIDDLE” Vertical alignment in this cell. COLSPAN = n Width, in columns of this cell. ROWSPAN = n> Height, in rows, of this cell. A table header can contain text, images, links, lists, and tables. </TH>

HTML Tables <TD ALIGN = “LEFT”, “RIGHT” or “CENTER” Alignment of contents in this cell. VALIGN = “TOP”, “BOTTOM” or “MIDDLE” Vertical alignment in this cell. COLSPAN = n Width, in columns, of this cell. ROWSPAN = n> Height, in rows, of this cell. A table data cell can contain text, images, links lists and tables. </TD>

Example

HTML Lists Unordered lists: a list of items marked with bullets <li> Dogs </li> <li> Cats </li> </ul> Ordered lists: a list of items marked with numbers <ol> <li> Fish </li> <li> Duck </li>

Example

HTML Lists A definition list is a list of terms and explanation of the terms. <DL> <DT>Coffee </DT> <DD>Black hot drink </DD> <DT> Milk </DT> <DD> White cold drink </DD> </DL>

Example

HTML Lists <OL TYPE = “A”, “a”, “I”, “i”, or “1” Type of label for items START = n> Starting value for labels <LI> … </OL> An ordered list can only contain LI elements.

Example

HTML Lists <UL TYPE = “DISC”, “CIRCLE” or “SQUARE”> Type of label for items. <LI> … </UL> An unordered list can only contain LI elements.

Example

HTML Lists <LI TYPE = “DISC”, “CIRCLE”, or “SQUARE” (In UL) Type of label for this and later items. TYPE = “A”, “a”, “I”, “i”, or “1” (In OL) Type of label for this and later items. VALUE = n> (In OL) Label value. A list item can contain text, lists, images, tables and links. A list item doesn’t require a close tag, though it’s not a bad idea to put one in anyway.

Example

HTML Frames With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others The Frameset tag <frameset cols=“25%, 75%”> <frame src=“frame_a.html”> <frame src=“frame_b.html”> </frameset> The example shows a frameset with two columns. The first column is set to 25% of the width of the browser window, and the second is set to 75% width of the browser window.

Example

HTML Frames <FRAMESET ROWS = n, n, … or n%, n%,… Height of the frames in pixels or as a portion of the page. COLS = n, n, … or n%, n%, … Width of the frames in BORDER = n Space, in pixels, between frames BORDERCOLOR = “color” Color of the border between frames. FRAMEBORDER = “yes” or “no” > </FRAMESET>

Example

HTML Frames <FRAME SRC = “some url” (Required) URL of the HTML document that will appear in this frame. MARGINWIDTH = n Blank pixels to be used to left and right of this frame’s contents. MARGINHEIGHT = n Blank pixels to be used to top and bottom of this frame’s contents. SCROLLING = “yes”, “no” or “auto” NORESIZE BORDERCOLOR = “color” FRAMEBORDER = “yes” or “no” </FRAME>

HTML Background The <Body> tag has two attributes where you can specify backgrounds. The background can be a color or an image. The BGCOLOR attribute sets the background to a color. The value of this attribute can be a hexadecimal number, an RGB value, or one of the 16 predefined color names. <body bgcolor=“#000000”> <body bgcolor=“rgb(0, 0, 0)” <body bgcolor=“black”> #00 00 00 three two digits hexadecimal numbers (base 16) ranging from 0 to 255 (00 to FF). The first number specifies the intensity of red, second green and third blue. Example: #000000 #FFFFFF #800080 (violet)

HTML Background The background attribute sets the background to an image. <body background=“yourimage.gif”> <body background=“http://website.com/image.gif”>

Example

Reference http://www.w3schools.com/html/