HTML CODING Text output is black and white text that opens in NOTE pad. These files can be saved and used in other programs.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
HTML popo.
HTML: HyperText Markup Language Hello World Welcome to the world!
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.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
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.
13 February Building a Web Page. HTML Files Two types of information Text Instructions on how to display Instructions are in the form of tags Tags are.
Web Page Development Identify elements of a Web Page Start Notepad
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
4.01 Cascading Style Sheets
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
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.
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
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
CS105 Introduction to Computer Concepts HTML
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
CITY UNIVERSITY / Vysoká Škola Manažmentu.:MG Information Systems :. © Martina Cesalova, 2005 MS FRONTPAGE 1 1.Open FrontPage – View -> Page 2.Open.
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)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
Website Development with Dreamweaver
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
CIS234A Lecture 9 Instructor Greg D’Andrea. Working with Table's Column Groups We've formatted the content of the table columns by modifying the attributes.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Getting Started with HTML Please use speaker notes for additional information!
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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
HTML Basics.
LAB Work 01 MBA 61062: E-Commerce
4.01 Cascading Style Sheets
Marking Up with XHTML Tags describe how a web page should look
With Microsoft FrontPage 2000
HTML: HyperText Markup Language
Madam Hazwani binti Rahmat
Creating Tables in a Web Site Using an External Style Sheet
Web Programming– UFCFB Lecture 5
TOPICS Chrome Dev Tools Process for Building a Static Website
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Using Templates and Library Items
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
4.01 Cascading Style Sheets
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML CODING

Text output is black and white text that opens in NOTE pad. These files can be saved and used in other programs. HTML output is more dynamic with formatting options with color, table boarders, pictures, and hyperlinks that open in an Explorer window. They can be copied and pasted into excel and access.

HTML documents are divided into sections. The “head” section (the contents of the head element) and a “body” section (the contents of the body element). The body can be subdivided into paragraph and tables. HTML Structure

The HTML output is controlled with the ELEMENT command. Example: ELEMENT “P” “this is a test paragraph”. This will open a paragraph print the text in the second set of quotes and then close the paragraph. This is a test paragraph

An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag Tags are used to mark up the start and end of an HTML element. Valuetags are used to mark up one field at a time. An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element’s start tag. An element’s start tag may contain any number of space separated attribute/value pairs.

It is best to type all KEY words in Capital letters e.g. SECTION WHEN AT START ELEMENT “title” “This is a title”. END SECTION.

It helps to visualize the structure when you indent sub-sections. SECTION WHEN AT START ELEMENT OPEN “HTML”. ELEMENT OPEN “BODY”. END SECTION.

Some elements do not have to be typed in for the report to run. HTML is automatically put into the report when the run button is click. However if the report is complex you may receive an error message with multiple root elements.

Explicitly include all start and end tags, including the optional tags Quote all attribute values, use double- quoted syntax, and do not use any whitespace around the equals sign: ATTRIB(“style”,“color:red”). Use lowercase for all element and attribute names.

You can have more than one tag or attribute per element with different properties. You can also nest tags and valuetag in complex structures. ELEMENT OPEN “table” ATTRIB(“style”, “background-color:red”) ATTRIB (“border”, “3”).

If you want more than one style property you have to concatenate the properties with a semi-colon. ATTRIB(“style”, “color:red;font:12;font:italic”).

If the data is too complex to fit into a single element then use the term open and close after the specification of element. ELEMENT OPEN “p” “This is a test paragraph”. ELEMENT CLOSE “p”. Results are the same for this example: This is a test paragraph Every OPEN element must have a corresponding CLOSE element.

A simple output consists of at least three sections: SECTION WHEN AT START ELEMENT OPEN “HTML”. ELEMENT OPEN “BODY”. END SECTION. SECTION DATA Main body of data or table……. END SECTION. SECTION WHEN AT END ELEMENT CLOSE “BODY”. ELEMENT CLOSE “HTML”. END SECTION.

Different types of ELEMENT Open the document ELEMENT OPEN “HTML”. Close the body ELEMENT CLOSE “body”. Create a line break ELEMENT “br”. Create a horizontal line ELEMENT “hr”. Open a table ELEMENT OPEN “table”

Open a table row ELEMENT “tr” Open a hyperlink ELEMENT OPEN “link” Open a picture ELEMENT OPEN “img” ATTRIB("src"," ra/nssc/Projects/NASIS/triangle.jpg") ATTRIB ("target", "_blank") ATTRIB ("alt","'NASIS site link broken'") ATTRIB ("width", "600") ATTRIB ("height", "536") ATTRIB ("usemap","#texture").

