Posts

HTML Style

HTML Style Attribute Setting the style of an HTML element, can be done with the  style  attributes. <body style="property: value;"> Background Color The CSS  background-color  property defines the background color for an HTML element. < body  style ="background-color:powderblue;" > <h1>this is a heading</h1> < p > This is a paragraph. < /p > < /body > Text  Color The CSS  color  property defines the text color for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="color:blue;">This is a heading</h1> <p style="color:red;">This is a paragraph.</p> </body> </html>         Fonts The CSS  font-family  property defines the font to be used for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="font-family:verdana;">This is a heading</h1> ...

HTML ATTRIBUTES

HTML Attributes * All HTML elements can have attributes * Attributes provide additional information about an element * Attributes are always specified in the start tag * Attributes usually come in name/value pairs like: name="value" Href Attribute HTML links are defined with the <a> tag. The link address is specified in the href attribute: Example <!DOCTYPE html> <html> <body> <p>HTML links are defined with the a tag. The link address is specified in the href attribute:</p> <a href="https://www.htmlnotes12.blogspot.com">This is a link</a> </body> </html> Src Attribute HTML images are defined with the <img> tag. The filename of the image source is specified in the src attribute: Example <!DOCTYPE html> <html> <body> <p>HTML images are defined with the img tag, and the filename of the image so...

HTML Basic

                     HTML Document सभी HTML दस्तावेज़ों को एक दस्तावेज़ प्रकार की घोषणा के साथ शुरू करना चाहिए: <! DOCTYPE html>। HTML दस्तावेज़ स्वयं <html> से शुरू होता है और </ html> से समाप्त होता है। HTML दस्तावेज़ का दृश्य भाग <body> और </ body> के बीच है। Example-                  < !DOCTYPE  html > < html > < body > < h1 > My First Heading < /h1 > < p > My first paragraph. < /p > < /body > < /html>               HTML Heading HTML heading को <h1> से <h6> टैग के साथ परिभाषित किया गया है। <h1> सबसे महत्वपूर्ण heading को परिभाषित करता है। <h6> कम से कम महत्वपूर्ण शीर्षक को परिभाषित करता है: Example- !DOCTYPE  html > < html > < body > < h1 > This is heading 1 < /h1 > ...

INTRODUCTION OF HTML

                    INTRODUCTION OF HTML HTML  stands for Hyper Text Markup Language. It is used to design web pages using markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages. Markup language is used to define the text document within tag which defines the structure of web pages. HTML Version Year HTML 1.0 1991 HTML 2.0 1995 HTML 3.2 1997 HTML 4.01 1999 XHTML 2000 HTML 5 2014                    A Simple HTML Document   Example < !DOCTYPE  html > < html > < head > < title > Page Title < /title > < /head > < body > < h1 > Heading < /h1 > < p >P aragraph. < /p > < /body > < /html > Explained The  <!DOCTYPE html>  declaration defines this document to be HTML5 The...