HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.

Similar documents
Appendix D CSS Properties and Values

Cascading Style Sheet Quick Reference

Deccansoft Software Services

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Cascade Stylesheets (CSS)

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Chapter 3 Style Sheets: CSS

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

HTML and CSS COURSE SYLLABUS

CSS Selectors. element selectors. .class selectors. #id selectors

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

ID1354 Internet Applications

CSS. Lecture 16 COMPSCI 111/111G SS 2018

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Parashar Technologies HTML Lecture Notes-4

ITNP43: HTML Lecture 5

CSS Lecture 16 COMPSCI 111/111G SS 2018

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

escuela técnica superior de ingeniería informática

1 of 7 11/12/2009 9:29 AM

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Web Site Design and Development Lecture 5

USER GUIDE MADCAP FLARE Tables

Fundamentals of Web Programming a

Client-Side Web Technologies. CSS Part I

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Reading 2.2 Cascading Style Sheets

ICT IGCSE Practical Revision Presentation Web Authoring

CSS: The Basics CISC 282 September 20, 2014

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)


Assignments (4) Assessment as per Schedule (2)

Display, Overflow, White Space, and Cursor Karl Kasischke WCC INP 150 Winter

Certified CSS Designer VS-1028

Cascading Style Sheets (CSS)

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

Adding CSS to your HTML

CSS: Lists, Tables and the Box Model

CSC 443: Web Programming

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

This tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.

CASCADING STYLESHEETS

BIM222 Internet Programming

CSS for Styling CS380

Structure Bars. Tag Bar

Table Basics. The structure of an table

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Methods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets

CSS for Page Layout Robert K. Moniot 1

TAG STYLE SELECTORS. div Think of this as a box that contains things, such as text or images. It can also just be a

CSS. Shan-Hung Wu CS, NTHU

Dreamweaver CS3 Concepts and Techniques

Table of Contents. MySource Matrix Content Types Manual

CMPT 165: More CSS Basics

Controlling Appearance the Old Way

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

Web Engineering CSS. By Assistant Prof Malik M Ali

Styles, Style Sheets, the Box Model and Liquid Layout

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

