tagnameydefinition1definition2 definitionz style 8

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: mation Technology</H2> 7 Internal Style Sheet Style information is placed in the HEAD part of an HTML document <STYLE> TagName1 {definition1; definition2;… definitionX}….. TagNameY {definition1; definition2;… definitionZ} </STYLE> 8 External Style Sheets ESS are applied to several documents To create an external style sheet: Create new TextOnly file; Add tags with definitions; Save the file with extension .css. 9 External Style Sheets (… continued) To apply ESS it is necessary to create a link The link is placed in the HEAD part of HTML document <LINK REL=Stylesheet TYPE=“text/css” HREF=“URL”>, where URL is relative URL of style sheet file 10 Formatting Rules External style sheets can be applied to all HTML pages, even holding internal and local style sheets. HTML files may hold local and internal styles The latest style definition is applied. 11 Defining Styles for Classes HTML elements with the same tag may be divided into classes with different format To specify a class: ParentTag.ClassName{definition(s)} To apply a style the attribute CLASS is used in the BODY of HTML Document <ParentTag CLASS=ClassName>...text… </ParentTag> 12 Defining Styles for a Particular Tag To identify individual tags and appropriate styl...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online