32
loading...
This website collects cookies to deliver better user experience
// HTML tag :
<tagname>
// Opening tag :
<tagname>
// Closing tag :
</tagname>
// HTML Element :
<tagname> some content .. </tagname>
//Example
<br>
<!DOCTYPE html>
<html>
<head>
<title>Page's Title</title>
<link ..... >
<script>......</script>
</head>
<body>
.
.
.
.
</body>
</html>
<!DOCTYPE html>
tag defines that this document is an HTML5 document.<html>
element is the root element of an HTML page.<head>
element contains meta information about the HTML page.<title>
element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)<link>
element is an empty element, it contains only attributes. It defines the relationship between the current document and an external resource. It is used to link to external style sheets.<script>
element either contains scripting statements or points to an external script file through the src attribute. <body>
element defines the document's body. It is a container that contains all the required tags and information that need to be displayed on the web page.Heading Tags : <h1> to <h6>
There are 6 different heading tags.h1 tag has the largest font size whereas the h6 tag has the smallest.
Line Break Tag: <br>
It is used to insert a single line break (ie) it moves to the next line. It is an empty tag which means that it has no end tag.
Division Tag : <div> </div>
It defines a division or a section in an HTML document and any sort of content can be placed inside this tag.
Paragraph Tag : <p> </p>
It defines a paragraph. Plain text can be placed inside this tag.
Span Tag:<span> </span>
It is an inline container used to add inline styles without changing the structure of the document.
Horizontal Ruler Tag: <hr>
This tag is most often displayed as a horizontal rule that is used to separate content in a webpage.
Bold Element: <b> </b>
It makes the text in bold.
Emphasis Element: <em> </em>
It is used to emphasize the text and the content inside it is displayed in italic.
Code Snippet Element: <code> </code>
The code element is used to write code snippets. The content inside is displayed in the browser's default monospace font.
Abbreviation Element: <abbr> <abbr>
The abbr element is used to define an abbreviation or an acronym.
Italics Element: <i> </i>
The content inside this element is displayed in italic.
Strong Element: <strong> </strong>
It is used to define text with strong importance and the content inside is displayed in bold.
Mark Element : <mark> </mark>
The mark element is used to mark or highlight the text.
Subscript Element: <sub> </sub>
It is used to define subscript text and the content inside it appears half a character below the normal line. It can also be used for writing formulas.
Superscript Element: <sup> </sup>
It is used to define superscript text and the content inside it appears half a character above the normal line. It can also be used for writing footnotes.
Unordered List : <ul> </ul>
It is used to list the items in the unordered form (i.e.) the list items will be marked with bullets.It starts with the <ul>
tag and each list item inside this tag starts and ends with the<li>
tag.
Ordered List : <ol> </ol>
It is used to list the items in the ordered form (i.e.) the list items will be marked with numbers.It starts with the <ol>
tag and each list item inside this tag starts and ends with the <li>
tag.
List Item : <li> </li>
It defines a list item. It is used inside ordered and unordered lists.
Description List : <dl> </dl>
It is used to list the items along with their description. Description list uses <dt>
tag to define an item (also known as term) and <dd>
tag to define each term.
<dt> </dt>
Element :
It is used to define a term in a description list.
<dd> </dd>
Element:
It is used to describe a term in a description list.
Table : <table> </table>
It is used to define a table in HTML.
Column Heading : <th> </th>
This tag contains the heading information of a column. The content in the <th>
element is bold and centred.
Table Row : <tr> </tr>
It is used to define a row in a table.
Table Data : <td> </td>
It is used to write the data for a particular cell.
Caption Tag : <caption> </caption>
It is used to define a caption for a table.
Column Group : <colgroup> </colgroup>
It is used to group one or more columns in a table for formatting.
Column : <col>
It specifies column properties for each column in a table.
Table Head : <thead> </thead>
It is used to group header content in a table.
Table Body : <tbody> </tbody>
It is used to group the body content in a table.
Table Footer : <tfoot> </tfoot>
It is used to group footer content in a table.
32