1. Trang chủ
  2. » Giáo Dục - Đào Tạo

41 basic structure kho tài liệu training

23 50 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 23
Dung lượng 4,18 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

File & Folder Structure of a Website It’s important to keep the contents of your website organized.. BASIC STRUCTURE OF A WEBSITE THE ULTIMATE WEB DESIGNER • BRAD HUSSEY... File & Folde

Trang 2

File & Folder Structure of a Website

It’s important to keep the contents of your website organized Folders should have simple one word names Multi-word

names can be faked by using the underscore “_” character, like so:

product_images

course_files

etc

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 3

File & Folder Structure of a Website

In the root folder of your site (“root” is the common name for the top-level directory of a website) you’ll place an HTML

document called index.html

index.html is the homepage—the first page visitors see when they arrive at your site

Trang 4

File & Folder Structure of a Website

The index.html filename is set in stone because Unix-based HTTP servers are configured to look for a document named index.htm or index.html when no additional filename is

specified in the address bar

http://website.com → http://website.com/index.html

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 5

File & Folder Structure of a Website

You will also have a folder reserved for your images This

folder is usually called images or img

Let’s take a look at the typical file/folder structure of a simple website…

Trang 6

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

MyWebsite

Trang 7

index.html

Trang 8

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

MyWebsite

Trang 9

logo.jpg

Trang 10

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

MyWebsite

logo.jpg

downloads

Trang 12

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 14

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 15

index.html images

downloads biographies things.html brad.html

Navigating to things.html within the downloads folder would look like this:

www.website.com/downloads/things.html

Trang 16

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 17

File & Folder Naming Conventions

The name of any file or folder you create as part of your

website structure will eventually become part of a URL

URLs have some restrictions as far as the characters that can

be used within them, so it’s important to be aware of them

Trang 18

These characters are not allowed in URLs

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 19

Special characters used in URLs

Trang 20

Spaces are NOT ALLOWED in URLs

Fake spaces by using the underscore “_”, like so:

my_website

cute_dog

awesome_things

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Trang 21

URLs are mostly case-sensitive

If you have an image called logo.jpg and you reference it in your HTML as Logo.jpg the server probably won’t find it

Trang 22

The best approach

It’s widely accepted among most professional web developers to use only lower-case alphanumeric characters and the underscore when naming files & folders

So, instead of this:

BASIC STRUCTURE OF A WEBSITE

THE ULTIMATE WEB DESIGNER • BRAD HUSSEY

Ngày đăng: 17/11/2019, 08:18