HTML (Hypertext Markup Language) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables.
Headings
There are six headings available in HTML, H1
is the largest among all, and H6 is the smallest.
h1 Tag
<h1> This is h1 Heading </h1> |
<h2>
This is h2 Heading </h2> |
<h3>
This is h3 Heading </h3> |
<h4>
This is h4 Heading </h4> |
<h5>
This is h5 Heading </h5> |
<h6>
This is h6 Heading </h6> |
Container tags are the tags that contain
some data such as text, image, etc. There are several container tags in HTML.
div tag or division tag is used to make blocks or divisions in the document.
<div>
This is div block </div> |
span is a container for inline content
<span>
This is span block </ span> |
Paragraph
<p>
This is a Paragraph </p> |
pre tag represents pre-formatted text
<pre>
space tag
</pre> |
Text formatting tags are used to format text
or data of HTML documents. You can do certain things like creating italic,
bold, strong text to make your document look more attractive and
understandable.
<b>
bold text </b> |
<i>
italic text </i> |
<U> tag
<u>
Underline text</u> |
<em>
Emphasized text</em> |
<sub>
subscript </sub> |
<sup>
suberscript </sup> |
Lists can be either numerical, alphabetic,
bullet, or other symbols. You can specify list type and list items in HTML for
the clean document.
Ordered list
starts with <ol> tag and each list item start with <li> tag
<ol>
<li>
list item 1 </li> <li>
list item 2 </li> <li>
list item 3 </li> </ol> |
Unordered list starts with <ul> tag and each list item start with <li> tag
<ul>
<li> list
item 1 </li>
<li> list
item 2 </li> </ul> |
Links are clickable text that can redirect
you to some other page.
<a> or anchor tag defines a hyperlink.
<u> Underline text</u> |
Media is anything that is present in digital
form such as image, video, audio, etc.
It is used to embed sound content in the
documen.
<audio controls>
<source src =” audio.mp3” > </audio> |
It is used to embed or import image in a
webpage.
<img src =” image/mishu.jpg” alt= “text” > |
It is used to embed video in the webpage.
<video
controls>
<source src =” video.mp3” > </video> |
A table is a collection of rows and columns.
It is used to represent data in tabular form
Table Structure
<table border="2" > <h1>This is table</h1>
<caption>Demo Table</caption> <tr bgcolor="pink"> <th>Name </th> <th> Age </th><th> Roll No </th> <th>class</th> </tr> <tr> <td>Musharaf ali</td><td>21 </td><td>5074 </td> <td>BSSE</td> </tr> <tr> <td>Shayan Ashraf</td><td>21 </td><td>5044 </td> <td>BSSE</td> </tr> <tr> <td>Usama Raiz</td><td> 16 </td><td>5050 </td> <td>BSSE</td> </tr> <tr> <td>Muzzamal Razzaq</td><td>25 </td><td>5075 </td> <td>BSSE</td> </tr> </table>
|
_____________________________________________________
Tags Define
1 Comments
Amazing Cheet Sheet
ReplyDeleteThanks for Supporting me