You are on page 1of 6

HTML STRUCTURE

<!DOCTYPE>: Defines the document type <html></html> : Defines the root of an HTML document <head></head> : Defines information about the document <title></title> : Defines a title for the document <body></body> : Defines the documents body

<!DOCTYPE html> <html> <head></head> <body></body> </html>

HEADING - <h1 h6></h1 /h6>: Defines a header

<h1> D-Code </h1>


<h2> <h3> <h4> <h5> D-Code D-Code D-Code D-Code </h2> </h3> </h4> </h5>

<h6> D-Code </h6>

HTML TAGS
<p></p> : Defines a paragraph

<p> Coders!</p>
<span></span>: To style a part of a text

<p>Hello, are you ready<span style="color:red">Coders?</span> </p>

<div></div>: Defines a division

<div> <p>Hello</p> <p>I love D-code camp</p> <p>Its fun</p> </div>


<strong></strong>: Defines important text

<p><strong>Hello</strong></p>

<em></em>: To emphasized text

<p><em>Hello</em></p>

<ol></ol>: Defines an ordered list <ul></ul>: Defines unordered list <li></li>: Defines a list item

<ol> <li>i like to eat</li> <li>i love eating</li> <li>eat for live</li> </ol>

<ul> <li> coding </li> <li> web </li> <li> blog </li> </ul>

<a></a>: Define a hyperlink <href>: Specifies URL of the page where the link goes to

<a href = www.fb.com> </a>

<img>: Defines an image <src>: Defines a source <rel>: Specifies relationship between the current document and the linked document <link>: Define a relationship between document an external resource

<img src = pic.jpg/>

<table></table>: Defines a table <thead></thead>: Groups the header content in a table <th></th>: Defines a table header <tr></tr>: Defines a table row <td></td>: Defines a table data

<table> <tr> <td>Row 1, Column 1</td> <td> Row 1, Column 2</td> </tr> <tr> <td> Row 2, Column 1</td> <td> Row 2, Column 2</td> </tr> </table>

px: pixel <!---->:Defines a comment in HTML //: Define a single line of comment in CSS /* */:Defines multi-line comment in CSS #:Defines a single line of comment in Python :Defines multi-line comments in Python

You might also like