Kami melihat dua blok bangunan penting dari pengkodean web ini, bagaimana penggunaannya, dan manfaat mempelajarinya
Function: Link to another resource and indicate its relationship. There could be more than one ________19_______0 tags in the HEAD section.
Syntax:
________90_______6Attributes:
- rel, rev: indicates the forward or reverse relationship to the current document. Take value of ________0_______45, ________0_______46, ________0_______47, ________0_______48, ________0_______49, ________0_______50, ________0_______51, ________0_______52, ________0_______53, ________0_______54, and ________0_______55 (i.e., author).
[TODO] other attributes.
Example:
________90_______8The above ________19_______0 tags indicate that "________0_______57" is the stylesheet of MIME type "________0_______58"; "________0_______59" is the home page; "________0_______60" is the help page; this page ("________0_______61") is the previous page of "________0_______62" (in a reverse relationship), and this page is the next page of "________0_______63".
The most-commonly used ________19_______0 is to specify the external CSS style sheet. The rests are hardly used.
Including an IconA favicon (aka favorite icon, shortcut icon, URL icon) is a file containing a small 16x16 icon. Browser can display the icon besides the URL bar or bookmark. The favicon file is usually called "________0_______65".
To include an icon, provide a ________19_______0 tag in the section, as follows:
You can use PhotoShop/Element to create a favicon file; or use a simple imaging tool (such as MS Paint) to create a small image and then submit to an online converter to generate a favicon file.
Meta Information ________19_______0You can use ________19_______0 tag to include meta information about the document, such as keywords, author, expiration date, and page generator. The syntax is:
________70_______9Examples:
________90_______6The ________19_______0 tag can also be used to ask the server to insert an HTTP response header (read "HTTP Basics"). The syntax is as follow:
________70_______9EXAMPLE 1: Auto-Redirect after x seconds
________101_______2The above ________19_______0 tag triggers the server to include the following "Response Header" in the HTTP response message, when the page is downloaded:
________101_______3The browser, in response to this response header, redirect to the given URL after 3 sec.
EXAMPLE 2: Auto-Refresh every x seconds
EXAMPLE 3: Specify the character set used in the HTML document.
The server will include this response header in the response message, when the page is downloaded:
________101_______5Embedded Style Definition ________19_______0Function: For embedded style declarations, covered earlier.
Scripting Codes ________19_______0Function: For embedding scripting codes. See my "Introduction to JavaScript" on usage and examples.
More CSS
CSS Variables (Custom Properties)
CSS Variables (aka Custom Properties or Cascading Variables) allows you to define variables and using that variables in multiple properties, in a style sheet. This is really useful in setting themes (without using a preprocessor such as LESS or SASS).
Rules:
- The name of the variables shall begin with two dashes (________0_______73), e.g., ________0_______74.
- To reference the variable, use ________0_______75.
- To define global-scope CSS variables, place them in the ________0_______76 pseudo-class.
For examples,
________101_______6Modifying CSS Properties from JavaScript and jQuery
To modify the styles of an HTML element from JavaScript, set its ________82_______37 property, e.g.,
________101_______7To modify the style of an HTML element from jQuery:
CSS ________0_______78 Property - Positioning the HTML Block Elements
position: static|absolute|relative|fixed|inherit|initial|unset
You can use the property ________0_______78 to alter the position of block elements.
Each element has a natural location inside a page's flow, in the order read in by the browser. By default (________0_______80), elements are displayed from top to bottom in the normal flow. For block elements, line breaks are inserted at the beginning and the end to form a rectangular box.
You can remove the box from the normal flow and specify its location with respect to either its parent element (________0_______81_) atau jendela browser (The h1 tags enclose a heading level 1
The p tags is used to markup a paragraph.
82);Untuk elemen non-The h1 tags enclose a heading level 1
The p tags is used to markup a paragraph.
84, posisi baru ditentukan melalui properti The h1 tags enclose a heading level 1The p tags is used to markup a paragraph.
85, Table and Images Table and Images Logo of Languages S/No Language Logo 1. HTML5The p tags is used to markup a paragraph.
87, Table and Images Table and Images Logo of Languages S/No Language Logo 1. HTML5There are two types of lists in HTML:
- Ordered List.
- Unordered List.
This is a nested unordered list of links:
- Online Validator:
- W3C Online HTML Validator @ //validator.w3.org/.
- W3C Online CSS Validator @ //jigsaw.w3.org/css-validator/.
- Specifications:
- HTML5 @ //www.w3.org/TR/html5/.
- CSS3 Selectors @ //www.w3.org/TR/css3-selectors/.
There are two types of lists in HTML:
- Ordered List.
- Unordered List.
This is a nested unordered list of links:
- Online Validator:
- W3C Online HTML Validator @ //validator.w3.org/.
- W3C Online CSS Validator @ //jigsaw.w3.org/css-validator/.
- Specifications:
- HTML5 @ //www.w3.org/TR/html5/.
- CSS3 Selectors @ //www.w3.org/TR/css3-selectors/.
- atas. kiri. bawah. Baik. n. n%. mobil. Atur jarak dari tepi elemen ini ke tepi yang sesuai dari blok penampung
- lebar. tinggi. n. n%. mobil. Atur lebar dan tinggi elemen blok ini
- z-index. nomor. mobil. Ketika dua blok tumpang tindih karena pemosisian ulang, blok dengan nomor The h1 tags enclose a heading level 1
The p tags is used to markup a paragraph.
91 yang lebih besar berada di atas (i. e. , z-axis menunjuk ke luar layar seperti pada sistem koordinat grafik 3D standar). Angka negatif diperbolehkan. //validator.w3.org/. - W3C Online CSS Validator @ //jigsaw.w3.org/css-validator/.
- HTML5 @ //www.w3.org/TR/html5/.
- CSS3 Selectors @ //www.w3.org/TR/css3-selectors/.
There are two types of lists in HTML:
- Ordered List.
- Unordered List.
This is a nested unordered list of links:
- Online Validator:
- W3C Online HTML Validator @ //validator.w3.org/.
- W3C Online CSS Validator @ //jigsaw.w3.org/css-validator/.
- Specifications:
- HTML5 @ //www.w3.org/TR/html5/.
- CSS3 Selectors @ //www.w3.org/TR/css3-selectors/.
Misalnya, tetap
ditambahkan ke contoh di atas dalam pemosisian absolut. Perhatikan bahwa indeks-z digunakan untuk memastikan bahwa perbaikan
selalu di atas yang lain
's, terlepas dari urutan penulisan
's
CSS
_12 dan
13 Properti - Mengambang Elemen Kiri atau Kanan
mengambang. kiri. Baik. tidak ada
Anda dapat mendorong elemen ke tepi kiri atau kanan elemen penampung melalui properti
Anda dapat mengapung secara horizontal (mis. e. , kiri dan kanan), bukan atas dan bawah. Selain gambar, elemen float harus memiliki lebar dan tinggi yang ditentukan secara eksplisit. Elemen float sebenarnya diambil dari aliran normal. Elemen berikut bertindak seolah-olah elemen mengambang tidak ada, tetapi teks yang dilampirkan akan membungkus elemen mengambang
Jika banyak gambar diapungkan bersama (katakan ke kiri), gambar kedua akan didorong ke tepi kiri gambar pertama, dan seterusnya jika ada ruang horizontal yang tersedia; . Misalnya, kita dapat melayangkan banyak gambar kecil ke kiri sebagai berikut
Untuk mematikan pelampung, gunakan properti
jernih. kiri. Baik. keduanya. tidak ada
Elemen blok, secara default, dimulai dari tepi kiri dan menempati lebar penuh dari elemen yang memuatnya. Oleh karena itu, itu tidak akan berbaris satu sama lain dalam format kolom. Anda dapat menggunakan properti
[TODO] lagi
"
"
Properti CSS
Anda juga dapat menggunakan properti CSS
The p tags is used to markup a paragraph.
0CSS
_30 dan
31 Properti
menampilkan. memblokir. Di barisan. inline-blok. tidak ada. Daftar barang. meja. tabel-baris. tabel-sel. kisi. inline-grid
- blok dan sebaris. Properti
30 mengontrol tata letak dan aliran elemen HTML. Sebagian besar elemen memiliki nilai default
_30 dari
34 (,
) atau
_35 (
0,
0)
38 dapat digunakan untuk menampilkan elemen sebaris sebagai blok. Misalnya, Di sisi lain,
_39 dapat digunakan untuk menampilkan inline elemen blok. Sebagai contoh, - inline-blok. memadukan elemen dengan aliran teks, sambil memungkinkan kita menggunakan padding, margin, tinggi, dan properti serupa yang tidak memiliki efek yang terlihat pada elemen sebaris
- tidak ada. TIDAK akan ditampilkan dan tidak memakan ruang (vs.
_40 tidak akan menampilkan elemen tetapi elemen tersebut masih menggunakan ruang) - Daftar barang. tampilkan elemen seolah-olah itu adalah a
- .
- tabel, baris tabel, sel tabel. untuk menampilkan elemen (
) sebagai
visibilitas. tersembunyi. bisa dilihat. digunakan untuk menyembunyikan atau menampilkan elemen tanpa menghapus elemen dari aliran normal halaman. Artinya, ruang yang ditempati oleh elemen tersebut dipertahankan