HTML
HTML
class, style, src, id, href, alt, title, HTML <p> element defines a
lang, tabindex, role, contenteditable paragraph.
<p> This is a paragraph. < /p>
Here title is used to explain an The browser will automatically remove
element by hovering the mouse over any extra spaces and lines when the
it. page is displayed.
Eg: <p title=” this is a paragraph The <hr> tag defines a thematic break
tag”>Hello it’s me Vivek</p> in an HTML page, and is most often
displayed as a horizontal rule.
Summary: The <hr> element is used to separate
content (or define a change) in an
All HTML elements can HTML page.
have attributes
The href attribute <p>This is some text. </p>
of <a> specifies the URL of the <hr>
page the link goes to <h2>This is heading 2</h2>
The src attribute
of <img> specifies the path to The HTML <br> element defines a line
the image to be displayed break.
The width and height attributes
of <img> provide size <p>This is<br>a paragraph<br>with
information for images line breaks.</p>
The HTML <pre> element defines
preformatted text. < img src = “img_url” alt= “img_name”
>
The text inside a <pre> element is
displayed in a fixed-width font (usually
Courier), and it preserves both spaces A favicon is a small image displayed
and line breaks: next to the page title in the browser
tab. A favicon is a small image, so it
<pre> should be a simple image with high
My Bonnie lies over the ocean. contrast.
HTML Images
<footer>
<mark> Highlight Text
<small> Smaller Text
<del> Deleted Text
HTML Entities <ins> Inserted Text
<sub> Subscript Text
(Below)
Methods to display reserved character
like ‘<, > ’ ensuring correct rendering. <sup> Superscript Text
(Above)
&entity_name; or
&#entity_number;