HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Similar documents
<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

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

Lab 4 CSS CISC1600, Spring 2012

Html basics Course Outline

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

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

CMPT 165 Advanced XHTML & CSS Part 3

CSC 121 Computers and Scientific Thinking

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

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

CSS Cascading Style Sheets

LING 408/508: Computational Techniques for Linguists. Lecture 14

HTMLnotesS15.notebook. January 25, 2015

Deccansoft Software Services

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Summary 4/5. (contains info about the html)

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

CSS: The Basics CISC 282 September 20, 2014

Final Exam Study Guide

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

DAY 4. Coding External Style Sheets

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Programmazione Web a.a. 2017/2018 HTML5

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Fundamentals: Client/Server

A Balanced Introduction to Computer Science, 3/E

HYPERTEXT MARKUP LANGUAGE ( HTML )

Introduction to Web Tech and Programming

ICT IGCSE Practical Revision Presentation Web Authoring

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

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

With HTML you can create your own Web site. This tutorial teaches you everything about HTML.

11. HTML5 and Future Web Application

Chapter 4. Introduction to XHTML: Part 1

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

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

A Brief Introduction to HTML

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

HTML & XHTML Tag Quick Reference

COMP519: Web Programming Lecture 4: HTML (Part 3)

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

introduction to XHTML

Website Development with HTML5, CSS and Bootstrap

CSS.

Web Publishing Basics I

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Lab Introduction to Cascading Style Sheets

CSC Web Programming. Introduction to HTML

Announcements. Paper due this Wednesday

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Wireframe :: tistory wireframe tistory.

Introduction to using HTML to design webpages

Hoster: openload.co - Free PLUGIN_DEFECT-Error: 08d a1830b60ab13ddec9a2ff6

2.1 Origins and Evolution of HTML

Table of Contents. MySource Matrix Content Types Manual

How the Internet Works

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

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

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Structure Bars. Tag Bar

Cascading Style Sheets (CSS)

HTML and CSS COURSE SYLLABUS

Certified HTML5 Developer VS-1029

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

ICT IGCSE Practical Revision Presentation Web Authoring

CSS Styles Quick Reference Guide

Creating Web Pages Using HTML

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

c122sep2214.notebook September 22, 2014

CS105 Course Reader Appendix A: HTML Reference

Co. Louth VEC & Co. Monaghan VEC. Programme Module for. Web Authoring. leading to. Level 5 FETAC. Web Authoring 5N1910

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

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

Intro to html. --- define every element, attribute, and entity along with the rules for their use

Certified HTML Designer VS-1027

CSC Web Technologies, Spring HTML Review

HTML & CSS Cheat Sheet

Creating and Building Websites

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

IMY 110 Theme 7 HTML Tables

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

8a. Cascading Style Sheet

Parashar Technologies HTML Lecture Notes-4

CS134 Web Site Design & Development. Quiz1

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

By Ryan Stevenson. Guidebook #2 HTML

Hyper Text Markup Language HTML: A Tutorial

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC

Transcription:

HTML Summary Structure All of the following are containers. Structure <html> </html> <head> </head> <title> </title> <body> </body> <div> </div> <span> </span> Contains the entire web page. Contains information about the page. The title of the page. The contents of the page. A block containing other blocks or text. An inline selection. Text <h> </h> Heading container (1... 6) <p> </p> <em> </em> Paragraph container. Emphasise (shown in italics) <strong> </strong> Strong (shown in bold) <i> </i> <b> </b> Non Containers <br /> <hr /> Character Entities Italics Bold Line Break. Horizontal Rule. Non-break (hard) space < < Less Than > > Greater Than & & Ampersand Copyright Comments <!-- --> Comment Copyright 2008 Comparity Training 1

Web Page Outline <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html> <head> <title> </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <div id="body"> </div> </body> </html>

