Information Technology/HTML5

[HTML5] 02. Training for Tagging DIV functions

Patrick Moon 2019. 8. 18. 21:59

Execute Visual Studio Tag

New file in Visual Studio Code

Save as another name in there.

 

1. Basic Code

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <div>
        1
    </div>
    <div>
        2
    </div>
    <div>
        3
    </div>
</body>
</html>

 

2. Example

2-1. Input

2-2. Output

Printed like this on Web

3-1. Input

3-2. Output

 

4. FUNCTION OF TAGGING "DIV"

DIV STRUCTURE IN HTML5

※HTML commands must be decoded from top to bottom. Also, if the line is the same, the command is executed from left to right.