Category Archives: HTML

How to apply colors in HTML & CSS

HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values. Color Names In HTML, a color can be specified by using a color name: <html><body><h1 style=”background-color:Tomato;”>Tomato</h1><h1 style=”background-color: Orange;”>Orange</h1><h1 style=”background-color: DodgerBlue;”>DodgerBlue</h1><h1 style=”background-color: MediumSeaGreen;”>MediumSeaGreen</h1><h1 style=”background-color: Gray;”>Gray</h1><h1 style=”background-color: SlateBlue;”>SlateBlue</h1><h1 style=”background-color: Violet;”>Violet</h1><h1 style=”background-color: LightGray;”>LightGray</h1></body></html> Result: Background Color You can set the background… Read More »

How to apply Comment ?

You can add comments to your HTML source by using the following syntax:<!– Write your comments here –> Notice that there is an exclamation point (!) in the start tag, but not in the end tag. Add Comments With comments you can place notifications and reminders in your HTML code: Example <html><body><!– This is a… Read More »

HTML Quotation and Citation Elements

HTML <blockquote> for Quotations The HTML <blockquote> element defines a section that is quoted from another source. Browsers usually indent <blockquote> elements. Example <html><body><p>Browsers usually indent blockquote elements.</p><blockquote cite=”http://www.worldwildlife.org/who/index.html”>For 50 years, WWF has been protecting the future of nature.The world’s leading conservation organization,WWF works in 100 countries and is supported by1.2 million members in the United States andclose to 5… Read More »

HTML Text Formatting

HTML Formatting Elements Formatting elements were designed to display special types of text: <b> – Bold text <strong> – Important text <i> – Italic text <em> – Emphasized text <mark> – Marked text <small> – Smaller text <del> – Deleted text <ins> – Inserted text <sub> – Subscript text <sup> – Superscript text HTML <b> and <strong> Elements The HTML <b> element defines bold text, without any… Read More »

What is html Styles

The HTML style attribute is used to add styles to an element, such as color, font, size, and more. <html><body><p>I am normal</p><p style=”color:red;”>I am red</p><p style=”color:blue;”>I am blue </p><p style=”font-size:50px;”>I am big</p></body></html> Result: I am normal I am red I am blue I am big The HTML Style Attribute Setting the style of an HTML element, can… Read More »

HTML Paragraphs

A paragraph always starts on a new line, and is usually a block of text. 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. <html><body></p>This is a paragraph.</p><p>This is a paragraph.</p><p>This is a paragraph.</p></body></html> Result:… Read More »

HTML Headings

HTML headings are titles or subtitles that you want to display on a webpage. HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. <html><body><h1>Heading 1</h1><h2>Heading 2 </h2><h3>Heading 3 </h3><h4>Heading 4 </h4><h5>Heading 5 </h5><h6>Heading 6 </h6></body></html> Result: Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading… Read More »

HTML Attributes

HTML attributes provide additional information about HTML elements. HTML Attributes All HTML elements can have attributes Attributes provide additional information about elements Attributes are always specified in the start tag Attributes usually come in name/value pairs like: name=”value” The href Attribute The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to: Example <html><body><h2> The href… Read More »

HTML Basic

In this chapter we will show some basic HTML examples. Don’t worry if we use tags you have not learned about yet. HTML Documents All HTML documents must start with a document type declaration: <!DOCTYPE html>. The HTML document itself begins with <html> and ends with </html>. The visible part of the HTML document is between <body> and </body>. <!DOCTYPE html><html><body><h1>My First Heading</h1><p>My… Read More »

What is Hypertext Markup Language(HTML)?

HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML is the standard markup language for creating Web pages HTML describes the structure of a Web page HTML consists of a series of elements HTML elements tell the browser how to display the content HTML elements label… Read More »