HTML Paragraphs

HTML Paragraphs The HTML <p> element defines a paragraph: Example : <html> <body> <p>This is a paragraph.</p> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> </html> Output:   HTML Display You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the output […]

HTML Text & Font

HTML Fonts The font-family property defines the font to be used for an HTML element: Example : <html> <body> <h1 style=”font-family:verdana;”>This is a heading</h1> <p style=”font-family:courier;”>This is a paragraph.</p> </body> </html> Output :   HTML Text Size The font-size property defines the text size for an HTML element: Example : <html> <body> <h1 style=”font-size:300%;”>This is a heading</h1> <p style=”font-size:160%;”>This […]

HTML Styles & Colors

HTML Styles Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax:     Example : <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> Output : HTML Background Color The background-color property defines the background color for an HTML […]

HTML Basic

HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading: Example : <html> <body> <p>This is a my name paragraph.</p> <p>This is another my self paragraph.</p> </body> </html> Output: HTML Links HTML links are defined with the <a> tag: The link’s destination is specified in the href attribute. Attributes are used to […]

HTML Introduction

What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup HTML elements are the building blocks of HTML pages HTML elements are represented by tags HTML tags label pieces of content such as “heading”, “paragraph”, “table”, […]