Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Introduction to HTML, XHTML, and CSS
1 © Netskills Quality Internet Training, University of Newcastle Structure, Presentation and Navigation © Netskills, Quality.
1 A Tool-box for Web-site Maintenance Manjula Patel UKOLN University of Bath Bath, BA2 7AY UKOLN is funded by the Library and Information Commission, the.
September Public Library Web Managers Workshop 2000 Cascading Style Sheets Manjula Patel UKOLN University of Bath Bath, BA2 7AY UKOLN is funded.
Molecular Biomedical Informatics Social Web Design & Research & Social Web Design & Research 1.
Slice and Dice: From PSD Image to XHTML+CSS Svetlin Nakov Telerik Corporation
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Tags and Their Functions
Social Web Design 1 Darby Chang Social Web Design.
© 2010 Delmar, Cengage Learning Chapter 9 Positioning Objects with AP Div Tags.
The University of Adelaide HTML Basics: Getting your code to work Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Svetlin Nakov Telerik Corporation
Creating Tables in a Web Site
Bioinformatics Programming 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Molecular Biomedical Informatics Web Programming 1.
Molecular Biomedical Informatics Web Programming 1.
1 Programming the Web: HTML Basics Computing Capilano College.
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.
HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Web Development & Design Foundations with XHTML
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 22, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Dr. Alexandra I. Cristea XHTML.
Week 10 Creating Positioned Layouts
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Chapter 13 Web Page Design Studio
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Quiz #3 - CSS Lecture Code: Get Neighbors’ URLs for MP1
Cascading Style Sheets
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Very quick intro HTML and CSS. Sample html A Web Title.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
XHTML & CSS 2 By Trevor Adams. Last week XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
HTML CSS JAVASCRIPT. HTML - Stands for Hyper Text Markup Language HTML is a ‘language’ that describes web pages. This language is a collection of codes.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
XHTML & CSS 2 By Trevor Adams. Last week XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Chapter 1: Intro to HTML Section 1: HTML Structure Presentation Section 2: Layout of an HTML File Section 3: Working with Lists & Tables Section 4: HTML.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets
Web Development & Design Foundations with H T M L 5
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Presentation transcript:

Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1

HTML+CSS 2 Web Programming 網際網路程式設計

HyperText Markup Language (HTML) HyperText –contains images, sounds and links to other documents Markup Language –define how to mark things –what is marking? Web Programming 網際網路程式設計 3

4

HTML is plain text The content is divided into two types –tag, used to mark things –text which can be seen in the web page – Text in tag 'b' is usually shown in bold A tag can contain, but not cross, other tags – bold and italic – what the hell? That’s it! We are done. Web Programming 網際網路程式設計 5

So, what actually to learn for HTML? Available tags Suppose that there is a BOOKML language, there might be,,,,,, … Everyone knows which elements may appear in a web page –links, images, tables, forms… –HTML TutorialHTML Tutorial Web Programming 網際網路程式設計 6

Only tags are not enough The same link tag, different destinations – here – there Attribute –href in the above example is an attribute of –Just consider tag as type. For example, phone and camera are two types of things. Then attribute is specification. For example, two cameras could have different resolutions. yes, two different tags could have similar attributes –attributes are various, since they are not visible Considerable tag-attribute combinations Web Programming 網際網路程式設計 7

But we don’t teach here Web Programming 網際網路程式設計 8 Too much time Consulting is always needed

What to learn for HTML in this class? You should know –what HTML is –which elements are available –where to consult Developing HTML is not programming but designing how to mark your document. There are several guidelines when marking. –Correct: in addition to look up services, there are validation services.look up servicesvalidation services –Reasonable: since the document is yours, there is no standard answer of marking. However, please make it reasonable. Many frequently used facilities have a common practice (see the next slide). –Cooperating with CSS: today HTML is just for architecture. To represent a book, for example, HTML should be responsible for only the boundaries of chapters. Leave the color and typeface to CSS. Web Programming 網際網路程式設計 9

10

