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

40 HTML kho tài liệu training

15 85 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 15
Dung lượng 0,99 MB

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

Nội dung

HTML is meant for meaning and structure of a web page’s content.. HTML contains tags that organize and structure text, include images, create forms & tables, and link to other documents

Trang 2

What is HTML?

HTML (HyperText Markup Language) is a language used to

create documents on the web HTML is meant for meaning and structure of a web page’s content

HTML contains tags that organize and structure text, include images, create forms & tables, and link to other documents or web pages all across the Internet

Trang 3

HTML Syntax

The basic syntax of HTML is made up of Tags, Attributes and Elements

Trang 4

Tags

HTML tags are tag names surrounded by angle brackets, like so:

<html>

Trang 5

Tags

HTML tags usually come in pairs, like so:

Trang 6

Tags

The first tag is called the opening tag and the second tag is

called the closing tag

<article> </article>

Trang 7

Attributes

Attributes provide extra information about an element and are always specified in the opening tag, like so:

<article attribute=“value”></article>

Trang 8

Attributes

Attribute values should be enclosed within quotation marks You may come across something like:

<tag attribute=value>

But using quotation marks is more common, cleaner, and best practice

Trang 9

Elements

An element is a tag and the content it wraps around, for example:

element

Trang 10

TAGS

<body></body>

<p>content</p>

Visual Recap

Trang 11

HTML Parent / Child Structure

HTML tags are like nested containers Like Tupperware, or those stackable Russian dolls

Trang 12

HTML Parent / Child Structure

It’s also called parent/child relationships, where the containing element is referred to as the parent of the element contained within it

Trang 13

em

strong

Trang 14

The body is the parent of the headings (h1, h2) and paragraph tags (p), and the second paragraph is the parent of the em and

The body is the ancestor of these latter elements, rather than their parent The headings and paragraphs are siblings, and

the em and strong elements within one paragraph tag are

siblings

Make sense?

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

TỪ KHÓA LIÊN QUAN