Q- How to run HTML programme?
1. Open
Notepad.
2. 2. Type the
HTML program as given below.
3. 3. Click
file->Save as
4. Select Desktop, type the file name as myfile.html and
select All files in Save as type box and Click on save. Your HTML file will be
save to desktop .
5. Double click on the file(as shown below) and your webpage
is ready for display.
WORKSHEET
Fill in the blanks with correct option
( <br>, <html>, header, .html, container, tag, title, body, empty , web programming )
1. Extension of a HTML file
is……………………
2. Predefined command in HTML is
knows as…………………
3. HTML is a ………………………language.
4. All HTML programs must
have………………tag the begging of program.
5. The ………………contains information
about the document that will not appear on the actual page.
6. The ………… tag must appear between
the head tags.
7. The ……………tags contain all the
information and other visible content on the page.
8. A ……….……………tag has an opening
and a closing end.
9. A…………………tag doesn't have a closing end.
10....................is an example
empty tag
IMPORTANT TAG
<b> or
<strong> - Bold text<i>
<em> - Italic text , Emphasized text<sub>
- Subscript text<sup>
- Superscript text<STYLE>
The <style> tag in HTML helps us to modify our text, viewed in the page. This modification includes changing font size, font family, font color etc. Not only the texts but also we can change the style of a body ar part of a page.
Syntax:
<tagname style="property:value;">
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <title> kv bsr</title> </head> <body style="background-color:cyan;"> <h1>THIS IS HEADING TAG</H1> <sorng><p style="color:red; background-color:blue;">KENDRIYA VIDYALAYA </P> </body> </html>
<html> <head> <title>KV WEBSITE</title> <body> <h1 style="color:blue;text-align:center"> KENDRIYA VIDYALAYA BULANDSHAHR </h1> <hr> <p> This school is CBSE Bord </p> </head> <html>
Unordered HTML List
An
unordered list starts with the <ul> tag. Each list item
starts with the <li> tag.
The list
items will be marked with bullets (small black circles) by default:
HTML Ordered List <ol>
The HTML ol tag is used for ordered list. We
can use ordered list to represent items either in numerical order format or
alphabetical order format.
<html>
<body>
<h2>An
unordered HTML list</h2>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<li>CLASS
8</li>
<li>CLASS
9</li>
<li>CLASS
10</li>
</body>
</html>
Table Tag
The <table>
tag defines an HTML table.
An HTML table consists of one <table>
element and one or more <tr>, <th>, and <td> elements.
The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
An HTML table may also include <caption>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.
<table border=1>
<tr>
<th>Employee Name</th>
<th>Employee Contact no.</th>
</tr>
<tr>
<td>Girish</td>
<td>Mohan</td>
</tr>
</table>
<table cellspacing="20">
Span tag
A <span> element which is used to color a part of a text: <p>My mother has <span style="color:blue">blue</span> eyes.</p>
HTML <form> Tag
The <form>
tag is used to create an HTML form for user input.
The <form>
element can contain one or more of the following form elements:
The
<input>
tag specifies an input field where the user can enter data..
The<input>
element can be displayed in several ways, depending on the type attribute.The different input types are as follows:
<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
(default value)<input type="time">
<input type="url">
<input type="week">
The <textarea>
tag defines a multi-line text input control.
The <textarea>
element is often used in a form, to collect user inputs like comments or reviews.
The size of a text area is specified by the <cols>
and <rows>
attributes (or with CSS).
<textarea id="w3review" name="w3review" rows="4" cols="50">
<button> tag
The <button>
tag defines a clickable button.
Inside a <button>
element you can put text (and tags like <i>
, <b>
, <strong>
, <br>
, <img>
, etc.). That is not possible with a button created with the <input>
element!
<button type="button">Click Me!</button>
<select> tag
The <select>
element is used to create a drop-down list.
The <select>
element is most often used in a form, to collect user input.
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<option> tag
The <option>
tag defines an option in a select list.
<option>
elements go inside a <select>, <optgroup>, or <datalist> element.
Note: The <option>
tag can be used without any attributes, but you usually need the value attribute, which indicates what is sent to the server on form submission.
<label for="cars">Choose a car:</label>
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
<label> tag
It defines a label for an input element.
- <input type="checkbox">
- <input type="color">
- <input type="date">
- <input type="datetime-local">
- <input type="email">
- <input type="file">
- <input type="month">
- <input type="number">
- <input type="password">
- <input type="radio">
- <input type="range">
- <input type="search">
- <input type="tel">
- <input type="text">
- <input type="time">
- <input type="url">
- <input type="week">
- <meter>
- <progress>
- <select>
- <textarea>
<input type="radio" id="html" name="fav_language" value="HTML">
<label for="html">HTML</label><br>
<input type="radio" id="css" name="fav_language" value="CSS">
<label for="css">CSS</label><br>
<input type="radio" id="javascript" name="fav_language" value="JavaScript">
<label for="javascript">JavaScript</label><br><br>
<input type="submit" value="Submit">
</form>
HTML PROGRAME USING ALL TAG
0 Comments