TAILIEUCHUNG - The Best-Practice Guide to xHTML and CSS phần 2

Thứ ba, tất cả các giá trị thuộc tính phải được trong dấu ngoặc kép (và tất cả các thuộc tính phải có giá trị). Ví dụ, Dog HTML không phải là validâ € "nó phải được HTML Dog. Thứ tư, các yếu tố phải được lồng nhau đúng cách. Các yếu tố lồng nhau là những yếu tố kèm theo trong các yếu tố khác. Một ví dụ là: Tại sao không thử Dog HTML? | HTML syntax 3 Thirdly all attribute values must be in quotation marks and all attributes must have values . For example a href http HTML Dog a is not valid it must be a href http HTML Dog a . Fourthly elements must be nested properly. Nested elements are elements enclosed in other elements. An example is p Why not try out a href http HTML Dog a p In this case the a element a link see Chapter 3 is nested inside the p element a paragraph see Chapter 2 Text . You have to be careful when nesting elements one must fit snugly inside another. So for example emxa href http HTML Dog ax em is good but emxa href http HTML Dog emx a is not. If the a element is to be inside the em element emphasis see Chapter 2 then the closing tag for the a element must come before the closing em tag. IT S A FAMILY AFFAIR The relationship of one element to another can be defined in terms of family connections. With nested elements an element within another element can be called a child of the containing element. In turn the containing element is known as the parent of that child. So in p em Lemon em pie p the p element is the parent of the em element which is the child of the p element. You will also come across terms such as siblings ancestors and descendants. 4 chapter 1 getting started BLOCK AND INLINE ELEMENTS All HTML elements are one of two types block or inline. Block elements collect together other block elements or inline elements or even plain old textual content and are used to structure something that is greater than a simple line of content. They include div used to divide up code by splitting it into chunks explained in detail later p paragraphs see Chapter 2 and table Chapter 8 Tables . Inline elements are just that elements within a line. They include span see later em emphasis see Chapter 2 and img image see Chapter 4 Images . Keep in mind that you can t have a block element inside an inline .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.