您的位置:首页 > 大数据 > 人工智能

简述raid0、raid1、raid5的区别

2016-03-14 14:37 736 查看
1. In Activating Browser Modes with Doctype,Henri Sivonen summarizes the different modes browser will work in based on thedoctype:  Quirks Mode In the Quirksmode, browsers violate contemporary Web format specifications in order to avoid“breaking” pages authored according to practices that were prevalent in thelate 1990s.  Standards ModeIn the Standardsmode, browsers try to give conforming documents the specification-wise correcttreatment to the extent implemented in a particular browser. HTML5 calls thismode the “no quirks mode.”  Almost Standards Mode Firefox, Safari,Chrome, Opera (since 7.5) and IE8 also have a mode known as “Almost Standardsmode,” that implements the vertical sizing of table cells traditionally and notrigorously according to the CSS2 specification. HTML5 calls this mode the“limited quirks mode.” 2. This is the HTML5 doctype:
<!DOCTYPE html>
 which is shorter and sweeter and also triggers “standardsmode” in all modern browsers.  3. Elements in HTML5 are always in the XHTML namespace. You no longer need to declare xmlns=“http://www.w3.org/1999/xhtml”in <html>tag. lang and xml:langattributes in <html>tag both define the language of this HTML page. This is a vestige of XHTML. Only the langattribute has any effect in HTML5. You can keep the xml:langattribute if you like, but if you do, you need to ensure that it contains the same value as the langattribute. 4.  An HTTP header like this:
Content-Type: text/html; charset="utf-8"
 says that the web server thinks it’s sending you an HTML documentand the document uses the UTF-8 character encoding. However, few authorsactually have control over their HTTP server. So HTML 4 provided a way tospecify the character encoding in the HTML document itself:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 Both of these techniques still work in HTML5. The HTTP header is the preferred method, and it overrides the <meta>tag if present. And it got a littleeasier in HTML5:
<meta charset="utf-8" />
 
Which itself should be encoded in ASCII(
http://www.w3.org/TR/html4/charset.html#h-5.2.2 )
 5. Link relations are to explain why you’re pointing to anotherresource. They may tell browsers:  a)  it’s a stylesheetcontaining CSS rules that your browser should apply to this document.  b)  it’s a feed thatcontains the same content as this page, but in a standard subscribable format.  c)  it’s a translationof this page into another language.  d)  it’s the samecontent as this page, but in PDF format.  e)  it’s the nextchapter of an online book of which this page is also a part. 6. HTML5 breaks link relations intotwo categories: Links to external resourcesare links to resourcesthat are to be used to augment the current document, and hyperlink linksare links to other documents. The exact behavior for links to externalresources depends on the exact relationship, as defined for the relevant linktype. 7.  Most often, link relations are seen on <link>elements within the <head>of a page. Some link relations can also be used on <a> elements, See thefull chart of link relationsto check where you can use specific relvalues. 8.  One small optimization you can make in HTML5 is to drop the type attribute from the CSS LINKelement. There’s only one stylesheet language for the web, CSS, so that’s the default value for the type attribute.9.  The rel="alternate"link relation has always been a strange hybrid of use cases, In HTML5, its definition has been clarified and extended to more accurately describe existing web content. Using rel="alternate"in conjunction with type=application/atom+xmlindicates an Atom feed for the current page:  
<link rel="alternate"type="application/atom+xml"title="My Weblog feed"href="/feed/" />
 But you can also use rel="alternate"in conjunction with other type attributes to indicate the same content in another format, like PDF.10.   The correct way to link to translations of documents is to use rel="alternate"in conjunction with the hreflang attribute to specify the language of the linked document.11. rel="author"is used to link to information about the author of the page. This can be a mailto: address, though it doesn’t have to be. It could simply link to a contact form or “about the author” page.  12.HTML 4 defined rel="start", rel="prev", and rel="next"to define relations between pages that are part of a series. HTML5 includes rel="next" and rel="prev", just like HTML 4, and supports rel="previous"for backward compatibility. 13. rel="icon"is usually found together with
