├── .editorconfig ├── .gitignore ├── CNAME ├── LICENSE.md ├── README.md ├── _config.yml ├── _includes ├── banner.html ├── carbon.html ├── facebook.html ├── footer.html ├── head.html ├── header.html ├── newsletter.html ├── scripts.html ├── share.html └── table-of-contents.html ├── _layouts ├── chapter.html ├── default.html └── post.html ├── _posts ├── 2015-01-01-introduction.md ├── 2015-01-02-internet.md ├── 2015-01-03-web.md ├── 2015-01-04-browser.md ├── 2015-01-05-requirements.md ├── 2015-02-01-html-basics.md ├── 2015-02-02-html-syntax.md ├── 2015-02-03-html-block-inline.md ├── 2015-02-04-html-hierarchy.md ├── 2015-02-05-html-semantics.md ├── 2015-02-06-html-formatting.md ├── 2015-02-07-html-valid-document.md ├── 2015-03-01-html-content.md ├── 2015-03-02-html-text.md ├── 2015-03-03-html-inline-semantics.md ├── 2015-03-03-html-links.md ├── 2015-03-04-html-images.md ├── 2015-03-05-html-tables.md ├── 2015-03-06-html-structure.md ├── 2015-03-07-html-forms.md ├── 2015-04-01-css-basics.md ├── 2015-04-02-why-css-exists.md ├── 2015-04-03-css-syntax.md ├── 2015-04-04-css-selectors.md ├── 2015-04-05-css-inheritance.md ├── 2015-04-06-css-priority.md ├── 2015-04-07-css-color-units.md ├── 2015-04-08-css-size-units.md ├── 2015-04-09-css-reset.md ├── 2015-05-01-css-text.md ├── 2015-05-02-css-font-family.md ├── 2015-05-03-css-font-size-style-weight.md ├── 2015-05-04-css-line-height.md ├── 2015-05-05-css-font-shorthand.md ├── 2015-05-06-css-text-properties.md ├── 2015-06-01-css-box-model.md ├── 2015-06-02-css-background.md ├── 2015-06-03-css-display.md ├── 2015-06-04-css-height-width-overflow.md ├── 2015-06-05-css-border.md ├── 2015-06-06-css-padding.md ├── 2015-06-07-css-margin.md ├── 2015-06-08-css-size-shorthand-wheel.md ├── 2015-07-01-css-positioning.md ├── 2015-07-02-css-the-flow.md ├── 2015-07-03-css-position.md ├── 2015-07-04-css-float-clear.md ├── 2015-08-01-css-advanced.md ├── 2015-08-02-css-pseudo-classes.md ├── 2015-08-03-css-gradients.md ├── 2015-08-04-css-transitions.md ├── 2015-08-05-css-animations.md ├── 2015-08-06-css-transform.md ├── 2015-08-07-css-responsiveness.md ├── 2015-09-01-sass.md ├── 2015-09-02-sass-scss-less.md ├── 2015-09-03-sass-variables.md ├── 2015-09-04-sass-nesting.md ├── 2015-09-05-sass-mixins.md └── 2015-09-06-sass-extend.md ├── _sass ├── base.sass ├── bourbon │ ├── _bourbon-deprecated-upcoming.scss │ ├── _bourbon.scss │ ├── addons │ │ ├── _border-color.scss │ │ ├── _border-radius.scss │ │ ├── _border-style.scss │ │ ├── _border-width.scss │ │ ├── _buttons.scss │ │ ├── _clearfix.scss │ │ ├── _ellipsis.scss │ │ ├── _font-stacks.scss │ │ ├── _hide-text.scss │ │ ├── _margin.scss │ │ ├── _padding.scss │ │ ├── _position.scss │ │ ├── _prefixer.scss │ │ ├── _retina-image.scss │ │ ├── _size.scss │ │ ├── _text-inputs.scss │ │ ├── _timing-functions.scss │ │ ├── _triangle.scss │ │ └── _word-wrap.scss │ ├── css3 │ │ ├── _animation.scss │ │ ├── _appearance.scss │ │ ├── _backface-visibility.scss │ │ ├── _background-image.scss │ │ ├── _background.scss │ │ ├── _border-image.scss │ │ ├── _calc.scss │ │ ├── _columns.scss │ │ ├── _filter.scss │ │ ├── _flex-box.scss │ │ ├── _font-face.scss │ │ ├── _font-feature-settings.scss │ │ ├── _hidpi-media-query.scss │ │ ├── _hyphens.scss │ │ ├── _image-rendering.scss │ │ ├── _keyframes.scss │ │ ├── _linear-gradient.scss │ │ ├── _perspective.scss │ │ ├── _placeholder.scss │ │ ├── _radial-gradient.scss │ │ ├── _selection.scss │ │ ├── _text-decoration.scss │ │ ├── _transform.scss │ │ ├── _transition.scss │ │ └── _user-select.scss │ ├── functions │ │ ├── _assign-inputs.scss │ │ ├── _contains-falsy.scss │ │ ├── _contains.scss │ │ ├── _is-length.scss │ │ ├── _is-light.scss │ │ ├── _is-number.scss │ │ ├── _is-size.scss │ │ ├── _modular-scale.scss │ │ ├── _px-to-em.scss │ │ ├── _px-to-rem.scss │ │ ├── _shade.scss │ │ ├── _strip-units.scss │ │ ├── _tint.scss │ │ ├── _transition-property-name.scss │ │ └── _unpack.scss │ ├── helpers │ │ ├── _convert-units.scss │ │ ├── _directional-values.scss │ │ ├── _font-source-declaration.scss │ │ ├── _gradient-positions-parser.scss │ │ ├── _linear-angle-parser.scss │ │ ├── _linear-gradient-parser.scss │ │ ├── _linear-positions-parser.scss │ │ ├── _linear-side-corner-parser.scss │ │ ├── _radial-arg-parser.scss │ │ ├── _radial-gradient-parser.scss │ │ ├── _radial-positions-parser.scss │ │ ├── _render-gradients.scss │ │ ├── _shape-size-stripper.scss │ │ └── _str-to-num.scss │ └── settings │ │ ├── _asset-pipeline.scss │ │ ├── _prefixer.scss │ │ └── _px-to-em.scss ├── buttons.sass ├── chapter.sass ├── components.sass ├── controls.sass ├── elements.sass ├── functions.sass ├── index.sass ├── pygments-monokai-extended.sass ├── reset.sass └── variables.sass ├── css ├── ie.css ├── main.sass ├── reset.css └── tutorial.css ├── favicon.ico ├── html ├── sample-paragraph.html └── visited.html ├── images ├── @1x │ ├── button-start-reading.png │ └── toc-head.png ├── button-start-reading.png ├── device-browser-viewport.png ├── frog.jpg ├── hsl-model.png ├── image-density-in-css.png ├── marksheet-banner.png ├── marksheet-free-html-css-tutorial.png ├── marksheet-hello.png ├── marksheet-icon.png ├── marksheet-logo.png ├── original │ ├── marksheet-free-html-css-tutorial.png │ └── marksheet-hello.png ├── pattern.png ├── photoshop-color-picker.png ├── solar-eclipse.jpg ├── soyuz-spacecraft.jpg ├── text-editors │ ├── notepad-plus-plus.png │ └── sublime-text.png ├── toc-head.png └── web-browsers │ ├── chrome.png │ ├── firefox.png │ ├── internet-explorer.png │ ├── opera.png │ └── safari.png ├── index.html ├── javascript ├── affix.js ├── codemirror.js ├── d3.min.js ├── index.js ├── jquery-1.11.1.min.js ├── marksheet.js ├── mode │ ├── css │ │ ├── css.js │ │ ├── index.html │ │ ├── less.html │ │ ├── less_test.js │ │ ├── scss.html │ │ ├── scss_test.js │ │ └── test.js │ ├── htmlmixed │ │ ├── htmlmixed.js │ │ └── index.html │ └── xml │ │ ├── index.html │ │ ├── test.js │ │ └── xml.js └── post.js ├── original-docs ├── 2015-01-01-introduction.md ├── 2015-01-02-internet.md ├── 2015-01-03-web.md ├── 2015-01-04-browser.md ├── 2015-01-05-requirements.md ├── 2015-02-01-html-basics.md ├── 2015-02-02-html-syntax.md ├── 2015-02-03-html-block-inline.md ├── 2015-02-04-html-hierarchy.md ├── 2015-02-05-html-semantics.md ├── 2015-02-06-html-formatting.md ├── 2015-02-07-html-valid-document.md ├── 2015-03-01-html-content.md ├── 2015-03-02-html-text.md ├── 2015-03-03-html-inline-semantics.md ├── 2015-03-03-html-links.md ├── 2015-03-04-html-images.md ├── 2015-03-05-html-tables.md ├── 2015-03-06-html-structure.md ├── 2015-03-07-html-forms.md ├── 2015-04-01-css-basics.md ├── 2015-04-02-why-css-exists.md ├── 2015-04-03-css-syntax.md ├── 2015-04-04-css-selectors.md ├── 2015-04-05-css-inheritance.md ├── 2015-04-06-css-priority.md ├── 2015-04-07-css-color-units.md ├── 2015-04-08-css-size-units.md ├── 2015-04-09-css-reset.md ├── 2015-05-01-css-text.md ├── 2015-05-02-css-font-family.md ├── 2015-05-03-css-font-size-style-weight.md ├── 2015-05-04-css-line-height.md ├── 2015-05-05-css-font-shorthand.md ├── 2015-05-06-css-text-properties.md ├── 2015-06-01-css-box-model.md ├── 2015-06-02-css-background.md ├── 2015-06-03-css-display.md ├── 2015-06-04-css-height-width-overflow.md ├── 2015-06-05-css-border.md ├── 2015-06-06-css-padding.md ├── 2015-06-07-css-margin.md ├── 2015-06-08-css-size-shorthand-wheel.md ├── 2015-07-01-css-positioning.md ├── 2015-07-02-css-the-flow.md ├── 2015-07-03-css-position.md ├── 2015-07-04-css-float-clear.md ├── 2015-08-01-css-advanced.md ├── 2015-08-02-css-pseudo-classes.md ├── 2015-08-03-css-gradients.md ├── 2015-08-04-css-transitions.md ├── 2015-08-05-css-animations.md ├── 2015-08-06-css-transform.md ├── 2015-08-07-css-responsiveness.md ├── 2015-09-01-sass.md ├── 2015-09-02-sass-scss-less.md ├── 2015-09-03-sass-variables.md ├── 2015-09-04-sass-nesting.md ├── 2015-09-05-sass-mixins.md └── 2015-09-06-sass-extend.md └── thank-you.html /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 4 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | _config.yml 3 | .sass-cache 4 | _site -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | learn.escript.cn 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Jeremy Thomas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## [HTML、CSS 系列教程](http://fe-primary-tutorial.yangxiaofu.com/) 2 | 3 | 4 | 本教程主要为 [Marksheet](http://marksheet.io) 的中文翻译版,并在此基础上进行修正,以更方便中文读者进行学习。 5 | * 原文 github: [https://github.com/jgthms/marksheet](https://github.com/jgthms/marksheet) 6 | 7 | ## 如何参与翻译 8 | 9 | 1. fork 10 | 2. clone 到本地 11 | 3. update readme, 添加认领标识 12 | 4. 提交 PR 13 | 14 | ## 翻译认领(`/posts`目录) 15 | 16 | * introduction.md - @yangxiaofu - 翻译中 17 | * internet.md - @yangxiaofu - 翻译中 18 | * web.md - @yangxiaofu - 翻译中 19 | * browser.md - @xiaowang - 完成 20 | * HTML Basic - @fanmingfei - 完成 21 | * HTML Syntax - @fanmingfei - 完成 22 | * HTML Block and Inline - @fanmingfei - 完成 23 | * HTML Hierarchy - @fanmingfei - 完成 24 | * HTML Semantics - @liuchunhui - 完成 25 | * HTML Formatting - @fanmingfei - 完成 26 | * HTML Valid Document -@fanmingfei -完成 27 | * HTML Text - @fanmingfei - 完成 28 | * HTML Inline Semantics - @fanmingfei - 完成 29 | * HTML Links - @melanc - 完成 30 | * HTML Images - @fanmingfei - 完成 31 | * HTML Tables - @fanmingfei - 完成 32 | * HTML Structure - @fanmingfei - 完成 33 | * HTML Forms - @fanmingfei - 完成 34 | * CSS Basics - @fanmingfei -完成 35 | * Why CSS Exists - @fanmingfei - 完成 36 | * CSS Syntax - @xiaowang - 完成 37 | * CSS Selectors - @xiaowang - 翻译中 38 | * CSS Inheritance - @fanmingfei - 完成 39 | * CSS Priority - @fanmingfei - 完成 40 | * CSS Size Unit - @fanmingfei - 完成 41 | * CSS Reset - @fanmingfei - 完成 42 | * CSS Text - @fanmingfei - 完成 43 | * CSS Font Family - @fanmingfei - 完成 44 | * CSS Font Size Style Weight - @fanmingfei - 完成 45 | * CSS Line Height - @fanmingfei - 完成 46 | 47 | ## License 48 | 49 | 50 | * MIT 51 | 52 | * 遵循创意共享4.0协议: [http://creativecommons.org/licenses/by-nc-sa/4.0/](http://creativecommons.org/licenses/by-nc-sa/4.0/) 53 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | name: fe-primary-tutorial 2 | description: A free tutorial to learn HTML and CSS 3 | markdown: kramdown 4 | kramdown: 5 | input: GFM 6 | exclude: ['images/original'] 7 | permalink: :title.html 8 | baseurl: fe-primary-tutorial -------------------------------------------------------------------------------- /_includes/banner.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MarkSheet Video tutorials are coming! 5 | 6 | 7 | Sign up for the newsletter to get notified! 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /_includes/carbon.html: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /_includes/facebook.html: -------------------------------------------------------------------------------- 1 | {% if page.layout == 'index' %} 2 | 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /_includes/footer.html: -------------------------------------------------------------------------------- 1 | 30 | -------------------------------------------------------------------------------- /_includes/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |