-
Structure
HTML Boilerplate:This is the Basic HTML Boilerplate Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> </body> </html>
-
Headings:
There are six headings available in HTML, H1 is the largest among all, and H6 is the smallest.
<h1> Tag
- <p> tag
This is a paragraph
- <b>tag
Inserts a single line break
- Container
Container tags are the tags that contain some data such as text, image, etc. There are several container tags in HTML
<div> Tag
- span tag
span is a container for inline content
<span> Tag
- pre tag
Pre tag represents pre-formatted text
<pre> Tag
- code tag
code tag is used to represent source codes
<code> Tag
-
Text Formatting
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> Tag
-
List
Lists can be either numerical, alphabetic, bullet, or other symbols. You can specify list type and list items in HTML for the clean document..
<ol> Tag
<h2> Tag<h1> Heading 1 </h1>
<h3> Tag<h2> Heading 2 </h2>
<h4> Tag<h3> Heading 3 </h3>
<h5> Tag<h4> Heading 4 </h4>
<h6> Tag<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
<p> Paragraph </p1>
<b> Paragraph </b>
<div> This is div block </div>
<span> This is div block </span>
<pre> Hello World </pre>
<code> import python </code>
<strong> Tag<b> I'm bold text </b>
<i> Tag<strong> I'm important textlt </strong>
<em> Tag<i> I'm italic text </i>
<subtitle> Tag<em> Emphasized text </em>
<sup> Tag<subtitle> subtitlescript </subtitle>
<sup> Superscript </sup>
Ordered list starts with tag and each list item starts with
<ol>
<li>Data 1</li>
<li>Data 2</li>
<li>Data 3</li>
</ol>
<ul> Tag
Ordered list starts with tag and each list item starts with
<ul>
<li>Data 1</li>
<li>Data 2</li>
<li>Data 3</li>
</ul>