The document contains instructions on how to create basic HTML pages. It explains how to start a new HTML file in VS Code, save it, add different HTML elements like headers, set the page background color, and format text as bold, italic, and underlined. Sample code is provided for each task like creating a basic page with title and paragraph, using different header levels, and presenting body color with hexadecimal code.
The document contains instructions on how to create basic HTML pages. It explains how to start a new HTML file in VS Code, save it, add different HTML elements like headers, set the page background color, and format text as bold, italic, and underlined. Sample code is provided for each task like creating a basic page with title and paragraph, using different header levels, and presenting body color with hexadecimal code.
The document contains instructions on how to create basic HTML pages. It explains how to start a new HTML file in VS Code, save it, add different HTML elements like headers, set the page background color, and format text as bold, italic, and underlined. Sample code is provided for each task like creating a basic page with title and paragraph, using different header levels, and presenting body color with hexadecimal code.
Ans. Open VS Code. Click on “File” menu. Click on “New Text File” Click on “Select a language” Select “HTML”. Q. How to save html file? Ans. Click on “File” menu. Click on “Save As” Browse the folder. Type the name of the file with “.html” extension [example name.html] Click on “Save” button. Q. Write an HTML program to create a basic page. Ans. <html> <head> <title>Title of the Page</title> </head> <body> Welcome to my first page. This is the body of the page. </body> </html> …………………………………….. Q. Write an HTML program to create different header. Ans. <html> <head> <title>Header Type</title> </head> <body> <h1>This is header 1</h1> <h2>This is header 1</h2> <h3>This is header 1</h3> <h4>This is header 1</h4> <h5>This is header 1</h5> <h6>This is header 1</h6> </body> </html> ……………………………………. Q. Write an HTML program to present body colour. Ans. <html> <head> <title>Body Colour</title> </head> <body bgcolor="#f6a421"> <p>This page have background colour which is using hexadecimal colour code.</p> <br> <p>The colour code follows #RRGGBB format which is also known as RGB format. R for Red, G for Green and B for blue.</p> <hr> <p>p tag is used for paragraph tag, br tag is used for break tag and hr tag is used for horizontal rule.</p> </body> </html>. ………………………………………………… Q. Write an HTML program to present bold, italic, underline statements. Ans. <html> <head> <title>Bold Italic Underline</title> </head> <body> <b>This Statement will be shown in Bold</b> <i>This Statement will be shown in Italic</i> <u>This Statement will be shown in Underlined</u> </body> </html>