shortcut
, like so:
<link rel="shortcut icon" href="/favicon.ico">
All major browsers support this usage to associate a small icon with the page. Usually it’s displayed in the browser’s location bar next to the URL, or in the browser tab, or both. 14. rel="license"indicates that the referenced document provides the copyright license terms under which the current document is provided. 15.  rel="nofollow"indicates that the link is not endorsed by the original author or publisher of the page, or that the link to the referenced document was included primarily because of a commercial relationship between people affiliated with the two pages. The thinking was that if “nofollow” links did not pass on PageRank, spammers would give up trying to post spam comments on weblogs. That didn’t happen, but rel="nofollow"persists.16.rel="noreferrer" indicates that no referrer information is to be leaked when following the link. 17.  rel="search"indicates that the referenced document provides an interface specifically for searching the document and its related resources.” If you want rel="search"to do anything useful, it should point to an OpenSearch document that describes how a browser could construct a URL to search the current site for a given keyword.18.rel="tag"indicates that the tag that the referenced document represents applies to the current document.” Browsers do not do anything special with them; they’re really designed for search engines to use as a signal of what the page is about. 19.HTML5 also defines new semantic elements:  a)  The <section>element represents a genericdocument or application section. A section, in this context, is a thematicgrouping of content, typically with a heading. Examples of sections would bechapters, the tabbed pages in a tabbed dialog box, or the numbered sections ofa thesis. A Web site's home page could be split into sections for anintroduction, news items, contact information.   b)  The <nav>element represents a section of a page that links to other pages or to partswithin the page: a section with navigation links. Not all groups of links on apage need to be in a navelement — only sections that consist of majornavigation blocks are appropriate for the navelement. In particular, it iscommon for footers to have a short list of links to common pages of a site,such as the terms of service, the home page, and a copyright page. The footerelement alone is sufficient for such cases, without a nav element.   c)  The <article>element represents a component of a page that consists of a self-containedcomposition in a document, page, application, or site and that is intended tobe independently distributable or reusable. This could be a forum post, amagazine or newspaper article, a Web log entry, a user-submitted comment, aninteractive widget or gadget, or any other independent item of content.   d)  The <aside>element represents a section of a page that consists of content that istangentially related to the content around the aside element, and which couldbe considered separate from that content. Such sections are often representedas sidebars in printed typography. The element can be used for typographicaleffects like pull quotes or sidebars, for advertising, for groups of navelements, and for other content that is considered separate from the maincontent of the page.   e)  The <hgroup>element represents the heading of a section. The element is used to group a setof h1h6elements when the heading has multiple levels, such as subheadings,alternative titles, or taglines.   f)  The <header>element represents a group of introductory or navigational aids. A headerelement is intended to usually contain the section’s heading (an h1h6elementor an hgroupelement), but this is not required. The header element can also beused to wrap a section’s table of contents, a search form, or any relevantlogos.   g)  The <footer>element represents a footer for its nearest ancestor sectioning content orsectioning root element. A footer typically contains information about itssection such as who wrote it, links to related documents, copyright data, andthe like. Footers don’t necessarily have to appear at the end of a section,though they usually do. When the footer element contains entire sections, theyrepresent appendices, indexes, long colophons, verbose license agreements, andother such content.   h)  The <time>element represents either a time on a 24 hour clock, or a precise date in theproleptic Gregorian calendar, optionally with a time and a time-zone offset.   i)  The <mark>element represents a run of text in one document marked or highlighted forreference purposes. 20. All browsers render unknown elements inline, as if theyhad a display:inlineCSSrule. There are several new elementsdefined in HTML5which are block-level elements. That is, they cancontain other block-level elements. If you want to use these elements in olderbrowsers, you will need to define the display style manually:
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {display:block;}
 However, prior to version 9, Internet Explorerdid not apply anystyling on unknown elements.  21. If IE 8 doesn’t explicitly recognize the element name, it will insert the element into the DOM as an empty node with no children . All the elements that you would expect to be direct children of the unknown element will actually be inserted as siblings instead. If you create a dummy  <article>element with JavaScript before you use it in your page, Internet Explorer will magically recognize the  <article>element and let you style it with CSS. There is no need to ever insert the dummy element into the DOM . Simply creating the element once (per page) is enough to teach IE to style the element it doesn’t recognize:
<!--[if lt IE 9]><script>var e = ("abbr,article,aside,audio,canvas,datalist,details," +"figure,footer,header,hgroup,mark,menu,meter,nav,output," +"progress,section,time,video").split(',');for (var i = 0; i < e.length; i++) {document.createElement(e[i]);}</script><![endif]-->
 You can also reference aminified version:
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
 22.   In HTML 4,  <h1><h6>elements were the only way to create a document outline. However it does not provide a way to mark up a subheading without adding it to the document outline. The  <hgroup>element acts as a wrapper for two or more related heading elements. Headings in one group only create a single node in the document outline. Thus you can group your heading and its subheading(marked up as a smaller heading) into one group. 23. The HTML5 specification defines an algorithm for generating a document outline that incorporates the new semantic elements in HTML5 . The HTML5 algorithm says that an <article>or <nav>element creates a new section, that is, a new node in the document outline. And in HTML5 , each section can have its own <h1>element. And the <article>element can have its own <header>element.You can test yourown pages in the HTML5Outlinerto ensure that you’re using the heading elements properly. 24.   There are three parts to a <time>element:  a)   A machine-readable timestamp  b)   Human-readable text content  c)   An optional pubdate flag 
<time datetime="2009-10-22T13:59:47-04:00" pubdate>October 22, 2009 1:59pm EDT</time> 
 The pubdateattribute is a Boolean attribute. It means one of two things. If the <time>element is in an <article>element, it means that this timestamp is the publication date of the article. If the  <time>element is not in an <article>element, it means that this timestamp is the publication date of the entire document.  25.   People with disabilities care about the semantics of site navigation. Once they get past the page title, the next important pieces of information about a page are the major navigation links. If they want to navigate quickly, they’ll tell their screenreader to jump to the navigation bar and start reading. Thus being able to determine navigation links programmatically is important. HTML5 provides a semantic way to mark up navigation sections: the  <nav>element. 26. The HTML5specification says, “A footer typicallycontains information about its section such as who wrote it, links to related documents,copyright data, and the like.”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: