HTML & CSS Jan Janoušek.

Slides:



Advertisements
Similar presentations
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
Advertisements

Table, List, Blocks, Inline Style
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook Markup Language - FBML Teppo Räisänen.
Very quick intro HTML and CSS. Sample html A Web Title.
Today’s objectives  Element relations – tree structure  Pseudo classes  Pseudo elements.
Using CSS (Cascading Style Sheets) Effie Nadiv Edited by permission from author by Amir Kirsh.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
Programming I 2 nd lecture. Block-level and inline elements BlockInline block-level elements generally can contain text, data, inline elements, or other.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Today’s objectives  Review  CSS | Rules | Declarations  HTML Structure document  Class asignment.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
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 HyperText Markup Language ©Richard L. Goldman July 15, 2003.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Introduction 1 Basics syntax, tags of HTML 2 Lists 3 Tables 4 Div 5 HTML Forms 6.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Review 1 csc242 – web programming.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
SSD1 – Introduction to Information Systems
HTML.
Web Systems & Technologies
CGS 3066: Lecture 2 Web Development and HTML5
Organizing Content with Lists and Tables
Web Development & Design Foundations with HTML5
HTML Tables & CSS Styles
Semester - Review.
Unit 3 - Review.
Creating Your Own Webpage
CSS Rule Selector Declaration Block Value Attribute Name body {
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
>> HTML: Tables.
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Web Development & Design Foundations with HTML5 8th Edition
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
CGS 3066: Web Programming and Design Spring 2016
Programming the Web using XHTML and JavaScript
CSS Intro.
Cascading Style Sheets
HTML – Organizing Page Content
Session I Chapter 10 - How to Work with Tables
HTML Level II (CyberAdvantage)
LING 408/508: Computational Techniques for Linguists
CGS 3066: Lecture 2 Web Development and HTML5
Cascading Style Sheets
Introduction to XHTML Cont:.
Pertemuan 1b
Introduction to HTML.
Web Development & Design Foundations with HTML5
ITI 134: HTML5 Desktop and Mobile Level II
Principles of Web Design 5th Edition
Johan Ng and Muhammad Hazzry
CS3220 Web and Internet Programming More CSS
Web Client Side Technologies Raneem Qaddoura
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 9 Table Basics Key Concepts
CGS 3066: Web Programming and Design Fall 2019
CS3220 Web and Internet Programming More CSS
Presentation transcript:

HTML & CSS Jan Janoušek

Sources HTML: CSS: http://htmldog.com/reference/htmltags/ http://www.w3schools.com/tags/ http://www.w3.org/TR/html5/ https://developer.mozilla.org/en-US/docs/Web/HTML/Element … CSS: http://www.w3schools.com/css/default.asp http://www.w3schools.com/cssref/ https://developer.mozilla.org/en-US/docs/Web/CSS/Reference http://tympanus.net/codrops/css_reference/

Structural tags html head body div span

Meta Information DOCTYPE title link meta style

Text formating p - paragraph h1, h2, h3, h4, h5, and h6 - heading strong / b – strong / bold em / i – emphasis/italic blockquote cite code pre – preformatted text br - line break hr - horizontal rule sub, sup – subscript/superscript …

Links and images a img - image href – hrypertext reference target (_blank, _self, _top, _parent) rel (nofollow, noreferrer, help, alternate, etc.) … img - image src - source alt – alternative text width height

Lists ul – unondered list ol – ordered list li – list item dl – description list dt – defines term dd – defines description

Tables table tr – table row td – table data cell rospan, colspan th – table header cell tbody – table body thead – table head tfoot – table footer caption …

Forms Form input textarea select option optgroup button label fieldset action, method, enctype input type, name textarea select option optgroup button label for fieldset …

Scripts & Styles script style link src type <script type="text/javascript" src="somescript.js"></script> <script type="text/javascript">…</script> style <style type="text/css">…</style> link href rel – relationship <link rel="stylesheet" type="text/css" href="default.css" />

CSS In-line Internal External

Selectors Patterns used to select the element(s) you want to style Element type – div, p, span, …. HTML attributes – ID (#_ _ _), class (._ _ _) Attribute selectors – [attr], [attr=value], [attr^=value], … Universal selectors - * Pseudo classes - :hover, :link, :focus, … Combinators div p - descendant div > p - child input + p - adjacent sibling input ~ span - general sibling More in CSS3

Properties color background-color border font-size float position width / height padding margin …. many others

Values Size Color px % em ex pt vh, vw pc, cm, mm, in. #ff0000 #f00 red rgb(255,0,0) rgb(100%,0%,0%) rgba(255, 255, 255, 0.5)

Developer tools – „F12 tools“

Task of the day go throught tutorial: https://www.codecademy.com/en/tracks/web