How to cooperate with CSS General tags (without logical meaning) –block – –inline – Web Programming 網際網路程式設計 11

Any Questions? Web Programming 網際網路程式設計 12

Cascading Style Sheets (CSS) Sheets –list Style –how to render elements Cascading –the famous CSS selector –understanding this is a big step in web design Web Programming 網際網路程式設計 13

CSS selector SelectorDescriptionExample aselect tag.dateselect class,, … a.datemixed #footerselect id (faster) div#footer(unnecessary) #footer a.datecascading selected not selected not selected Web Programming 網際網路程式設計 14

Selected something, then? Change almost anything on the selected elements –background color, border, text color, typeface, font size, margin, padding… –CSS TutorialCSS Tutorial –CSS 語法教學CSS 語法教學 Even switch between block and inline (display) More position schemes that HTML does not provide (float and position) –this advanced (very common today) layout is only in CSS It means you can use arbitrary tags in HTML. But in practice people would use correct tags and use such attributes for special purposes. Web Programming 網際網路程式設計 15

Any Questions? Web Programming 網際網路程式設計 16

Demo 示範 17 Web Programming 網際網路程式設計

Layout tips Table is dead –A List Apart: Articles: Practical CSS Layout Tips, Tricks, & TechniquesA List Apart: Articles: Practical CSS Layout Tips, Tricks, & Techniques Responsive design –Responsive Web Design: What It Is and How To Use ItResponsive Web Design: What It Is and How To Use It –Responsive Web Design: 50 Examples and Best Practices – DesignModoResponsive Web Design: 50 Examples and Best Practices – DesignModo –A List Apart: Articles: Responsive Web DesignA List Apart: Articles: Responsive Web Design –Responsive Web Design - Wikipedia, the free encyclopediaResponsive Web Design - Wikipedia, the free encyclopedia Web Programming 網際網路程式設計 18

Today’s assignment 今天的任務 Web Programming 網際網路程式設計 19

Design static pages of your site Plan pages and the containing blocks. Use HTML to construct them. Use CSS to beautify them. You may add some sample text to make the designs look real.addsomesampletext –inspiration  design  coding –at least a homepage containing links to all pages –remember to include your previous about me page Reference –Ultimate Guide to Website WireframingUltimate Guide to Website Wireframing –30 Fresh Web UI, Mobile UI and Wireframe Kits30 Fresh Web UI, Mobile UI and Wireframe Kits –Google 文件範本Google 文件範本 –Free CSS TemplatesFree CSS Templates Your web site ( will be checked not before 23:59 10/7 (Sun). You may send a report (such as some important modifications) to me in case I did not notice your features. Web Programming 網際網路程式設計 20

Tip The first thing you do in each exercise cd public_html cp -r ex1 ex2  clone ex1 to ex2 ln -fsT ex2 cur  make cur point to ex2 Indent / 縮排 (in vi) –gg=G Web Programming 網際網路程式設計 24

Appendix 附錄 25 Web Programming 網際網路程式設計

HTML5 Very advanced technology: won’t be standard before 2012 Multimedia:,, … Interactive form (without Javascript) Storage Backward compatibility: compatible older HTML and even XHTML Semantic:,,, … 今天就用 HTML5 的新語意標籤 今天就用 HTML5 的新語意標籤 On the other hand, CSS3 is just more fancyCSS3 Web Programming 網際網路程式設計 26

CSS specificity Web Programming 網際網路程式設計

CSS box model Web Programming 網際網路程式設計

CSS float and position float is neither block nor inline –#sidebar { float: left; width: 100px; } In general, block and inline elements obey a main flow –#element_id { position: relative; left: 100px; top 100px; } Use absolute to position elements precisely –#element_id { position: absolute; left: 100px; top 100px; } Use fixed to pin elements on screen –#element_id { position: fixed; left: 100px; top 100px; } CSS In Depth Part 2: Floats & Positions CSS Float Theory: Things You Should Know Please practice to experience the above concepts Web Programming 網際網路程式設計 29