0% found this document useful (0 votes)
5 views9 pages

HTML Headings Colors

Color of htm heading .a way that deal with coloring html heading.

Uploaded by

Nazeer Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views9 pages

HTML Headings Colors

Color of htm heading .a way that deal with coloring html heading.

Uploaded by

Nazeer Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.


It is important to use headings to show the document
structure.
<h1> defines the most important heading.
<h6> defines the least important heading.
HTML Paragraphs
The HTML <p> element defines a paragraph.

A paragraph always starts on a new line, and browsers


automatically add some white space (a margin) before and after a
paragraph.

Example <p>This is a paragraph.</p>

<p> <p>
This paragraph This paragraph
contains a lot of lines contains a lot of spaces
in the source code, in the source code,
but the browser but the browser
ignores it. ignores it.
</p> </p>
Background Color

The CSS background-color property defines the


background color for an HTML element.
Example
Set the background color for a page to powder blue:
<body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
HTML Colors HTML supports 140 standard color names.
Example

<h1 style="color:Tomato;">Hello World</h1>


<p style="color:DodgerBlue;">Lorem ipsum...</p>
<p style="color:MediumSeaGreen;">Ut wisi enim...</p>
Example

<h1 style="border:2px solid Tomato;">Hello World</h1>


<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>
HTML <b> element
The HTML <b> element defines bold text,
without any extra importance.

Example
<b>This text is bold</b>

HTML <i> Elements

The <i> tag is often used to indicate a technical term, italic


Example
<i>This text is italic</i>
HTML Links – Hyperlinks

HTML links are hyperlinks.


You can click on a link and jump to another document.
the HTML <a> tag defines a hyperlink. It has the following syntax:

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

Example
This example shows how to create a link to W3Schools.com:

<a href="https://www.w3schools.com/">Visit
W3Schools.com!</a>
Link to an Email Address

Use mailto: inside the href attribute to create a link


that opens the user's email program
(to let them send a new email):

Example

<a href="mailto:[email protected]">Send email</a>

You might also like