Examples of Attributing elements ELEMENT "h3" ATTRIB ("style", "color:FF0000") "Red text indicates critical errors.". Red text indicates critical errors. ATTRIB("style", "color:#0000FF;font:12") “Test color and size”. Test color and size ELEMENT OPEN "h2" ATTRIB ("align", "center") "This report make over 200 checks on the data.". This report make over 200 checks on the data.

A simple table example: TEMPLATE basic TAG "td" ELEMENT "tr" FIELD VALUETAG "h4". SECTION WHEN AT START DATA ELEMENT OPEN "HTML". ELEMENT OPEN "body". ELEMENT "h2" "List of Components". ELEMENT OPEN "table”. ELEMENT OPEN "thead”. USING basic "component". ELEMENT CLOSE "thead". END SECTION. SECTION DATA ELEMENT OPEN "tbody". ELEMENT OPEN "tr". USING basic compname. ELEMENT CLOSE "tr". ELEMENT CLOSE "tbody". END SECTION. SECTION WHEN AT END DATA ELEMENT CLOSE "table". ELEMENT CLOSE "body". ELEMENT CLOSE "HTML". END SECTION.

Here is the same table marked up with Attiributes TEMPLATE basic TAG "td" ELEMENT "tr" FIELD VALUETAG "h4". SECTION WHEN AT START DATA ELEMENT OPEN "HTML". ELEMENT OPEN "body". ELEMENT "h2" ATTRIB ("style", "color:0000FF") "List of Components". ELEMENT OPEN "table" ATTRIB("border", "3") ATTRIB("style", "background-color:FF0000"). ELEMENT OPEN "thead" ATTRIB ("align", "center"). USING basic "component". ELEMENT CLOSE "thead". END SECTION. SECTION DATA ELEMENT OPEN "tbody". ELEMENT OPEN "tr". USING basic compname. ELEMENT CLOSE "tr". ELEMENT CLOSE "tbody". END SECTION. SECTION WHEN AT END DATA ELEMENT CLOSE "table". ELEMENT CLOSE "body". ELEMENT CLOSE "HTML". END SECTION.

This is a main report that runs subreports:

The first sub-report plots the textures on a triangle

The third, forth and fifth sub-report have hyperlinks, prints a soils description and creates a mini profile

Define statements can be used to build HTML coding. DEFINE y1 y||" px". DEFINE x1 x||" px". DEFINE p12 "position:absolute;left:"||x1||";top:"||y1||";color:3366FF“. SECTION WHEN c1==1 data ELEMENT OPEN "h3" ATTRIB ("style", p12) "x". ELEMENT Close "h3". end section.

This example selects the component name and inserts it into a url with a define statement and then calls it later when the OSD button is pushed. EXEC SQL select compname from component;. DEFINE fl1 compname[0:1]. DEFINE name1 upcase(compname). DEFINE osd1 " section when at start data element open "a" Attrib("href",osd1) Attrib("target", "_blank") "VISIT OSD SITE". element close "a". end section.

Exercise: Create a table of component names in your selected set. Use a template for the table Give the table a border with shading Color the background of the table Use H2 for the title and color the font Center the table heading in the cell Size the text with H4

INSTRUCTIONS Build your report in stages Write your query and run with a default xml output. The Explorer window will show you all the formatting for the default report. You can run the report in HTML default format and open the window with view source. It will start with a style sheet with all the default soil survey values.

Next write the basic template and sections without any fanfare (no attributes) Run the report and fix any errors that crop up. Then start adding attributes to the fields until you have a final product. Note NASIS and Windows will shut down and fail after 54 explorer windows have been opened.

EXEC SQL SELECT compname FROM component;. TEMPLATE basic TAG "td" ELEMENT "tr" FIELD VALUETAG "h4". SECTION WHEN AT START DATA ELEMENT OPEN "HTML". ELEMENT OPEN "body". ELEMENT "h2" ATTRIB ("style", "color:0000FF") "List of Components". ELEMENT OPEN "table" ATTRIB("border", "3") ATTRIB("style", "background-color:FF0000"). ELEMENT OPEN "thead" ATTRIB ("align", "center"). USING basic "component". ELEMENT CLOSE "thead". END SECTION. SECTION DATA ELEMENT OPEN "tbody". ELEMENT OPEN "tr". USING basic compname. ELEMENT CLOSE "tr". ELEMENT CLOSE "tbody". END SECTION.