Images Images are referenced in a single, empty (non-container) element). Element <img src="" alt="" title="" width="" height="" /> The closing slash is required by XHTML, but absent in old HTML. Attributes src="" Required References the image file. alt="" Required Alternative text if the image cannot be seen. title="" width="" height="" Image Title. Also appears when the mouse hovers over the image. Width in pixels. Height in pixels. Lists Unordered Lists <ul> <li> </li> Start List List Items <li> </li> </ul End List Ordered Lists <ol> <li> </li> Start List List Items <li> </li> </ol End List List Numbering <ol start=""> Definition Lists <dl> <dt> </dt> <dd> </dd> <dt> </td> <dd> </dd> </dl> List Start Term Definition List End

Links Links are contained in an anchor tag. Anchors <a href="" title="" target=""> </a> Anchor Attributes href="" Required title="" URLs A referenced to the new page or document. Link Title. Also appears when the mouse hovers over the image. The href attribute normally specifies one of the following url prefixes: (none) A page or document on the same server. href="page.html" http:// A page or document on a different server. href="http://www.example.net/" (index) href="http://www.example.net/../page.html" # A fragment (location) on a page. mailto: href="#somewhere" (same page) href="page.html#elsewhere" (different page) An email address Fragment Identifiers mailto:me@example.net Fragment identifiers identify a location somewhere on the page. If the location does not exist (or isn't specified), then the top of the page will be used. Destination Link id="" The id attribute can be part of any element. href="#..."

Tables Table Outline <table> <tr><td> </td> <td> </td></tr> <tr><td> </td> <td> </td></tr> </table> Elements table tr td th Sections contains the table rows table row: contains cells (td or th) table data: ordinary cell table header: header cell More completely, a table may be sectioned off as follows: <table> <thead> <tr><td> </td> <td> </td></tr> </thead> <tfoot> <tr><td> </td> <td> </td></tr> </foot> <tbody> <tr><td> </td> <td> </td></tr> <tr><td> </td> <td> </td></tr> </body> </table> Normally the tbody will have multiple rows. However the thead and tfoot may also have multiple rows. Note that although the tfoot section will appear after the tbody, it must be passed before it. Attributes border="" Merging Cells Columns: Rows: Width (in pixels) of table & cell borders <td rowspan="> <td colspan="">

Style Sheets Embedded Style Sheets <head> <title> </title> <style type="text/css"> Style information here </style> </head> Writing a Style tag { characteristic: value;... } External Style Sheets <link rel="stylesheet" type="text/css" href="" /> Common Tags body The appearance of the page. p a You might set your main font here, and possibly your background colour or image. The appearance of paragraphs on the page. Links. :visited and :hover affect the links in particular states. Commonly, you might remove the underline, and change colour for the hover. You might also set the colour for visited links to the same as for unvisited. h1... h6 Headings td th Fonts Here you can set font sizes and colours. Normal table cells. Commonly you might set the alignment, especially the vertical alignment. Table heading cells. Again you might set the alignment, especially if you want to remove centring. font-size: size; Sizes can be measured in various units. Commonly they are measured in points (pt) or pixels (px). Note that there must be no space between the size and the unit.

color: ; background-color: ; Styles The colour can be specified by name or by RGB mix. For example: color: pink; color: rgb(255,192,203); color: #ffc0cb; font-family:,, ; Specify a list of alternative fonts in preferred order (or only one font if you prefer). Font names with spaces must appear in quotes. The last font in the list is normally one of the following: font-family: serif; font-family: sans-serif; font-family: monospace; font-style: italic; font-style: normal; font-weight: bold; font-weight: normal; text-decoration: underline; text-decoration: none; Borders & Margins border-style: solid; border-style: none; border-width: [all]; border-width: [top-bottom] [right-left]; border-width: [top] [right] [bottom] [left]; margin: [all]; margin: [top-bottom] [right-left]; margin: [top] [right] [bottom] [left] Useful Table Styles td, th { vertical-align: top; text-align: left; } Anchor Styles a:link { } a:hover { } a:active { } The normal state of the link. When the mouse is above the link. When the mouse button is being pressed. a:visited { } After the link has already been used. Images { background: url([imagename]); } div { float: left right }