@namespace url( /* set default namespace to HTML */ /* bidi */

CSS Cascading Style Sheets

CS7026 CSS3. CSS3 Graphics Effects

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

CSS THE M\SS1NG MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLr Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo

CSCU9B2: Web Tech Lecture 3

COMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts

Tutorial 3: Working with Cascading Style Sheets

Index. CSS directive, # (octothorpe), intrapage links, 26

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

CSE 154 LECTURE 3: MORE CSS

Client-Side Web Technologies. CSS Part II

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Web Design and Development Tutorial 03

ICT IGCSE Practical Revision Presentation Web Authoring

8a. Cascading Style Sheet

c122sep2214.notebook September 22, 2014

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

IMY 110 Theme 6 Cascading Style Sheets

ADOBE 9A Adobe Dreamweaver CS4 ACE.

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

eskills for Volunteers STRATEGIC PARTNERSHIP IN THE FIELD OF YOUTH

Zen Garden. CSS Zen Garden

Transcription:

HTML-5.com HTML-5.com is an HTML User's Guide and quick reference of HTML elements and attributes for web developers who code HTML web pages, not only for HTML 5 but for HTML coding in general, with demos and examples of HTML code plus a cheat sheet for web developers. TV Series & Actors and Actresses. Follow TV Series and HTML 5 on Google+. HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.org/breadcrumb npx - n pixels nin - n inches ncm - n centimeters nmm - n millimeters nn% - nn percent npt - n points (1/72 inch) npc - n pica characters (12 points) nem - n times "m" width nex - n times "x" height Units in Property Values HTML Colors These are the color names and other property values for the sixteen standard HTML colors. For other colors, use the HTML Color Picker. Color Name Hex Color Code Red / Green / Blue / Alpha aqua #00ffff rgba(0, 255, 255, black #000000 rgba(0, 0, 0, blue #0000ff rgba(0, 0, 255, fuchsia #ff00ff rgba(255, 0, 255, Hue / Saturation / Luminance / Alpha hsla(180, 100%, hsla(0, 0%, 0%, 1.00) hsla(240, 100%, hsla(300, 100%, 2011 Accilent Corp. Page 1 of 12 1

gray or grey #808080 rgba(128, 128, 128, green #008000 rgba(0, 128, 0, lime #00ff00 rgba(0, 255, 0, maroon #800000 rgba(128, 0, 0, navy #000080 rgba(0, 0, 128, olive #808000 rgba(128, 128, 0, purple #800080 rgba(128, 0, 128, red #ff0000 rgba(255, 0, 0, silver #c0c0c0 rgba(192, 192, 192, teal #008080 rgba(0, 128, 128, white #ffffff rgba(255, 255, 255, yellow #ffff00 rgba(255, 255, 0, HTML-5.com hsla(0, 0%, hsla(120, 100%, 25%, 1.00) hsla(120, 100%, hsla(0, 100%, 25%, 1.00) hsla(240, 100%, 25%, 1.00) hsla(60, 100%, 25%, 1.00) hsla(300, 100%, 25%, 1.00) hsla(0, 100%, hsla(0, 0%, 75%, 1.00) hsla(180, 100%, 25%, 1.00) hsla(0, 0%, 100%, 1.00) hsla(60, 100%, Note that, as shown above, the alpha value must be specified as a decimal number (ex: 1.00 ), not a percentage ( 100% ). Background Properties background: <var><#color#></var> url('<var><#/path/image-name.ext#></var>') <var><#repeat#></var> <var><#attachment#></var> <var><#x-position#></var> <var><#y-position#></var>; The background property is a shorthand for specifying background-color, backgroundimage, background-repeat, background-attachment and background-position, in that order. background-color: <var><#color#></var>; Use the HTML Color Picker for an easy way to choose HTML colors. background-image background-image: url('<var><#/path/image-name.ext#></var>'); background-image: none; 2 Page 2 of 12 2011 Accilent Corp.

HTML-5.com background-image: inherit; background-repeat background-repeat: repeat; background-repeat: repeat-x; background-repeat: repeat-y; background-repeat: no-repeat; background-repeat: inherit; background-attachment background-attachment: scroll; background-attachment: fixed; background-attachment: inherit; background-position background-position: <var><#x-position#></var> <var><#y-position#></var> background-position: inherit; Border Properties A <dfn>border</dfn> may be specified around an element or one each side individually. Any margin spacing appears outside the border while any padding appears inside the border. border: <var><#width#></var> <var><#style#></var> <var><#color#></var>; The border property is a shorthand for specifying border-width, border-style and border-color border-top: <var><#width#></var> <var><#style#></var> <var><#color#></var>; The border-top property is a shorthand for specifying border-width-top, border-styletop and border-color-top border-right: <var><#width#></var> <var><#style#></var> <var><#color#></var>; The border-right property is a shorthand for specifying border-width-right, borderstyle-right and border-color-right border-bottom: <var><#width#></var> <var><#style#></var> <var><#color#></var>; The border-bottom property is a shorthand for specifying border-width-bottom, border-style-bottom and border-color-bottom border-left: <var><#width#></var> <var><#style#></var> <var><#color#></var>; The border-left property is a shorthand for specifying border-width-left, border-styleleft and border-color-left border-width border-width: medium; (default) border-width: thin; 2011 Accilent Corp. Page 3 of 12 3

HTML-5.com border-width: thick; border-width: nunits; border-width: inherit; Note that Firefox includes the border width in the height while Safari and Chrome add the border width to the height. border-style border-style: <var><#style#></var>; border-style: <var><#top/bottom#></var> <var><#right/left#></var>; border-style: <var><#top#></var> <var><#right/left#></var> <var><#bottom#></ var>; border-style: <var><#top#></var> <var><#right#></var> <var><#bottom#></var> <var><#left#></var>; See the <div> tag tutorial and <div> tag examples for various examples of border styles border-color: <var><#color#></var>; cursor Use the HTML Color Picker for an easy way to choose HTML colors. Cursor Properties cursor: auto cursor: default cursor: crosshair cursor: help cursor: move cursor: pointer cursor: progress cursor: text cursor: wait cursor: n-resizse cursor: ne-resize cursor: nw-resize cursor: s-resize cursor: se-resize cursor: sw-resize cursor: e-resize cursor: w-resize cursor: url - list of URLs separated by commas; include one of the named cursors at the end of the list for browsers that do not support custom cursors 4 Page 4 of 12 2011 Accilent Corp.

HTML-5.com color clear display Foreground Color Properties see HTML Colors above for some of the possible ways to code HTML color values Float, Display and Visibility Properties display: block; - an element with this style will be separated from content outside the element by line breaks display: compact; display: inline; - an element with this style will appear inline with other phrasing content display: inline-block; - an element with this style will have the width, height, margin, padding and other properties of a block but will appear inline with other phrasing content display: list-item; - the display style of an li element; can be used to override the behavior of another element type to make it look and act like a list item display: marker; - a box with additional space will be allocated outside the main block in an inline manner, where a marker such as a list item bullet can be placed, possibly using the :before and/or :after pseudo element selectors display: inherit; - the value of the display property will be inherited from its parent, regardless of any value selected for the element from a style sheet or inline style display: inline-table; - an element with this style will look and act like a table, except that it will appear inline with other phrasing content display: none; - an element with this style and its contents will not be displayed and furthermore will not affect the page layout, as if the element effectively did not exist display: run-in; display: table; - the display style of a table element; can be used to override the behavior of another element type to make it look and act like a table display: table-caption; - the display style of a caption element; can be used to override the behavior of another element type to make it look and act like a table caption display: table-cell; - the display style of a td element; can be used to override the behavior of another element type to make it look and act like a table cell display: table-column; - the display style of a col element; can be used to override the behavior of another element type to make it look and act like a table column display: table-column-group; - the display style of a colgroup element; can be used to override the behavior of another element type to make it look and act like a table column group display: table-header-group; - the display style of a thead element; can be used to override the behavior of another element type to make it look and act like a table header 2011 Accilent Corp. Page 5 of 12 5

HTML-5.com float display: table-footer-group; - the display style of a tfoot element; can be used to override the behavior of another element type to make it look and act like a table footer display: table-row; - the display style of a tr element; can be used to override the behavior of another element type to make it look and act like a table row display: table-row-group; - the display style of a tbody element; can be used to override the behavior of another element type to make it look and act like rows in a table body overflow overflow-style See also marquee styles position position: absolute; position: fixed; position: relative; visibility z-index visibility: collapse; visibility: hidden; visibility: inherit; visibility: visible; Specifies the depth or <dfn>level</dfn> of the element and its contents relative to its parent element. Lower z-index values, including negative numbers, represent lower (deeper) layers and higher z-index values represent higher layers, almost like laying sheets of paper one on top of another. Also requires specifying an explicit position property (position: relative, position: absolute or position: fixed). font-famliy Font Properties font-size font-weight Margin Spacing Properties margin margin: <var><#width#></var>; 6 Page 6 of 12 2011 Accilent Corp.

HTML-5.com margin: <var><#top/bottom#></var> <var><#right/left#></var>; margin: <var><#top#></var> <var><#right/left#></var> <var><#bottom#></var>; margin: <var><#top#></var> <var><#right#></var> <var><#bottom#></var> <var><#left#></var>; margin-top: <var><#width#></var>; margin-right: <var><#width#></var>; margin-bottom: <var><#width#></var>; margin-left: <var><#width#></var>; opacity padding Padding Properties padding: <var><#width#></var>; padding: <var><#top/bottom#></var> <var><#right/left#></var>; padding: <var><#top#></var> <var><#right#></var> <var><#bottom#></var> <var><#left#></var>; padding-top: <var><#width#></var>; padding-right: <var><#width#></var>; padding-bottom: <var><#width#></var>; padding-left: <var><#width#></var>; line-height height width text-align: left text-align: center text-align: right text-align: justify text-align: start Size Properties Text Properties 2011 Accilent Corp. Page 7 of 12 7

HTML-5.com text-align: end text-align: match-parent text-align: "char" align table cells at the character char, for example text-align: "." aligns numbers in table cells based on the position of their decimal point text-decoration vertical-align: baseline (default) vertical-align: bottom vertical-align: inherit vertical-align: middle vertical-align: sub vertical-align: super vertical-align: text-bottom vertical-align: text-top vertical-align: top vertical-align: height A positive value raises the content above the baseline while a negative value lowers it below the baseline. If the value is a percentage, the height is that percentage of the line-height. white-space Text Wrapping and White Space Handling Properties white-space: normal equivalent to white-space-collapsing: collapse; text-wrap: normal : Any sequence of multiple consecutive spaces and other whitespace is collapsed and treated as a single space. Line breaks (new lines) and tabs are treated as any other whitespace. Content will automatically wrap onto additional lines as necessary based on the limitations of the available space. Wrapping will usually occur where breakable white space occurs in the HTML code. 8 Page 8 of 12 2011 Accilent Corp.

HTML-5.com white-space: nowrap equivalent to white-space-collapsing: collapse; text-wrap: none ; should be used instead of the <nobr> tag (deprecated): Any sequence of multiple consecutive spaces and other whitespace is collapsed and treated as a single space. Line breaks (new lines) and tabs are treated as any other whitespace. Content only appears on a new line where line breaks occur in the HTML source. white-space: pre equivalent to white-space-collapsing: preserve; text-wrap: none : Sequences of whitespace including line breaks (new lines) and tabs are preserved. Content only appears on a new line where line breaks occur in the HTML source. White space characters indenting HTML code or text at the beginning of a line are preserved like any other white space. white-space: pre-line equivalent to white-space-collapsing: preserve-breaks; text-wrap: normal : Line breaks (new lines) are preserved. Any white space characters indenting HTML code or text at the beginning of a line, which would normally be collapsed with the preceding new line character, are ignored. Any other sequence of multiple consecutive spaces and other whitespace (excluding line breaks mentioned above) is collapsed and treated as a single space. Tabs are treated as whitespace. Content will automatically wrap onto additional lines as necessary based on the limitations of the available space. Wrapping will usually occur where breakable white space occurs in the HTML code. white-space: pre-wrap equivalent to white-space-collapsing: preserve; text-wrap: normal : Sequences of whitespace including line breaks (new lines) and tabs are preserved. Content will automatically wrap onto additional lines as necessary based on the limitations of the available space. Wrapping will usually occur where breakable white space occurs in the HTML code. White space characters indenting HTML code or text at the beginning of a line are preserved like any other white space. Select which white-space property to use White Space Handling New Lines, text-wrap use CSS style 2011 Accilent Corp. Page 9 of 12 9

HTML-5.com Spaces & Tabs collapse collapse preserve preserve normal (wrap) not wrapped not wrapped normal (wrap) whitespace: normal whitespace: nowrap whitespace: pre whitespace: pre-wrap New Lines Spaces & Tabs text-wrap use CSS style preserve collapse normal (wrap) preserve collapse not wrapped whitespace: pre-line whitespacecollapsing: preservebreaks; text-wrap: no (not recommended) word-wrap: normal word-wrap: break-word Some browsers do not support the white-space-collapsing property or textwrap property (below). Therefore, to control text wrapping the use of the whitespace property (above) is recommended unless a specific capability, such as decimal point alignment, is required. text-wrap: normal Content will automatically wrap onto additional lines as necessary based on the limitations of the available space. Wrapping will usually occur where breakable white space occurs in the HTML code. text-wrap: none Content from one line of the source will not wrap onto additional lines. 10 Page 10 of 12 2011 Accilent Corp.

HTML-5.com text-wrap: suppress Like text-wrap: none, the text will start on a new line if it all cannot fit on the current line. But it will wrap onto additional lines if it does not fit on a single line. text-wrap: unrestricted Content can wrap onto additional lines between any two characters, even in the middle of a word, based on the limitations of the available space. white-space-collapsing: collapse Any sequence of multiple consecutive spaces and other whitespace is collapsed and treated as a single space. Line breaks (new lines) and tabs are treated as any other whitespace. Any white space characters indenting HTML code or text at the beginning of a line are ignored. white-space-collapsing: discard Any sequence of white space characters is treated as a single Unicode zero-width nonjoiner ( ). This might be used to keep the letters of an acronym (initialism) separate, in a language where ligatures combining adjacent characters are common. white-space-collapsing: trim-inner Any leading or trailing white space in a block is ignored. white-space-collapsing: preserve All white space is preserved, including any white space characters indenting HTML code or text at the beginning of a line. white-space-collapsing: preserve trim-inner In addition to white-space-collapsing: preserve processing, any leading or trailing white space in a block is ignored. white-space-collapsing: preserve-breaks Line breaks (new lines) are preserved. Content only appears on a new line where line breaks occur in the HTML source. Any white space characters indenting HTML code or text at the beginning of a line, which would normally be collapsed with the preceding new line character, are ignored. Any other sequence of multiple consecutive spaces and other whitespace (excluding line breaks mentioned above) is collapsed and treated as a single space. Tabs are treated as whitespace. white-space-collapsing: preserve-breaks trim-inner In addition to white-space-collapsing: preserve-breaks processing, any leading or trailing white space in a block is ignored. 2011 Accilent Corp. Page 11 of 12 11

THE END HTML-5.com 12 Page 12 of 12 2011 Accilent Corp.