Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
29 views2 pages

HTML Tags

The document defines and describes common HTML tags such as <!DOCTYPE>, <html>, <head>, <title>, <body>, <h1>, <p>, <br>, <center>, <marquee>, font tags, image tags, and hyperlinks. It provides details on how each tag is used and what purpose it serves in an HTML document.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

HTML Tags

The document defines and describes common HTML tags such as <!DOCTYPE>, <html>, <head>, <title>, <body>, <h1>, <p>, <br>, <center>, <marquee>, font tags, image tags, and hyperlinks. It provides details on how each tag is used and what purpose it serves in an HTML document.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML tags

<!DOCTYPE html>: All HTML documents must start with a <!


DOCTYPE> declaration. The declaration is not an HTML tag. It is
an "information" to the browser about what document type to
expect.

To add a background color


<body style="background-color:grey">

<html> </html>It is the root of the html document which is used to


specify that the document is html. All other code is placed between
the opening and closing of this tag.

<head> </head> This tag contains all the metadata and this data
is related to the document and is not displayed on the actual
webpage.

<title> </title> defines a title in the browser toolbar.

The <body> tag defines the document's body. The <body> element
contains all the contents of an HTML document, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc

<h1> </h1> Any document starts with a heading. You can use
different sizes for your headings. HTML also has six levels of
headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>,
and <h6>. While displaying any heading, browser adds one line
before and one line after that heading.

<p> </p> The <p> tag offers a way to structure your text into
different paragraphs. Each paragraph of text should go in between
an opening <p> and a closing </p> tag

<br> Whenever you use the <br /> element, anything following it
starts from the next line.

<center> </center> You can use <center> tag to put any content in
the center of the page
The HTML <marquee> tag defines a scrolling text area in the HTML
document that moves across the page in a horizontal or vertical
direction. By default, text found within the <marquee> tag will
scroll from right to left.

Font tag: It is used to specify the font size, font color and font
family in html document. E.g. <font face="Times New
Roman">Example</font>

Image tag <img src="gfg.jpg">

Hyperlinks The HTML <a> tag defines a hyperlink. <a


href="url">link text</a>

You might also like