html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
HTML Notes
HTML Notes
HTML Notes
It consists of essential elements that define the structure and content of the webpage.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
It known as Document Type Declaration that specifies the document type and version of HTML being used in the
code.
When you do not explicitly specify the HTML version in the DOCTYPE declaration, modern web browsers will
automatically assume that you are using the latest version of HTML.
If we not specify the Doctype declaration in HTML document or code then features of HTML5 may not work
properly, and your webpage may not support to the latest web standards , Webpage may display inconsistently across
different browsers, causing layout issues, unintended behaviour,
<html>
This is the root element of an HTML document. All the content of the web page is contained within this element. It
acts as the container for all the other HTML elements.
<head>
These Tag contains the metadata and other non-visible information about the HTML document, Inside the head tag.
It Mainly used for provides the information and instruction to web browser and search engines.
Common elements in the head tag title, meta, link, script, style, base, etc.
If we not write head tag not possible to provide essentials metadata to browser and search engines and not possible to
link the external files and no Title for the webpage.
<title>
It is a part of the <head> section of an HTML document and does not display any visible content on the actual
webpage.
Instead, the text inside the <title> tag appears in the browser's title bar or tab header when the page is opened.
Additionally, it is used as the default name for bookmarks when a user saves the page as a favourite or bookmark.
If you not write title tag it automatically take the file name as the titile.
<body>
It contains all the content that is visible on the webpage, such as text, images, videos, links, forms, and other HTML
elements.
It acts as a container for everything that users see and interact with on the webpage.
If you not mention body, you write the content your content is displayed on the browser but it not good approach it
leads to problems like lack of structure and there is no main content container to handles the content and no document
tree when the browser create the Dom tree based on the html structure with body tag it is not a proper Dom tree.
ELEMENTS:
Without HTML Elements or Tags we cannot create the structure when you write the paragraph without tags content is
displayed but browser don’t know it paragraph just display the simple plain text.
Without Elements or Tags we cannot create layout like, tables, list, buttons, form, etc.
HTML elements are case sensitive that mean you can create the tags with lowercase or uppercase.
Elements are divided into two types
Block Level Elements
Inline Elements
Block Level Elements:
Block level elements take the full width of the entire Container.
These elements are push next elements to start in the new line.
Block level elements are used to structure the layout of a webpage.
Example: <div>, <p>, <h1>, <table>
Inline Elements:
Inline elements take only the how much width is needed.
Inline elements do not create a new line in the webpage.
Inline elements are often used to style up the specific elements within the block level elements.
Example: <span>, <a>, <strong>, <em>, <img>, <br>
Tags:
Tags are used to define the elements and create the structure of the webpages
Tag are used to create the content and within the tags what type of content is write is displayed on the webpage.
Each Tag is different and if having their own Purpose and use.
Opening tag
Closing tag
Self-closing tag
Empty tag
Opening Tags:
These Tags are used to start an HTML element and define its beginning.
They are denoted by the element name within angle brackets (<,>)
Closing Tags:
They are similar to opening tags, but they include a forward slash (/) before the element name.
Some HTML elements do not require closing tags because they are self-contained and do not contain any content.
These elements are closed with a forward slash (/) immediately after the opening tag.
Attributes:
Attributes are used to modify the behaviour and appearance of the HTML Elements
Global attributes
Global attributes:
Global attributes are attributes that can be applied to nearly all HTML elements.
They are not specific to any particular element and can be used to modify the behaviour and appearance of a wide
range of elements.
class: Assigns one or more classes to an element for styling and grouping.
title: Provides additional information when the user hovers over the element.
dir: Specifies the text direction (left-to-right or right-to-left) of the element's content.
Element-Specific Attributes:
Element-specific attributes are attributes that are specific to certain HTML elements.
href (used in <a>): Specifies the URL that the link points to.
src (used in <img>): Specifies the source URL of an image.
alt (used in <img>): Provides alternative text for images, used when the image cannot be loaded or for accessibility.
width and height (used in <img>): Specify the width and height of an image, respectively.
type (used in <input>): Defines the type of input field, such as text, password, checkbox, etc.
Headings:
Heading is mainly used for the organize the content in the webpage example organize the information into different
sections and sub sections, so user can understand.
Heading used for Search engines they can understand the content better in the webpage. It Improve the page’s SEO
and rank the webpage.
Text Formatting:
Text formatting used to apply the styles and formatting to the text content in the webpage.
They tags helps improve better visual presentation of the text content and easy to read.
<strong>: Bold text. B and strong both are same but Strong make the text bold and it having more significance and
more useful for SEO so better use strong tag.
<em>: Emphasized text (also italicized) and It provides the more significance
<pre>: Preformatted text and used for display the content exactly what we want example triangle print so it appears
same. If not use then then it print differently.
<abbr>: Abbreviation and used provide the additional information of the text content and showing their full meaning
when user hover the content.
<cite>: Used for giving the credit to the particular text content and it displayed like italic for example when you write
a song then give the credit to the singer write his name in the cite tag it shows italic.
Colours:
Each parameter is defining the intensity of the colour with a value between 0 and 255.
For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value (255), and the other two (green
and blue) are set to 0.
Another example, rgb(0, 255, 0) is displayed as green, because green is set to its highest value (255), and the other two
(red and blue) are set to 0.
For example rgba (255, 99, 71, 0) it display the full colour with 0 opacity.
Hex Colours:
For example, #ff0000 it displayed as red because RR place red set to be highest value and other places they set to 00.
For example #00ff00 is displayed as green because it set highest value and other two red, blue are set to be 00.
HSL:
HSL stands for Hue, Saturation and Lightness.
Lightness describe how much light you want to give the colour, where 0% means no light, 50% means neither dark or
light and 100% means full lightness (white ).
Shades of Gray used it is defined by setting the hue and saturation to 0 and adjusting the lightness from 0 to 100%.
Links:
Attributes:
By default, the linked page will be displayed in the current browser window.
To change this, you must specify another target for the link.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: