Monday, September 16, 2019
Home > HTML example

HTML Example Part-3(July-2019)

HTML Images 1-An image <!DOCTYPE html> <html> <body> <h2>Italian Trulli</h2> <img src="pic_trulli.jpg" alt="Italian Trullti" style="width:100%"> </body> </html> 2-An image height and width using attributes   <!DOCTYPE html> <html> <body> <h2>Image Size</h2> <p>In this example, we specify the width and height of an image with the width and height attributes:</p> <img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600"> </body> </html> 3-An image height and width using CSS <!DOCTYPE html> <html> <body> <h2>Image Size</h2> <p>Use the

Read More

HTML Example Part-2(July 2019)

HTML Quotations and Citations 1-Formatting short quotations with the <q> element. <!DOCTYPE html> <html> <body> <p>Browsers usually insert quotation marks around the q element.</p> <p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q></p> </body> </html> 2-Formatting quoted sections with the <blockquote> element. <!DOCTYPE html> <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

Read More

HTML Example Part-1(July 2019)

HTML Basic example 1- HTML document <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> 2- HTML headings <!DOCTYPE html> <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> 3-html paragraphs <!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html> 4-html links <!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html> 5-html images <!DOCTYPE html> <html> <body> <h2>HTML Images</h2> <p>HTML

Read More