HTML Ppt New
HTML Ppt New
Sites to reference
https://www.tutorialrepublic.com/
https://www.w3schools.com/
HTML Elements Types
The most commonly used block-level elements are <div>, <p>, <h1> through <h6>, <form>,
<ol>, <ul>, <li>, and so on.
Whereas, the commonly used inline-level elements are <img>, <a>, <span>,
<strong>, <b>, <em>, <i>, <code>, <input>, <button>, etc.
Working with HTML Lists
HTML offers three ways for specifying lists of information. All lists
must contain one or more list
elements .The types of lists that can be used in HTML are :
ul : An unordered list. This will list items using plain bullets.
ol : An ordered list. This will use different schemes of numbers to list
your items.
dl : A definition list. This arranges your items in the same way as they
are arranged in a dictionary.
Example:
<!DOCTYPE html>
<html>
<body>
<ul>
<li>coffee</li>
<li>tea
<ul>
<li>black tea</li>
<li>green tea</li>
</ul>
</li>
<li>milk</li>
</ul>
</body>
</html>
HTML | Text Formatting
Making text Bold or Strong: We can make the text bold using
the <b> tag. The tag uses both opening and closing tag. The text that
needs to be made bold must be within <b> and </b> tag.
We can also use the <strong> tag to make the text strong, with added
semantic importance. It also opens with <strong> and ends with
</strong> tag.
Making text Italic or emphasize: The <i> tag is used to italicize the
text. It opens with <i> and ends with </i> tag.
The <em> tag is used to emphasize the text, with added semantic
importance. It opens with <em> and ends with </em> tag.
Text Formatting:
It is a connection from one web resource to another . A link has two ends ,An
anchor and direction. The link starts at the “source” anchor and points to the
“destination” anchor, which may be any Web resource such as an image, a
video clip, a sound bite, a program, an HTML document or an element within
an HTML document.
<a href=“ url link” >text link</a>
href : The href attribute is used to specify the destination
address of the link used.
Text link : The text link is the visible part of the link.
HTML | Tables
<tr><td colspan="3">table</td></tr>
<tr>
<th>sno</th>
<td rowspan="5">break</td>
<th>name</th>
<tr>
<td>1</td>
<td>ammu</td>
</tr>
</table>
HTML | <font> Tag
The font tag has basically three attributes which are given below:
Size
Face/Type
Color
font Size: This attribute is used to adjust the size of the text in the HTML
document using font tag with size attribute. The range of size of the font in HTML
is from 1 to 7 and the default size is 3.
Font Type: Font type can be set by using face attribute with font tag in HTML
document. But the fonts used by the user needs to be installed in the system first.
Font Color: Font color is used to set the text color using font tag with color
attribute in HTML document. Color can be specify either with its name or with its
hex code.
HTML Forms
<form>
<label for="username">Username:</label>
<input type="text" name="username" id="username">
</form>
Audio ang Video tags
HTML5 supports <video> and <audio> controls. The Flash, Silverlight and similar
technologies are used to play the multimedia items.
HTML audio tag is used to define sounds such as music and other audio clips. Currently
there are three supported file format for HTML 5 audio tag.1.Mp3 2.wav 3.ogg
Example: <audio controls autoplay loop>
<source src="koyal.mp3" type="audio/mpeg">
</audio>
HTML 5 supports <video> tag also. HTML video tag is used for streaming video files such as a movie
clip, song clip on the web page.
Currently, there are three video formats supported for HTML video tag:1.mp4 2.webM 3.ogg
Example: <video width="320" height="240" controls autoplay loop>
<source src="movie.mp4" type="video/mp4">
</video>
HTML Iframe
<p>When the target attribute of a link matches the name of an iframe, the link
will open in the iframe.</p>
marquee
The HTML DOM (Document Object Model) is an Object Model for HTML. It
defines:
HTML elements as objects
Properties for all HTML elements
Methods for all HTML elements
Events for all HTML elements
When a web page is loaded, the browser creates a Document Object Model of
the page. The HTML DOM model is constructed as a tree of Objects:
HTML DOM tree of Objects