IT Assignment-4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

HTML Basic Tags

➢ Elementary Tags:
• <html>: The <html> tag represents the root of an
HTML document. It is mandatory for every
document.
• <head>: The <head> element is a container for
metadata and is placed between the <html> tag
and the <body> tag.
• <tittle>: The tittle tag is an HTML code that allows
you to give a web page tittle.
• <body>: The <body> tag defines the documents
body.

<html>
<head>
<tittle> Grow Through what you go Through
</tittle>
</head>

<body> Who said BTech is ease </body>

</html>
➢ Mandatory Tags:
• <abbr>: The <abbr> tag defines an abbreviation or an
acronym, like “HTML”, “CSS”.
• <b>: The <b> tag specifies bold text without any extra
importance.
• <big>: The <big> HTML deprecated element renders
the enclosed text at a front size one level larger than
the surrounding text.
• <br>: The <br> tag inserts a single line break.

<html>
<head>
<tittle> Grow Through what you go Through
</tittle>
</head>
<body>
<abbr title="Go Through What You Go
Through">GTGT</abbr><br>
<b> hello world </b><br>
<big> hello world </big><br>
Who said BTech is ease
</body>
</html>

• <center>: The <center> tag in HTML is used to set


the alignment of text into the center.
• <code>: The <code> tag is used to define a piece
of computer code.
• <del>: The <del> tag defines text that has been
deleted from a document.
• <em>: The <em> tag is used to define
emphasized text.
<html>
<head>
<tittle> Grow Through what you want </tittle>
</head>
<body>
<br> <centre> do what you want </center> <br>
<code> do what you want </code> <br>
<del> hello world </del> <br>
<em> i wont do IT workshop assignment any more </em>
<br>
</body>
</html>

• <h1>: <h1> defines the most important heading.


• <h2>: An H2 tag marks the first sub-heading after
your document's main heading.
• <h3>: The H3 element defines a level-three
heading.
• <h4>: The HTML <h4> tag defines the fourth level
heading in the HTML document.
• <h5>: The HTML <h5> tag defines the fifth level
heading in the HTML document.
• <h6>: <h6> defines the least important heading.
<html>
<head>
<tittle> Grow Through what you want </tittle>
</head>
<body>
<h1> I wont do assignments any more </h1>
<h2> It is difficult to do assignment before exams </h2>
<h3> Stress is very high on us </h3>
<h4> Even though IIIT kottayam is a good college </h4>
<h5> It has lot of odds </h5>
<h6> But it is better than our class 12 </h6>
</body>
</html>

• <hr>:The <hr> tag defines a thematic break in an


HTML.
• <i>: The <i> tag defines a part of text in an alternate
voice or mood.
• <ins>: The <ins> tag defines a text that has been
inserted into a document. Browsers will usually
underline inserted text.
• <kbd>: The <kbd> tag is used to define keyboard
input.
• <label>: The <label> tag defines a label for several
elements.

<html>
<head>
<tittle> Grow Through what you want </tittle>
</head>
<body>
<hr> I wont do assignments any more </hr>
<i> It is difficult to do assignment before exams </i>
<ins> Stress is very high on us </ins>
<kbd> Even though IIIT kottayam is a good college
</kbd>
<label>
<input type="checkbox"> <input type="color"> <input
type="date"> </label>

</body>
</html>
• <mark>: The <mark> tag defines text that should
be marked or highlighted.
• <marquee>: The <marquee> tag in HTML is used
to create scrolling text or image in a web pages.
• <p>: The <p> tag defines a paragraph
• <pre>: The <pre> tag defines preformatted text.
• <s>: The <s> tag specifies text that is no longer
correct, accurate or relevant.
<html>
<head>
<tittle> Grow Through what you want </tittle>
</head>
<body>
<mark> I wont do assignments any more </mark>
<marquee> It is difficult to do assignment before exams
</marquee>
<p> Stress is very high on us </p>
<pre> Even though IIIT kottayam is a good college </pre>
<s> It has lot of odds </s>

</body>
</html>

• <strike>: The <s> HTML element renders text with


a strikethrough, or a line through it.
• <small>: The <small> tag defines smaller text (like
copyright and other side-comments).
• <strong>: The <strong>tag is used to define text
with strong importance.
• <sub>: The <sub> tag defines subscript text.
• <sup>: The <sup> tag defines superscript text.
• <u>: The <u> tag represents some text that is
unarticulated and styled differently from normal
text
• <time>: The <time> tag defines a specific time (or
datetime).
<html>
<head>
<tittle> Grow Through what you want </tittle>
</head>
<body>
<strike> I wont do assignments any more </strike>
<small> It is difficult to do assignment before exams </small>
<strong> Stress is very high on us </strong>
<sub> Even though IIIT kottayam is a good college </sub>
<sup> It has lot of odds </sup>
<u> Ofcourse it is better than our 12th college </u>
<br><time> 19:26 </time>
</body>
</html>

You might also like