HTML Basics/Must Know
Tags
Structural !DOCTYPE html HTML tag Head tag Link tag Meta tag Title tag Body tag

Normal Tags Heading tags Paragraph tag Hr tag Br tag Div tag A tag Span tag Ul, Ol, Li tags (List Tags) B tag U tag I tag
Form Tags Form tag Input tag Button tag Textarea tag Select tag Option tag Optgroup tag Fieldset tag Label tag Output tag

CSS Basics/Must Know
Main CSS Classes/IDs CSS Syntax CSS Font Coloring


Javascript


PHP



Welcome!

This page is a breakdown of the<div> tag




TYPE: Tag.

WHERE: This tag is put inside of the body tag as content.

REQUIRED: No

VISIBLE: No

USE: To wrap code in any cerain thing. (Any attributes on the div will apply to any code inside of it)

SELF-CLOSING: No

CAN BE TARGETED IN CSS: Yes




<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<div>
<tag>Content</tag>
</div>
</body>
</html>



<div>



Default CSS Settings:

None.




Example:

<div style='color: red;'>
     <h1>Hello World!</h1>
</div>

<h2>Goodbye World!</h2>

Comes out as:

Hello World!

Goodbye World!


(See CSS Font Coloring)

www.000webhost.com