13.02.2018 Views

html_tutorial pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTML<br />

Chrome Firefox IE Opera Safari Android<br />

Yes Yes Yes Yes Yes Yes<br />

HTML div Tag<br />

Description<br />

The HTML tag is used for defining a section of your document. With the div tag, you<br />

can group large sections of HTML elements together and format them with CSS.<br />

The difference between the div tag and the span tag is that the div tag is used with blocklevel<br />

elements whilst the span tag is used with inline elements.<br />

Example<br />

<br />

<br />

<br />

HTML div Tag<br />

<br />

<br />

<br />

<br />

Welcome to our website. We provide <strong>tutorial</strong>s on various subjects.<br />

<br />

<br />

<br />

Here is the css file style2.css<br />

#contentinfo p {<br />

}<br />

line-height: 20px;<br />

margin: 30px;<br />

padding-bottom: 20px;<br />

text-align: justify;<br />

width: 140px;<br />

color: red;<br />

198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!