HTML PDF
HTML PDF
It allows you to specify where the heading appears on screen. ➢ <em> tag (emphasis) Q. Write HTML code to display your personal information such as name, address, contact <li>speaker
There are four alignments left, center, right and justify. It is used to display data in italic format. number, date of birth and e-mail address. </ul>
Eg:- <h5 align=”left”>computer science</h5> The data enclosed within starting tag <em> and ending tag </em>. <html> O/P:-
O/P:- Computer Science Eg:- <em>computer science</em> <head> • monitor
O/P:- <title>title</title> • printer
computer science
</head> • speaker
➢ <b> tag (bold) <body>
It is used to display data in bold format. ➢ <sub> tag (subscript) <p> • Attribute
The data enclosed within starting tag <b> and ending tag </b>. It is used to display data in subscript format. <h1>Personal Information</h1> 1. type:-
Eg:- <b>computer science</b> The data enclosed within starting tag <sub> and ending tag </sub>. <hr> It allows you to specify type of bullet.
O/P:- Eg:- H<sub>2</sub>O <b>Name: Utkarsh Jadahv</b><br> There are three types of bullet disc (•), circle (°) and square (∎).
computer science
O/P:- <b>Address: <i>Aurangabad</i></b><br> Eg:- <ul type=”circle”>
H2O
<b>Contact No.: <u>8080808080</u><br> <li>monitor
➢ <i> tag (italic) <big>Date of Birth:</big><small>21 April</small> <li>printer
It is used to display data in italic format. ➢ <sup> tag (superscript) <pre>[email protected]</pre> <li>speaker
The data enclosed within starting tag <i> and ending tag </i>. It is used to display data in super script format. </p> </ul>
Eg:- <i>computer science</i> The data enclosed within starting tag <sup> and ending tag </sup>. </body> O/P:-
O/P:- Eg:- X<sup>2</sup> </html> o monitor
computer science o printer
O/P:- 2
X o speaker
O/P:-
➢ <u> tag (underline)
It is used to display underline with data. ➢ <big> tag (big)
Personal Information
The data enclosed within starting tag <u> and ending tag </u>. It is used to display data in larger font. • Attribute of <li> tag with unordered list.
Eg:- <u>computer science</u> The font size is same as +1 font size. 1. type:-
Name: Utkarsh Jadahv
O/P:- The data enclosed within starting tag <big> and ending tag </big> It allows you to specify type of bullet.
computer science Address: Aurangabad
Eg:- <big>computer science</big> Contact No.: 8080808080 There are three types of bullet disc (•), circle (°) and square (∎).
O/P:- Eg:- <ul>
➢ <address> tag (address) computer science Date of Birth:21 April
<li>monitor
[email protected]
It is used to display web page information such as page URL(uniform resource locator). <li type=”circle”>printer
The data enclosed within starting tag <address> and ending tag </address>. ➢ <small> tag (small) <li>speaker
Eg:- <address>www.facebook.com</address> It is used to display data in smaller font. </ul>
O/P:- The font size is same as -1 font size. O/P:-
www.facebook.com ➢ List tags • monitor
The data enclosed within starting tag <small> and ending tag </small>.
Eg:- <small>computer science</small> There are three types of list in html. o printer
➢ <pre> tag (preformatted text) O/P:- computer science 1. Unordered list • speaker
It is used to display data in monospace form. 2. Ordered list
The data enclosed within starting tag <pre> and ending tag </pre>. 3. Definition list
Eg:- <pre> computer science</pre> ➢ <strike> tag or <s> tag (strike) 2. Ordered list (<ol> tag)
O/P:- It is used to draw line through middle of the data. 1. Unordered list (<ul> tag)
computer science It uses alphanumeric numbers to display list.
The data enclosed within starting tag <strike> and ending tag </strike>. It uses bullets to display list.
List can be preceded by numbers, Arabic numbers, upper or lower case Roman
Eg:- <strike>computer science</strike> Lists can be preceded by one of the several bullet styles like a closed circle (•), open
numbers, or upper or lower case alphabets.
➢ <strong> tag (strong) O/P:- circle (°) or square (∎).
It having starting tag <ol> and ending tag </ol>
computer science It having starting tag <ul> and ending tag </ul>
It is used to display data in bold format. Eg:- <ol>
The data enclosed within starting tag < strong > and ending tag </strong>. Eg:- <ul>
<li>monitor
Eg:- <strong>computer science</strong> <li>monitor
<li>printer
O/P:- <li>printer
computer science