HTML 5 HTML Document Structure HTML Common Elements the Past, the Present, the Future Section Elements
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
CSS 3 Margins Divs
VISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012 __________________________________________________________________________________ CSS 3 - LAYOUT BASICS A FUNDAMENTAL CONCEPT – WHAT IS MEANT BY CASCADING The cascade is how CSS resolves conflicts when more than one rule is applied to the same element 4 style sheets applying: Internal styles External styles sheet Internal styles Browserʼs default style sheet Inline will beat out all – WHY? It is lowest in the cascade. Order of CSS rules is important The later a rule appears in a style sheet the more weight it is given MARGINS, BORDERS, PADDING See Ch. 10 – Web Standardistas Book About spacing – the space around our elements The effect the relationship of one element to another. The all important BOX MODEL All elements treated as boxes. Some are block-level Some are inline-level Each box is comprised of a content area and optional margins, borders and padding Up to now these have all be set by the Browserʼs default style all these can be specified The width of an element includes all – e.g. Margin-left + border-left + padding left – element width + padding-right + border-right + margin right Applying margins borders and padding See short html page in Ch. 10 First pass – no margins – fits to left edge of page Second pass - add background colour so we can see the block-level paragraph element Third pass - Before we add margins we must remove margins set by the browserʼs default style sheet. Set margin on body and on p to margin: 0; Once this is done you can add margin: 40 px; This sets margin on all four sides to 40 pixels. -
CSS 2.1) Specification
Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification W3C Editors Draft 26 February 2014 This version: http://www.w3.org/TR/2014/ED-CSS2-20140226 Latest version: http://www.w3.org/TR/CSS2 Previous versions: http://www.w3.org/TR/2011/REC-CSS2-20110607 http://www.w3.org/TR/2008/REC-CSS2-20080411/ Editors: Bert Bos <bert @w3.org> Tantek Çelik <tantek @cs.stanford.edu> Ian Hickson <ian @hixie.ch> Håkon Wium Lie <howcome @opera.com> Please refer to the errata for this document. This document is also available in these non-normative formats: plain text, gzip'ed tar file, zip file, gzip'ed PostScript, PDF. See also translations. Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply. Abstract This specification defines Cascading Style Sheets, level 2 revision 1 (CSS 2.1). CSS 2.1 is a style sheet language that allows authors and users to attach style (e.g., fonts and spacing) to structured documents (e.g., HTML documents and XML applications). By separating the presentation style of documents from the content of documents, CSS 2.1 simplifies Web authoring and site maintenance. CSS 2.1 builds on CSS2 [CSS2] which builds on CSS1 [CSS1]. It supports media- specific style sheets so that authors may tailor the presentation of their documents to visual browsers, aural devices, printers, braille devices, handheld devices, etc. It also supports content positioning, table layout, features for internationalization and some properties related to user interface. CSS 2.1 corrects a few errors in CSS2 (the most important being a new definition of the height/width of absolutely positioned elements, more influence for HTML's "style" attribute and a new calculation of the 'clip' property), and adds a few highly requested features which have already been widely implemented. -
Advanced XHTML and CSS
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 4 Advanced XHTML and CSS Copyright © 2014 by Stephen Makonin Slides based on course material © SFU Icons © their respective owners 1 Learning Objectives In this unit you will learn the following. • Use XHTML to create valid web pages. • Design HTML so it can be easily styled with CSS. • Develop CSS rules to create particular appearances. • Understand CSS colour codes for a given colour. • Construct a CSS that implements a visual design. • Justify the separation of content and structure from visual appearance. • Select appropriate HTML tags to correctly describe the different parts of the page. Copyright © 2014 by Stephen Makonin 2 Topics 1. Validating XHTML 2. Common Mistakes Lecture 1 3. Block vs. Inline Elements 4. Character Entities 5. Generic Tags, IDs and Classes Lecture 2 6. Style Selectors Revisited 7. Positioning Elements Lecture 3 8. Steps in Webpage Creation Copyright © 2014 by Stephen Makonin 3 Valid XHTML Valid XHTML means your markup follows a set of rules: • Have a document type (DOCTYPE) at the top of the. • Specific the namespace in <html>. • Open tags must close in order. • Inline tags must be inside block tags. • Some tags such as <li> can only be in <ol> or <ul>. • Special characters (e.g. <) in content must be encoded. • Markup tags and attributes name are lowercase. If these rules are followed the a validator says: �� Otherwise: Copyright © 2014 by Stephen Makonin 4 �� Empty Valid XHTML Copyright © 2014 by Stephen Makonin 5 Document Type You MUST declare a document type as the 1st line in your XHTML document. -
Введение В Silverlight 3
2 Здравствуйте, дорогой читатель! Мы очень рады продолжить добрую традицию и представить Вам первую книгу о технологии Microsoft Silverlight 3 на русском языке! Microsoft Silverlight позволяет разработчикам с помощью простых и мощных инструментов создавать интерактивные Интернет- приложения, которые становятся все популярнее среди широкого круга пользователей. Данная технология уже используется на многих известных ресурсах – как в мире, так и в России. Silverlight 3 – важный шаг в развитии технологии. Среди новых возможностей можно отметить 3D-трансформации, аппаратное ускорение, работа вне браузера и много другое. Уже более трети Интернет-устройств в мире имеют установленный Silverlight. Принимая во внимание текущую динамику, можно с уверенностью сказать, что данная технология будет и дальше распространяться среди пользователей во всем мире, и Россия здесь не исключение. Менее года назад мы выпустили электронную книгу «Введение в Microsoft Silverlight 2», за это время ее загрузило более 30000 читателей. Для перевода книги по Silverlight 3 мы вновь выбрали издание Лоуренса Морони, основываясь на положительных отзывах от Вас, российских разработчиков, и на международном опыте. Книга представляет комплексный обзор Silverlight 3, который будет интересен как тем, кто уже имеет опыт работы с прошлыми версиями данной технологии, так и для начинающих свой путь в мир Silverlight. В завершение хочу поблагодарить Вас за интерес к технологии Microsoft Silverlight и предлагаю окунуться в увлекательный мир интерактивности. Дмитрий Халин, Директор департамента стратегических технологий Майкрософт Россия 3 ОПУБЛИКОВАНО Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2009 by Laurence Moroney Все права защищены. Ни одна часть данной книги не может быть воспроизведена в любой форме или любыми средствами без письменного разрешения издателя. -
Creating a Web Site with Expression Web
05_115091 ch01.qxp 3/2/07 9:23 PM Page 7 Chapter 1 Creating a Web Site with Expression Web In This Chapter ᮣ Starting Expression Web for the first time ᮣ Exploring the workspace ᮣ Creating and saving a new Web site ᮣ Using a template to create a new Web site ᮣ Opening, closing, and deleting Web sites ᮣ Adding existing files to a Web site ᮣ Closing Expression Web n this chapter, you get started with Expression Web: You get familiar with Ithe workspace and find out how to create and save Web sites. Before you hang your shingle as a Web publisher, though, you should understand what you’re really doing when you create and publish a Web site. No doubt you’ve already seen a Web site. Web sites are the places you visit as you make your way around the World Wide Web. In the same way as a book is made up of individual pages, a Web site is made up of individual files called Web pages. Web pages contain the text, pictures, and other content you see when you visit a Web site. As you constructCOPYRIGHTED a Web site, you create WebMATERIAL pages and then string the pages together by using hyperlinks. Hyperlinks are the highlighted words and pic- tures inside the page that visitors can click to jump to a different location, page, or Web site. Hyperlinks can also initiate a download or pop open an e-mail window. After your site is complete, you publish it. In other words, you make the site visible to the rest of the world on the World Wide Web (or, if you’re working on an internal company site, on the company’s intranet). -
Introduction to CSS
Introduction to CSS Chapter 4: CSS CS 80: Internet Programming Instructor: Mark Edmonds Intro to CSS • CSS = Cascading Style Sheet • What does HTML5 do? – Specifies the content and structure of the webpage • So far, we haven’t controlled the presentation of the webpage at all. • CSS allows us to control the presentation of the page Intro to CSS • Why not control the presentation within the HTML? – You can! – But in general, it’s better to separate! * Why? Because you can swap the style without changing anything in the HTML docu- ment Inline Style • Specify the style in the html tag through a style attribute – E.g. to change the font size, one might apply the attribute style="font-size: 45pt;" which would set the font size to 45pt. Inline Styles • Advantage: – Styling is applied solely to this instance of the tag (useful if we want custom styling for one particular tag) • Disadvantage: – Styling is applied solely to this instance of the tag (meaning it has no generality; we can’t change the style of every tag across the entire document. In our example, we may want to change every <h2> in the document Mark Edmonds 1 Introduction to CSS Example: inline_styles.html 1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <title>Inline CSS Styling</title> 7 </head> 8 9 <body> 10 <p style="font-size: 45pt">We can apply styling to one HTML tag</p> 11 <p>But take notice it doesn't persist in the document</p> 12 <h2 style="font-family: helvetica, tahoma, sans-serif; font-size: 10 pt; color: blue">We can overrride default settings for tags, notice the bold is still applied! </h2> 13 <p>Note: browser will attempt to use font-family specified in order of the comma-separated list. -
Cascading Tree Sheets and Recombinant HTML: Better Encapsulation and Retargeting of Web Content
Cascading Tree Sheets and recombinant HTML: Better encapsulation and retargeting of web content The MIT Faculty has made this article openly available. Please share how this access benefits you. Your story matters. Citation Edward O. Benson and David R. Karger. 2013. Cascading tree sheets and recombinant HTML: better encapsulation and retargeting of web content. In Proceedings of the 22nd international conference on World Wide Web (WWW '13). International World Wide Web Conferences Steering Committee, Republic and Canton of Geneva, Switzerland, 107-1 As Published http://dl.acm.org/citation.cfm?id=2488399 Publisher Association for Computing Machinery (ACM) Version Author's final manuscript Citable link http://hdl.handle.net/1721.1/87014 Terms of Use Creative Commons Attribution-Noncommercial-Share Alike Detailed Terms http://creativecommons.org/licenses/by-nc-sa/4.0/ Cascading Tree Sheets and Recombinant HTML: Better Encapsulation and Retargeting of Web Content Edward Benson David R. Karger MIT CSAIL MIT CSAIL 32 Vassar Street 32 Vassar Street Cambridge, Massachusetts 02139 Cambridge, Massachusetts 02139 [email protected] [email protected] ABSTRACT meaningful content. To reuse markup, she must copy the Cascading Style Sheets (CSS) took a valuable step towards entire blob, then find and replace the right pieces of content separating web content from presentation. But HTML pages with her own. This might work for replicating an exemplar still contain large amounts of \design scaffolding" needed to layout once, but what happens if an author wants to use the hierarchically layer content for proper presentation. This pa- same layout repeatedly on many instances|for example, to per presents Cascading Tree Sheets (CTS), a CSS-like lan- nicely format each publication in a large list? The labor guage for separating this presentational HTML from real becomes substantial. -
Opari.Pdf (1.636Mt)
Matti Nalkki SILVERLIGHT SOVELLUS: JAPANIN KIELEN ALKEISIIN TUTUSTUMINEN Opinnäytetyö Kajaanin ammattikorkeakoulu Luonnontieteiden koulutusala Tradenomi Syksy 2009 OPINNÄYTETYÖ TIIVISTELMÄ Koulutusala Koulutusohjelma Luonnontieteiden koulutusala Tradenomi Tekijä(t) Jarno Matti Tapio Nalkki Työn nimi SILVERLIGHT SOVELLUS: JAPANIN KIELEN ALKEISIIN TUTUSTUMINEN Vaihtoehtoisetvaihtoehtiset ammattiopinnot Ohjaaja(t) Ohjelmistosuunnittelu Veli-Pekka Piirainen Toimeksiantaja Kajaanin ammattikorkeakoulu Aika Sivumäärä ja liitteet 4.12.2009 40 + 11 Opinnäytetyön aihe on Silverlight web-sovellus. Tarkoituksena on tutkia mikä Silverlight on ja kuinka sitä käyte- tään. Apuna käytetään Expression Studiota, jonka tarkoitus on enimmäkseen tukea Silverlight:a. Expression Stu- dio koostuu useasta ohjelmasta, jotka esitellään tässä työssä. Ohjelmointityöhön liittyy japanin kieli, joten japanin kielestä on oma kohtansa teoriaosuudessa. Ohjelmointityönä on tehty web-sovellus, joka tutustuttaa käyttäjän japanin kielen alkeisiin. Alkuun ongelmat koskivat Silverlight:a ja Expression Studio:a, joiden tuntemus oli heik- koa. Japanin kielestä piti keksiä kaikki harjoitukset ja niiden toimivuutta piti testata, samoin kuin sivuston toimi- vuutta. Työ aloitettiin tutkimalla ja opettelemalla Silverlight:n käyttöä, samalla kun ohjelmointityö oli vielä alkuvaiheessa. Kun Silverlight oli saatu teknillisesti sisäistettyä, voitiin siitä kirjoittaa teoriaa. Ohjelmointityöstä tehtiin lopullinen suunnitelma, kun Silverlight:n käyttö oli hallussa ja selvitettiin mitä Expression -
Lesson 7: Div, Span, Header, Main, Section, Style Attribute, Inline Style
Lesson 7: Div, Span, Header, Main, Section, Style Attribute, Inline style Key notes to remember 1. The div and span are both used to separate parts of your document. 2. The span is an inline element meaning that is no extra margin around it and will not cause its surroundings to be pushed out more. It does not take up the full surrounding width. 3. The Div is a BLOCK element which means it does have a set margin and often times, will cause items to move to the next line because it takes up most of the width on the line(s) it resides. 4. An inline style is a style property defined as an attribute of a given element using the Style Attribute. 5. The style attribute on an element allows you to specify numerous name value pairs of CSS properties that change the look and feel. 6. The new HTML 5 elements , section, header, and main are all block elements that perform the same function but provide a different meaning for the data they surround. 7. Main means this is my main content. 8. Header means this is the head of my content (main title, description) 9. Section is more of a general term that can define different groups of data in general in your document. 10. An Element’s attribute is made up of name value pairs. Name=”value” . 11. An attribute gives more data to describe your html element or surrounding data and also at times can tell the element to behave or display differently. -
Module 1 HTML 5 and CSS Lecture 01 Introduction to HTML Introduction to HTML
Nagarjuna College of Engineering and Technology Information Science and Engineering Module 1 HTML 5 and CSS Lecture 01 Introduction to HTML Introduction to HTML Hypertext Markup Language (HTML) documents are simply text documents with a specific form ◦ Documents comprised of content and markup tags ◦ Content: actual information being conveyed ◦ The markup tags tell the Web browser how to display the page ◦ An HTML file must have an htm or html file extension ◦ An HTML file can be created using a simple text editor Lecture 02 Key components of HTML document Key components of HTML document An HTML document is composed of three parts: a line containing HTML version information, a declarative header section (delimited by the HEAD element), a body, which contains the document's actual content. The body may be implemented by the BODY element. An HTML page may contain Doctype, Comments, Elements or Tags, Attributes, Frames which may contain other HTML pages. DOCTYPE A Doctype declares the version of an HTML document. This needs to be the first thing in your document, before the <html> or <head> elements. Also, there is no closing tag. Doctype declaration: <!DOCTYPE html> OR <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Comments We can add comments to your HTML source by using the following syntax: <!-- Write your comments here --> Comments are not displayed by the browser. Example: <!-- This is a comment --> <p>This is a paragraph.</p> <!-- Remember to add more information here --> Lecture 03 HTML elements, Headers, Linking, Images HTML Elements An HTML element usually consists of a start tag and an end tag, with the content inserted in between: <tagname>Content goes here...</tagname> The HTML element is everything from the start tag to the end tag: <p>My first paragraph.</p> Start tag Element content End tag <p> My first paragraph </p> Example: <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> •The <html> element defines the whole document. -
Opening a Web Site in Microsoft Expression Web
Opening a Web Site in Microsoft Expression Web If you are working on a Maxwell computer that’s running Window 7, then you will find “Expression Web 3” has replaced “SharePoint Designer” for editing web pages. You will find Expression Web 3 in this location: Start > All Programs Microsoft Expression > Microsoft Expression Web 3 While it’s similar to SharePoint Designer (and the old Microsoft Frontpage) in many ways, you will find the menu used to open and connect to your web site has moved. Please follow these steps to opening your site: 1) Go to the menu Site > Manage Sites List… 2) Add your Maxwell site address to the list. In most cases, your site will be accessed through a path starting like this: G:\MAX-Filer\Webhost\zzzzz-sites\jdoe\ Continue through the folder structure to find your personal faculty or class folder. When you reach your personal folder such as this: G:\MAX-Filer\Webhost\faculty-sites\jdoe\ G:\MAX-Filer\Webhost\classes-sites\your-class\ Finish adding the site by clicking the “add” button. 3) Your site can now be opened by going back to the menu: Site > Open Site… > Select your site > Open Once the site is open, you will find that making typical site edits should be very similar to the process of editing your web pages in SharePoint Designer. NOTE: If you connected to the “development” location for your site and need to “publish” your site to the live server please add your publishing destination through the following menu: Site > Site Settings > Add… For further information please email [email protected]. -
Brno University of Technology Vysoké Učení Technické V Brně
BRNO UNIVERSITY OF TECHNOLOGY VYSOKÉ UČENÍ TECHNICKÉ V BRNĚ FACULTY OF INFORMATION TECHNOLOGY FAKULTA INFORMAČNÍCH TECHNOLOGIÍ DEPARTMENT OF INTELLIGENT SYSTEMS ÚSTAV INTELIGENTNÍCH SYSTÉMŮ AUTOMATED SECURITY COMPLIANCE SCANNING OF MS WINDOWS OPERATING SYSTEM USING OPENSCAP PROJECT AUTOMATIZOVANÉ OVĚŘOVÁNÍ KONFIGURACE OPERAČNÍHO SYSTÉMU MS WINDOWS POMOCÍ PROJEKTU OPENSCAP MASTER’S THESIS DIPLOMOVÁ PRÁCE AUTHOR Bc. JAN ČERNÝ AUTOR PRÁCE SUPERVISOR Ing. ALEŠ SMRČKA, Ph.D. VEDOUCÍ PRÁCE BRNO 2018 Abstract This work deals with security compliance of computer systems, namely operating systems, applications and system services. Concept of security policies, their evaluation and their enforcement is described. Security compliance automation and the SCAP standard are presented. OpenSCAP project, which is used as an SCAP scanner, is described together with its tools and its usage. An idea to add support of Microsoft Windows within Open- SCAP, which was previously unsupported, is presented. The core part of the thesis is to identify necessary changes of OpenSCAP and to design an extension of this project. All these modifications are implemented. The solution is demonstrated on security policies for Windows. The solution is evaluated and further improvements are discussed. Abstrakt Tato práce se zabývá problematikou bezpečné konfigurace výpočetních systémů, jako jsou operační systémy, aplikace a služby. Seznamuje čtenáře s konceptem bezpečnostních poli- tik a jejich ověřováním. Soustředí se na problematiku automatizace bezpečné konfigurace s důrazem na standard SCAP. Popisuje projekt OpenSCAP, který se používá jako SCAP scanner, jeho aplikace a jejich použití. Navrhuje rozšířit OpenSCAP i na operační sys- tém Microsoft Windows, který doposud nebyl podporován. Těžištěm práce je identifikace nutných změn projektu OpenSCAP a návrh jeho rozšíření.