Top Banner
BASIC HTML & CSS 1. html - basic tags [ 2017.01.05. Thu ]
29

[Basic HTML/CSS] 1. html - basic tags

Apr 12, 2017

Download

Technology

Hyejin Oh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: [Basic HTML/CSS] 1. html - basic tags

BASIC HTML & CSS1. html - basic tags

[ 2017.01.05. Thu ]

Page 2: [Basic HTML/CSS] 1. html - basic tags

To Do

1. Basic Tags○ h1~h6, div, p, span, img, a, strong, b, em, i

2. List tags○ ul li, ol li, dl dt dd

3. Table tags○ table, thead, tbody, tfoot, tr, td, colgroup, col

4. Form tags○ form, fieldset, legend, label, input, select, option, textarea, button

5. Etc○ header, footer, nav, aside, section, article○ iframe, blockquote, ruby, sup, sub, pre, code, mark

Page 3: [Basic HTML/CSS] 1. html - basic tags

Syntax

Page 4: [Basic HTML/CSS] 1. html - basic tags

HTML Syntax

<p>Hello</p>start tag close tagcontents

Page 5: [Basic HTML/CSS] 1. html - basic tags

HTML Syntax

<img src="filename.jpg">tag valueproperty

<input type="text">tag valueproperty

Page 6: [Basic HTML/CSS] 1. html - basic tags

Document Structure

Page 7: [Basic HTML/CSS] 1. html - basic tags

<!DOCTYPE html><html lang="en">

<head><meta charset="UTF-8"><title>Document</title>

</head><body>

</body></html>

문서 형식선언

최상위 요소

헤드

바디(본문 영역)

문자셋

브라우저 제목 표시줄

Page 8: [Basic HTML/CSS] 1. html - basic tags

block vs. inline

Page 9: [Basic HTML/CSS] 1. html - basic tags

div b i h1~h6 p span img a strong em

block element inline element

Page 10: [Basic HTML/CSS] 1. html - basic tags

block element inline element

span, img, a,strong, b, em, i

div b i h1~h6 p span img a strong em

div, h1~h6, p

Page 11: [Basic HTML/CSS] 1. html - basic tags

width: 100% width: auto

block element inline element

How to know easy?

Page 12: [Basic HTML/CSS] 1. html - basic tags

Elements

Page 13: [Basic HTML/CSS] 1. html - basic tags

h1~h6The HTML <h1>–<h6> elements represent six levels of section headings.

<h1> is the highest section level and <h6> is the lowest.

block

Page 14: [Basic HTML/CSS] 1. html - basic tags

divThe HTML <div> element is the generic container for flow content and

does not inherently represent anything.

block

★★★★★

Page 15: [Basic HTML/CSS] 1. html - basic tags

pThe HTML <p> element represents a paragraph of text.

block

Page 16: [Basic HTML/CSS] 1. html - basic tags

spanThe HTML <span> element is a generic inline container for phrasing

content, which does not inherently represent anything.

inline

Page 17: [Basic HTML/CSS] 1. html - basic tags

imgThe HTML <img> element represents an image in the document.

inline

Page 18: [Basic HTML/CSS] 1. html - basic tags

ex.

<img src="url" alt="simple description">

Page 19: [Basic HTML/CSS] 1. html - basic tags

aThe HTML <a> element (or anchor element) creates a hyperlink to other

web pages, files, locations within the same page, email addresses, or any other URL.

inline

Page 20: [Basic HTML/CSS] 1. html - basic tags

ex.

<a href="url" target="_blank"></a><a href="mailto:[email protected]"></a>

<a href="tel:821012345678"></a>

Page 21: [Basic HTML/CSS] 1. html - basic tags

strong & b● strong : The HTML <strong> element gives text strong importance,

and is typically displayed in bold.● bold : The HTML <b> element represents a span of text stylistically

different from normal text, without conveying any special importance or relevance, and that is typically rendered in boldface.

inline

Page 22: [Basic HTML/CSS] 1. html - basic tags

em & i● em : The HTML <em> element marks text that has stress emphasis.

The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis.

● i : The HTML <i> element represents a range of text that is set off from the normal text for some reason, for example, technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type.

inline

Page 23: [Basic HTML/CSS] 1. html - basic tags

Practice

Page 24: [Basic HTML/CSS] 1. html - basic tags
Page 25: [Basic HTML/CSS] 1. html - basic tags

<body><div id="wrap">

<div id="header"></div><div id="container"></div><div id="footer"></div>

</div></body>

Page 26: [Basic HTML/CSS] 1. html - basic tags

<div id="container"><div id="column_left"></div><div id="column_right"></div><div id="column_bottom"></div><div id="column_bn"></div>

</div>

Page 27: [Basic HTML/CSS] 1. html - basic tags

Tip

Page 28: [Basic HTML/CSS] 1. html - basic tags

html *** mdn

Page 29: [Basic HTML/CSS] 1. html - basic tags

Facebook / Twitter / Codepen

@zineeworld