+ All Categories
Home > Documents > 01.2 Fundamentos Ingenieria Web

01.2 Fundamentos Ingenieria Web

Date post: 17-Aug-2015
Category:
Upload: kevin-andree-pizarro
View: 231 times
Download: 1 times
Share this document with a friend
Description:
01.2 Fundamentos Ingenieria Webds
Popular Tags:
22
Transcript

Miguel Almeyda Software Architect [email protected] Overview HTML The Structure of an HTML Page All HTML pages have the same structure DOCTYPE declaration HTML section containing: Header Body Each version of HTML has its own DOCTYPE The browser uses the DOCTYPE declaration to determine how to interpret the HTML markup For HTML5 pages, specify a DOCTYPE of html Tags, Elements, Attributes, and Content HTML elements define the structure and semantics of content on a web page Elements identify their content by surrounding it with a start and an end tag Elements can be nested: Use attributes to provide additional information about the content of an element Elements consist of content bookended by a start tag and an end tag. Displaying Text in HTML Text in HTML can be marked up: As headings and paragraphs With emphasis In lists An Introduction to HTML In this module, we look at the history of HTML and CSS. In the Beginning WorldWideWeb was created by Sir Tim Berners-Lee at CERN. To emphasize is to give extra weight to (a communication); "Her gesture emphasized her words"

  • Notepad

Textmate Visual Studio Displaying Images and Linking Documents in HTML Use the tag to display an image The src attribute specifies the URL of the image source: Use the tag to define a link The href attribute specifies the target of the link: Home Gathering User Input by Using Forms in HTML The element provides a mechanism for obtaining user input The action attribute specifies where the data will be sent The method attribute specifies howthe data will be sent Many different input types areavailable Attaching Scripts to an HTML Page HTML is static, but pages can use JavaScript to add dynamic behavior Use the element to specify the location of the JavaScript code: The order of elements is important Make sure objects and functions are in scope before they are used Use the element to alert users with browsers that have scripting disabled. Overview CSS Overview of CSS Syntax All CSS rules have the same syntax: Comments areenclosed in /* */delimiters selector { property1:value; property2:value; .. propertyN:value; } /* Targets level 1 headings*/ h1 { font-size: 42px; color: pink; font-family: 'Segoe UI'; } How CSS Selectors Work There are three basic CSS selectors The element selector:h2{} The class selector:.myClass {} The id selector: #thisId {} CSS selectors can be combined to create more specific rules The wildcard * selector returns the set of all elements Use [] to refine selectors based on attribute values HTML inheritance and the CSS cascade mechanism govern how browsers apply style rules HTML inheritance determines which style properties an element inherits from its parent The cascade mechanism determines how style properties are applied when conflicting rules apply to the same element How HTML Inheritance and Cascading Styles Affect Styling Adding Styles to An HTML Page Use an element's styleattribute to define stylesspecific to that element: Use the element in the to includestyles specific to a page: Use the element to reference an external style sheet: p { color: blue; } some text Creating an HTML5 Pages What's New in HTML5? HTML5 provides many extensions over previous versions, including: Rules for browser vendors New elements that reflect modernweb application development JavaScript APIs that support desktopand mobile application capabilities Document Structure in HTML5 HTML5 provides new elements to define the structure of a web page: to divide up main content and for page headers and footers for navigations links for stand-alonecontent for quotesand sidebar content Text and Images in HTML5 HTML5 defines new text elements, including: and My Recipes Great to eat, easy to make Today This text should be noted for future use.. Heat your beans for five minutes. Or until they are hot enough for you. A plate of beans in five minutes flat Styling an HTML5 Page Understanding CSS Text Styles CSS Text Styling supports: Fonts Colors Typography font-family : Arial, Candara, Verdana, sans-serif; font-size : 16px; font-style : italic; font-weight : bold; color : rgb(128, 128, 0); opacity: 0.6; letter-spacing : 2em; line-height : 16px; text-align : left; text-decoration : underline; text-transform : lowercase; The CSS Box Model The CSS box model treats each element as a collection of four concentric boxes: CSS defines properties that: Control how a box is laid out on a page Alter the height and width, and the style of the border Styling Backgrounds in CSS Set the background for an element by using theCSS background properties: background-image background-size background-color background-position background-origin background-repeat background-attachment article { background-color : transparent; background-repeat: repeat-x; background-image : url('fluffycat.jpg'); }


Recommended