당신은 주제를 찾고 있습니까 “html5 보일러 플레이트 – What is the HTML Boilerplate?“? 다음 카테고리의 웹사이트 https://you.tfvp.org 에서 귀하의 모든 질문에 답변해 드립니다: https://you.tfvp.org/blog/. 바로 아래에서 답을 찾을 수 있습니다. 작성자 London App Brewery 이(가) 작성한 기사에는 조회수 12,407회 및 좋아요 186개 개의 좋아요가 있습니다.
html5 보일러 플레이트 주제에 대한 동영상 보기
여기에서 이 주제에 대한 비디오를 시청하십시오. 주의 깊게 살펴보고 읽고 있는 내용에 대한 피드백을 제공하세요!
d여기에서 What is the HTML Boilerplate? – html5 보일러 플레이트 주제에 대한 세부정보를 참조하세요
What is the HTML Boilerplate?
We’re releasing the first 2 hours of our 54-hour Complete Web Development Bootcamp on YouTube!
In this series, you’ll learn all about HTML and CSS to start building websites.
If you enjoyed this introduction to web development and want to continue learning, you can join The Complete 2020 Web Development Bootcamp from the App Brewery. The highest-rated web development course on Udemy! Get the best price by following the link below:
https://www.londonappbrewery.com/web-development
Links and Resources used in Course:
https://www.appbrewery.co/p/web-development-course-resources
html5 보일러 플레이트 주제에 대한 자세한 내용은 여기를 참조하세요.
HTML5 Boilerplate: The web’s most popular front-end template
HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites. Spend more time developing and less time …
Source: html5boilerplate.com
Date Published: 11/11/2021
View: 5194
HTML5 Boilerplate(보일러 플레이트) 소개 – WEBDIR
웹에서 가장 인기있는 프런트엔드 템플릿… 소개페이지에 그렇게 문구가 적혀있습니다. HTML5 관련 자료들을 찾다보면 자주 마주치는 템플릿이기도 하고 각종 추천 …
Source: webdir.tistory.com
Date Published: 5/10/2021
View: 7080
Use This HTML Boilerplate as a Starter for Any Web Dev Project
According to Wikipedia,. boilerplate code or just boilerplate are sections of code that are repeated in multiple places with little to no …
Source: www.freecodecamp.org
Date Published: 5/26/2022
View: 9923
h5bp/html5-boilerplate – GitHub
HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites. This project is the product of over 10 …
Source: github.com
Date Published: 9/12/2021
View: 1850
HTML5 Boilerplate cho dự án bất kỳ | Học JavaScript
Thẻ title HTML là gì? CSS sheet; Thẻ script trong HTML; Kết luận. Khi bạn xây dựng một trang web mới, điều quan trọng là phải có …
Source: hocjavascript.net
Date Published: 7/21/2021
View: 6960
Tạo website nhanh chóng với HTML5 Boilerplate
Mẫu HTML5 Boilerplate. Khi tải mẫu từ HTML5boilerplate.com, bạn sẽ nhận được một số thư mục và file. Dưới đây là nội dung của file ZIP:.
Source: quantrimang.com
Date Published: 8/24/2021
View: 1677
HTML5 Template: A Basic Boilerplate for Any Project – SitePoint
Your HTML5 template needs to start with a document type declaration, or doctype. A doctype is simply a way to tell the browser — or any other …
Source: www.sitepoint.com
Date Published: 6/15/2022
View: 7620
HTML5 Boilerplate – Wikipedia
HTML5 Boilerplate is an HTML, CSS and JavaScript template (or boilerplate) for creating HTML5 websites with cross-browser compatibility.
Source: en.wikipedia.org
Date Published: 10/2/2022
View: 9148
html5-boilerplate – npm
Start using html5-boilerplate in your project by running `npm i html5-boilerplate`. There are 23 other projects in the npm registry using …
Source: www.npmjs.com
Date Published: 4/27/2021
View: 566
주제와 관련된 이미지 html5 보일러 플레이트
주제와 관련된 더 많은 사진을 참조하십시오 What is the HTML Boilerplate?. 댓글에서 더 많은 관련 이미지를 보거나 필요한 경우 더 많은 관련 기사를 볼 수 있습니다.
주제에 대한 기사 평가 html5 보일러 플레이트
- Author: London App Brewery
- Views: 조회수 12,407회
- Likes: 좋아요 186개
- Date Published: 2020. 4. 21.
- Video Url link: https://www.youtube.com/watch?v=1cpdzG2WU0Q
HTML5 Boilerplate: The web’s most popular front-end template
The web’s most popular front-end template
HTML5 Boilerplate helps you build fast, robust, and adaptable web apps or sites. Kick-start your project with the combined knowledge and effort of 100s of developers, all in one little package.
WEBDIR :: HTML5 Boilerplate(보일러 플레이트) 소개
웹에서 가장 인기있는 프런트엔드 템플릿… 소개페이지에 그렇게 문구가 적혀있습니다. HTML5 관련 자료들을 찾다보면 자주 마주치는 템플릿이기도 하고 각종 추천되는 소스들이 총집합 되어있어 처음 시작하는 사람들은 물론 체계적인 구성이 필요한 분들이라면 꼭 한 번쯤 살펴보길 권하는 템플릿입니다.
그림 출처: http://www.frontend-dev.com/html5-boilerplate/
보일러 플레이트 소개
HTML5로 프로젝트를 이제 막 시작하거나 CSS의 다양한 지원을 원하는 개발자라면 HTML5 보일러 플레이트의 사용을 고려해 보자. 이것은 필수적인 스타일과 폴리필, 모더나이저 같은 툴을 포함하여 HTML5를 사용함에 있어 크로스브라우징을 좀더 쉽게 도와주는 템플릿이다. 또한, 자동으로 CSS와 JS 파일을 합치고 주석을 제거해 제품 출시가 가능한 코드를 만들어주는 툴도 포함하고 있다.
이 프로젝트는 수년에 걸친 반복적인 제품 개발과 커뮤니티 지식이 결합된 결과물이다. 특정 개발 철학 또는 프레임워크를 부여하지 않으며 원하는 방식으로 자유롭게 구조를 구축할 수 있다.
보일러 플레이트 명칭 유래 보기
접기 정보기술에서 말하는 보일러 플레이트는 변경 없이 계속하여 재 사용할 수 있는 저작품을 말한다. 확대 해석하면, 이 아이디어는 때로 “보일러 플레이트 코드”라고 부르는, 재사용 가능한 프로그램을 가리키는데 사용되기도 한다. 이 용어는 철강 제조 부문에서 유래되었으며, 보일러 플레이트는 원래 증기 보일러 내에 사용되는 커다란 압연 강판을 의미한다. 이 용어는 보일러 플레이트가 오랜 기간동안 시험되었으며, 강철처럼 튼튼하다, 또는 반복적으로 재사용하기에 충분할 정도로 강력한 어떤 물건으로 만들어졌다는 등의 여러 가지 함축적인 의미를 내포하고 있다. 소프트웨어와 하드웨어에 관한 계약 조건이 담겨 있는 법적 계약 등에서도 보일러 플레이트를 많이 사용한다. 이 용어는 또한 “보일러 플레이트 단락” 또는 “전체 문서는 보일러 플레이트였다” 등과 같이 형용사적으로 사용되기도 한다. 보일러 플레이트는 일종의 템플릿 등과 비교될 수 있는데, 이는 템플릿을 마치 빈칸을 채우도록 되어 있는 보일러 플레이트라고 생각할 수 있기 때문이다. 일부 대표적인 보일러 플레이트에는, 임무 기록서, 안전 표지, 일반적으로 사용되는 설치 절차서, 저작권 관련 문서, 그리고 책임 포기 성명서 등을 예로 들 수 있다. 1890년대에는, 실제로 신문을 인쇄하기 위해 금속으로 주조된 보일러 플레이트가 미국 전역의 신문사에 배포되기도 했다. 1950년대까지, 수천 개의 미국 신문들이 국내 최대 공급자인 Western Newspaper Union으로부터 이러한 종류의 보일러 플레이트를 받아 사용하였다. 접기
보일러 플레이트 특징
HTML5를 사용하는데 확신을 가지고 새로운 요소를 사용하도록 도와준다.
점진적 기능 향상을 염두에 두고 설계되었다.
포함하는 것: CSS를 정상화하고 일반적인 버그를 개선하기 위해 Normalize.css를 사용한다. 로컬 폴백과 함께 jQuery CDN을 사용한다. 기능 검사를 위해 Modernizr의 커스텀 빌드를 이용한다. 웹 사이트의 성능 및 보안을 향상시키기 위해 아파치 서버 설정을 이용한다.
Placeholder CSS Media Queries.
유용한 CSS 헬퍼 클래스를 사용한다.
성능이 최적화된 기본 인쇄 스타일을 제공한다.
구글 유니버셜 애널리틱스 코드의 최적화된 버전을 제공한다.
구형 브라우저에서 자바스크립트 오류의 원인되는 console 문에 대한 보호장치가 제공된다.
문에 대한 보호장치가 제공된다. 필요없는 부분을 쉽게 삭제할 수 있도록 구성되어 있다.
광범위한 인라인 및 첨부 문서를 제공한다.
브라우저 지원
Chrome (latest 2)
Firefox (latest 2)
Internet Explorer 8+
Opera (latest 2)
Safari (latest 2)
위에서 언급한 브라우저들에서 호환성을 유지하지만 그 밖의 구형 브라우저에 사용할 수 없다는 것을 의미하진 않는다. 만약 구형 브라우저의 지원(IE 6+, Firefox 3.6+, Safari 4+) 이 필요하다면 HTML5 Boilerplate v4를 사용할 수 있지만 더 이상 개발이 진행되진 않는다.
보일러 플레이트 사용법
홈페이지에서 HTML5 보일러 플레이트를 다운로드한 후에, 사이트나 애플리케이션에 포함시킨다:
사이트의 기본 구조를 설정한다.
일부 콘텐츠, 스타일과 기능을 추가한다.
어떻게 보이는지 로컬에서 사이트를 실행해 본다.
선택적으로 사이트의 최적화를 자동화하는 빌드 스크립트를 실행
사이트를 배포
딱히 사용법이랄것이 있는 것은 아니고 그것이 중요한 것도 아니다. 포함하고 있는 코드들이 중요하고 제작하게 될 사이트나 애플리케이션에 알맞은 구조와 스타일, 기능이 중요할 뿐…
보일러 플레이트 기본구조
기본 HTML5 보일러 플레이트 사이트 구조는 아래와 같으며, 웹 사이트나 애플리케이션을 제작할때 이 구조를 참고하여 작성하도록 하자.
. ├── css (이 디렉토리는 모든 프로젝트들의 CSS 파일을 포함) │ ├── main.css (거의 모든 페이지에 삽입될 기본 CSS 파일을 이 곳에 작성) │ └── normalize.css (CSS 리셋을 위한 파일) ├── doc (이 디렉토리에 모든 HTML5 보일러 플레이트 설명서가 있음) ├── img (사이트 제작시에 필요한 이미지들을 이 곳에 저장) ├── js (이 디렉토리는 모든 프로젝트들의 JS 파일을 포함) │ ├── main.js (사이트 및 애플리케이션의 자바스크립트 코드를 참조하거나 포함하는 용도로 사용) │ ├── plugins.js (jQuery 플러그인 및 제 3자 스크립트와 같은 다른 모든 플러그인을 포함하는 용도로 사용하며, console 오류를 방지하는 폴백을 포함) │ └── vendor (이 디렉토리는 모든 제 3자 라이브러리 코드를 포함하는 용도로 사용) │ ├── jquery.min.js (기본적으로 최신의 jQuery 라이브러리를 압축된 버전으로 포함) │ └── modernizr.min.js (기본적으로 최신의 Modernizr 라이브러리를 압축된 버전으로 포함) ├── .editorconfig (다른 편집기와 IDE 사이에 일관된 코딩 스타일을 유지하기 위해 도움을 줌) ├── .htaccess (아파치 서버 설정을 위한 기본 설정을 포함) ├── 404.html (커스텀 404 페이지를 제공) ├── apple-touch-icon.png (애플 터치 아이콘으로 사용될 아이콘) ├── browserconfig.xml (IE11에 대한 커스텀 타일에 대한 설정을 포함) ├── index.html (모든 페이지의 기초를 형성하는 기본 HTML 골격) ├── humans.txt (해당 사이트 및 애플리케이션 제작자들의 기술적 자문을 구하기 위한 연락처와 같은 정보 기술) ├── robots.txt (검색 엔진 크롤러가 액세스하지 않기를 바라는 구역을 설정) ├── crossdomain.xml (크로스 도메인 요청 작업을 위한 템플릿) ├── favicon.ico (파비콘) ├── tile-wide.png (IE 타일 아이콘) └── tile.png (IE 타일 아이콘)
다음 장 부터는 주요 파일들을 자세히 들여다보고 이에 대한 해설을 덧 붙입니다.
Basic HTML5 Template: Use This HTML Boilerplate as a Starter for Any Web Dev Project
When you are building a new website, it is important to have a good starting foundation. In this article, I will explain what an HTML 5 boilerplate is and how to create a basic template to use in your projects.
What is an HTML 5 boilerplate?
According to Wikipedia,
boilerplate code or just boilerplate are sections of code that are repeated in multiple places with little to no variation.
A boilerplate in HTML is a template you will add at the start of your project. You should add this boilerplate to all of your HTML pages.
Example of HTML 5 boilerplate
Let’s take a look at a basic example.
HTML 5 Boilerplate What is a doctype in HTML?
The first line in your HTML code should be the doctype declaration. A doctype tells the browser what version of HTML the page is written in.
If you forget to include this line of code in your file, then some of the HTML 5 tags like
, < footer > , and may not be supported by the browser. What is the HTML root element?
The tag is the top level element of the HTML file. You will nest the
and tags inside of it.
The lang attribute inside the opening tag sets the language for the page. It is also good to include it for accessibility reasons, because screen readers will know how to properly pronounce the text.
The
tags contain information that is processed by machines. Inside the tags, you will nest metadata which is data that describes the document to the machine.HTML 5 Boilerplate What is UTF-8 character encoding?
UTF-8 is the standard character encoding you should use in your web pages. This will usually be the first tag shown in the
element.According to the World Wide Web Consortium,
A Unicode-based encoding such as UTF-8 can support many languages and can accommodate pages and forms in any mixture of those languages. Its use also eliminates the need for server-side logic to individually determine the character encoding for each page served or each incoming form submission.
What is the viewport meta tag in HTML?
This tag renders the width of the page to the width of the device’s screen size. If you have a mobile device that is 600px wide, then the browser window will also be 600px wide.
The initial-scale controls the zoom level. The value of 1 for the initial-scale prevents the default zoom by browsers.
What does X-UA-Compatible mean?
This tag specifies the document mode for Internet Explorer. IE=edge is the highest supported mode.
The
tag is the title for the web page. This text is shown in the browser’s title bar. HTML 5 Boilerplate CSS stylesheet
This code will link your custom CSS to the HTML page. rel=”stylesheet” defines the relationship between the HTML file and the external stylesheet.
External script tags will be placed just before the ending body tag. This is where you can link your external JavaScript code.
Conclusion
You should add an HTML 5 boilerplate to each of your HTML pages. This starter code contains important information like the doctype, metadata, external stylesheets and script tags.
h5bp/html5-boilerplate: A professional front-end template for building fast, robust, and adaptable web apps or sites.
HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites.
This project is the product of over 10 years of iterative development and community knowledge. It does not impose a specific development philosophy or framework, so you’re free to architect your code in the way that you want.
About This Repository
This repository is where HTML5-Boilerplate is authored. Some of the tools, files and processes that you see here are solely for the production of HTML5 Boilerplate and are not part of HTML5 Boilerplate. For one example, the gulpfile.mjs script is used to build the project. It’s not part of the project itself.
The project we publish is represented by the contents of the /dist/ folder. Everything else in this repository is used to author the project.
Think of it this way, in the same way that you don’t clone vuejs/core to create a Vue.js app, you don’t need to clone this repository to start a new site or app based on HTML5 Boilerplate.
So, if you’re looking for a quick start template to build a web site or application, look at the options in the Quick Start section of this document
If you want to help us improve HTML5 Boilerplate then you can start with the documentation here, which includes steps to clone this repo in order to get it set up for development.
Quick start
Choose one of the following options:
Using the create-html5-boilerplate script, instantly fetch the latest npm published package (or any version available on npm) with npx , npm init or yarn create without having to install any dependencies. Running the following npx command installs the latest version into a folder called new-site npx create-html5-boilerplate new-site cd new-site npm install npm run start
Using our new Template Repository create a new GitHub repository based on the latest code from the main branch of HTML5 Boilerplate.
Install with npm: npm install html5-boilerplate or yarn: yarn add html5-boilerplate . The resulting node_modules/html5-boilerplate/dist folder represents the latest version of the project for end users. Depending on what you want to use and how you want to use it, you may have to copy and paste the contents of that folder into your project directory.
Download the latest stable release from html5boilerplate.com. This zip file is a snapshot of the dist folder. On Windows, Mac and from the file manager on Linux unzipping this folder will output to a folder named something like html5-boilerplate_v7.3.0 . From the command line will need to create a folder and unzip the contents into that folder. mkdir html5-boilerplate unzip html5-boilerplate * .zip -d html5-boilerplate
Features
A finely-tuned starter template. Reap the benefits of 10 years of analysis, research and experimentation by over 200 contributors.
Designed with progressive enhancement in mind.
Includes: Normalize.css for CSS normalizations and common bug fixes A custom build of Modernizr for feature detection Apache Server Configs that improve the web site’s performance and security
Placeholder Open Graph elements and attributes.
An example package.json file with WebPack commands built in to jumpstart application development
Placeholder CSS Media Queries.
Useful CSS helper classes.
Default print styles, performance optimized.
Protection against any stray console statements causing JavaScript errors in older browsers.
statements causing JavaScript errors in older browsers. “Delete-key friendly.” Easy to strip out parts you don’t need.
Extensive documentation.
Browser support
HTML5-Boilerplate supports the latest, stable releases of all major browsers.
You can find our range of supported browsers in our package.json At present we alter the browserlist default by dropping IE 11.
“browserslist” : [ ” > 0.5% ” , ” last 2 versions ” , ” Firefox ESR ” , ” not dead ” , ” not IE 11 ” ],
That configuration translates to this full list of browsers.
Documentation
Take a look at the documentation table of contents. This documentation is bundled with the project which makes it available for offline reading and provides a useful starting point for any documentation you want to write about your project.
Contributing
Hundreds of developers have helped to make the HTML5 Boilerplate. Anyone is welcome to contribute, however, if you decide to get involved, please take a moment to review the guidelines:
License
The code is available under the MIT license.
HTML5 Boilerplate cho dự án bất kỳ
Khi bạn xây dựng một trang web mới, điều quan trọng là phải có một nền tảng khởi đầu tốt. Trong bài viết này, tôi sẽ giải thích HTML5 Boilerplate là gì và cách tạo một HTML5 Boilerplate cho dự án bất kỳ của bạn
Theo Wikipedia,
boilerplate code or just boilerplate are sections of code that are repeated in multiple places with little to no variation.
HTML5 Template: A Basic Boilerplate for Any Project
As you learn HTML5 and add new techniques to your toolbox, you’re likely going to want to build yourself an HTML boilerplate to start off all future projects. This is definitely worth doing, and there are many starting points online to help you build your own HTML5 template.
In this article, we’ll look at how to get started with building your own HTML5 boilerplate. We’ll walk through the essential elements of an HTML template, ending with a basic template that you can take with you and build upon.
If you’d rather just grab the code now and read this article later, here’s our finished HTML5 template.
The Anatomy of an HTML5 Template
An HTML template typically includes the following parts:
Other than the document type declaration and element, the elements listed above will mostly be found inside the
section of the HTML template.The HTML5 Doctype
Your HTML5 template needs to start with a document type declaration, or doctype. A doctype is simply a way to tell the browser — or any other parser — what type of document it’s looking at. In the case of HTML files, it means the specific version and flavor of HTML. The doctype should always be the first item at the top of any HTML file. Many years ago, the doctype declaration was an ugly and hard-to-remember mess, often specified as “XHTML Strict” or “HTML Transitional”.
With the advent of HTML5, those indecipherable eyesores are gone and now all you need is this:
Simple, and to the point. The doctype can be written in uppercase, lowercase, or mixed case. You’ll notice that the “5” is conspicuously missing from the declaration. Although the current iteration of web markup is known as “HTML5”, it really is just an evolution of previous HTML standards — and future specifications will simply be a development of what we have today. There’s never going to be an “HTML6”, so it’s common to refer to the current state of web markup as simply “HTML”.
Because browsers are required to support older content on the Web, there’s no reliance on the doctype to tell browsers which features should be supported in a given document. In other words, the doctype alone isn’t going to make your pages compliant with modern HTML features. It’s really up to the browser to determine feature support on a case-by-case basis, regardless of the doctype used. In fact, you can use one of the older doctypes with new HTML5 elements on a page and the page will render the same as it would if you used the new doctype.
The Element
Following the doctype in any HTML document is the element:
< html lang = " en " >
This hasn’t undergone any significant change since the advent of HTML5. In the code snippet above, we’ve included the lang attribute with a value of en , which specifies that the document is in English. This isn’t required for a page to validate, but you’ll get a warning from most validators if you don’t include it.
The element is divided into two parts, the
and sections. The section contains important information about the document that isn’t displayed to the end user — such as the character encoding, and links to CSS files and possibly JavaScript. The section contains everything that’s displayed in the browser — text, images, and so on.HTML Document Character Encoding
The first line inside the
section of an HTML document is the one that defines the character encoding for the document. This is an optional feature and won’t cause any warnings in validators, but it’s recommended for most HTML pages:< meta charset = " utf-8 " >
In nearly all cases, utf-8 is the value you’ll be using in your documents. A full explanation of character encoding is beyond the scope of this article, and it probably won’t be that interesting to you, either. Nonetheless, if you want to delve a little deeper, you can read about character encoding in the HTML specification.
Note: to ensure that certain older browsers read the character encoding correctly, the entire character encoding declaration must be included somewhere within the first 512 characters of your document. It should also appear before any content-based elements (like the
element that appears later in our example). There’s much more we could write about this subject, but for now, we’re content to accept this simplified declaration and move on to the next part of our document.
The Viewport Meta Element
The viewport meta element is a feature you’ll see in just about every HTML5 template. It’s important for responsive web design and mobile-first design:
< meta name = " viewport " content = " width=device-width, initial-scale=1 " >
This element includes two attributes that work together as a name/value set. In this case, the name is set to viwport and the value is width=device-width, initial-scale=1 . This is used by mobile devices only. You’ll notice the value has two parts to it, described here:
width=device-width : the pixel width of the viewport that you want the website to be rendered at.
: the pixel width of the viewport that you want the website to be rendered at. initial-scale : this should be a positive number between 0.0 and 10.0. A value of “1” indicates that there’s a 1:1 ratio between the device width and the viewport size.
You can read up a little more on these meta element features on MDN, but for now just know that, in most cases, this meta element with these settings is best for mobile-first, responsive websites.
The
, description , and author The next section of the HTML template contains the following three lines:
< title > A Basic HTML5 Template title > < meta name = " description " content = " A simple HTML5 Template for new projects. " > < meta name = " author " content = " SitePoint " >
These elements have been part of HTML for a long time, so there’s nothing too new here. The
is what’s displayed in the browser’s title bar (such as when you hover over a browser tab). This element is the only mandatory element inside the . The other two are optional elements defining a description for SEO purposes along with an author. All elements inside
are optional with the exception of. In fact, you can put as many valid elements in the as you like. Open Graph Meta Elements for Social Cards
As mentioned, all meta elements are optional but many have benefits for SEO and social media marketing. The next section in our HTML5 boilerplate includes some of those meta element options:
< meta property = " og:title " content = " A Basic HTML5 Template " > < meta property = " og:type " content = " website " > < meta property = " og:url " content = " https://www.sitepoint.com/a-basic-html5-template/ " > < meta property = " og:description " content = " A simple HTML5 Template for new projects. " > < meta property = " og:image " content = " image.png " >
These elements take advantage of something called the Open Graph protocol, and there are many others you can use. These are the ones you’re likely to use most often. You can view a full list of available Open Graph meta options on the Open Graph website.
The ones we’re including here will enhance the appearance of the web page when it’s linked in a social media post. For example, the five elements included here will appear in social cards embedding the following data:
a title for the content
the type of content being delivered
the canonical URL for the content
a description of the content
an image to associate with the content
When you see a post shared on social media, you’ll often see these bits of data automatically added to the social media post. For example, below is what would appear in a tweet if you included a link to GitHub’s home page:
Image source: GitHub
Favicons and Touch Icons
The next section in the HTML5 template includes elements that indicate resources to include as a favicon and apple touch icon:
< link rel = " icon " href = " /favicon.ico " > < link rel = " icon " href = " /favicon.svg " type = " image/svg+xml " > < link rel = " apple-touch-icon " href = " /apple-touch-icon.png " >
The favicon.ico file is for legacy browsers and doesn’t have to be included in the code. As long as your favicon.ico file is included in the root of your project, the browser will automatically find it. The favicon.svg file is for modern browsers that support SVG icons. The last element references the icon that’s used on Apple devices when the page is added to the user’s home screen.
There are other options you can include here, including a web app manifest file that references other icons. For a full discussion, we recommend Andrey Sitnik’s post on the subject. But the ones included here will suffice for a simple starter template.
Including a Stylesheet and Scripts
The last two significant portions of our HTML template are the reference to a stylesheet and script. Both are optional, of course:
< link rel = " stylesheet " href = " css/styles.css?v=1.0 " >
The stylesheet is included using the element with an appropriate rel attribute. A stylesheet can be included anywhere in a document, but you’ll customarily see it inside the
. And unlike older versions of HTML, there’s no need to include a type attribute (which was never needed in the first place).Likewise with script elements, you’ll see them almost anywhere in a document, but they’re usually at the bottom (just before the closing tag) as a best practice.
< script src = " js/scripts.js " > script >
Placing the