HTML
HTML
1. (Attributes)- Attributes are used to add some more information about an html
tag.
2. <!DOCTYPE html>- is used to tells our browser to open a custom web-page for us
and also to tell it whether which type of version
of html we are using for this purpose.
3. (viewport)- means to show us our own custom web-page site.
4. <href>- href stands for Hypertext Reference. It is an attribute used in HTML <a>
(anchor) tags to specify the URL of the page.
5. Anchor tag is not an empty tag, it has both opening and closing tag.
6. Bold, italic and underline tags are used for highlighting text in html as
styling.
7. Linking is of two types, relative linking(linking diffrent webpages) and
absolute linking(linking diffrent websites).
8. In html, tags are of two types- semantic tags(tags whose meanings could be
classified just by looking at the name of the tag) and
non-semantic tags(tags whose meanings could not be classified just by
looking at the name of the tag).
9. An html page is divided into 3 most important sections, <header>, <main> and
<footer>.
10. Inside of main tag is another 3 different types of tags- <section>tag,
<article>tag and <aside>tag which are discussed in the {unique tags} sections.
{unique tags}-
1. (<pre> </pre>)- This type of tags are used to display text as it
is(without ignoring spaces and next line).
*This tag actually writes in such a way that the
text is as it is like a type-writer format style.
*This tag also lets us to format as like we want,
if we want to include 100 spaces then it would allow us
but other tags would not allow us this feature.
2. (<section> </section>)- It is used for dividing the main page into
different sections on your page.
3. (<article> </article>)- It is used for providing some information about
ourself, means something which is about personal and which
does not have much relation with the main
theme and content of the web-site.
4. (<aside> </aside>)- This tag is used for showing those content which
are aside(means- different and does not affect the main) from
the main content of the web-page.
5. (<span> </span>)- Span tag is also container like div used for other
HTML elements. It takes the required amount of space only.
*Span tag is a type of inline element.
6. (<form> </form>)- Forms are used to collect data from the user.
*(action) attribute is a type of special
attribute for forms. The definiton of theis attribute is explained
in the section- {unique
Attributes}.
7. (<input>)- It is a very unique tag whcih is used to take any input
inside of a form.
syntax---> <input type="text/numeric" placeholder="Enter
name">
6. {highlighting tags}-
~These are those types of tags which are used to highlight any content at
the web page. These are-
(<b> </b>)- This tag is used to show the content in a bold format.
(<u> </u>)- This tag is used to underline any content at the web
page.
(<i> </i>)- This tag is used to show any content at italics format.
*The above 3 tags are used only for highlighting purposes.
{unique Attributes}-
1. (target)- This attribiute is used in the anchor tag. It is used for
opening the linked page at a seperate tab at the wed-browser.
2. (style)- This tag is used in most of the tags like <p, hr, header-tags>
etc. Which is used for adjusting the space(gap) between
different contents. But this attribiute has some critarias.
This tag would work as desired, if there is no CSS styling
on that specific element's content. Other wise it would not
work.
3. (rel)- It stands for relative. It is used in tags like <image-tag>. This
tag is used for giving the name of the specific image(which is choosen to be given
a name)
so that we could understand that what is that image which
we have used if there is no internet or if the server is down.
4. (action)- Action attribute is used to define what action needs to be
performed when a form is submitted.
---> <form action="/action.php"> <!--this is just an
example-->
5. (placeholder)- This attribute is specially used in input tag. Its
lateral meaning in english is "something which occupies a space before
something other occupies that specific place".
6. (type)- This tag is also specially used in input tag. It is used for
defining the type of input that is being entered.
{unique points}-
(*). Proper layouts of the page must be maintained and in a properly
arranged format.
(*). semantic tags must be used and in a Proper way. This ability also
enhances the programmers's experience.
(*). (%) with the numeric value is used to set the width of a div
container.
(*). <display: flex;> results in the showcase of contant in horizontal
format and <display: block;> results in the showcase of
contant in vertical format. Flex arranges the content or
element side by side side and block shows the element or
content one after another on the web page.
(*). By default, at html, the aspect ratio of width and height is like
this-> {width * height}.
(*). Span tag would do its role only if it is not styled by css or any
other type of tags like header or highlighting tags.
But if the styling tags or highlighting tags are used outside the
span tag, then styling or highlighting of the content
would be done as well as span tag would full fill its role.
{special commands}-
* for formatting the code, press-> <ctrl + s + s>. In this editor, prettier
formatter is installed and default.
The way it would format the code is the original way of formatting of
any HTML code.
~The double tick sign shows that prettier formatter is acrivated in
the current code.
~The null sign (circle with a slash inside of it) shows that the
prettier formatter is not activated at the current code.