Sree Sankar

HTML Basics

web

Hey, first you have to understand the things about tags are, most of the tags have attributes, and we are the one who define that, the attributes are like your own characters, think about you!

which type of hoooman are you?

You might have six pack or family pack, like rest of us (bad eating habits);

let's talk about the apples
What do you think about apples? there are different kind of apples, isn't it?

Green, Red, and Yellow (oh that's ripped one); like that some tags have also extra characters, that's called attributes, we can change these characters according to our wish!

We will discuss this later

Heading tags

<h6> hey this denotes h6
<h5> hey this denotes h5

<h4> hey this denotes h4

<h3> hey this denotes h3

<h2> hey this denotes h2

<h1> hey this denotes h1



<p>

I am paragraph.



<br />

I am a line breaker! I can break lines see n
ow I broke this line and remember this! I am a self-closing tag. If you're coding on HTML 5 then you don't have to self-close me (but do that anyway),
on other versions of HTML, I'll be a bitch to you if you don't close me!



<hr />

I can make horizontal line (rule)





Here formatting tags starts

1. first one is "<pre>"; short form of pre-formatted text; Sadly, nowadays stupid developer doesn't use me! see how talent I am!

        see                I can make space
        I can make line break
        even I can capture the font style that I written! 
        (only, if you don't add any font in your stylesheet)
        even I am good          at capturing font size also
        I am so versatile than all           the stupid tags
        but                      developers rarely only use me.
        Anyway, their lose!
    


2. second one is "<b>" tag; short form of bold; Sadly, nowadays stupid
developers don't use me! it is happening because of my family is
included in CSS properties
and one more thing is these developers use my brother rarely! the name is "<strong>".
and we are not block level tags.



bold and strong without line break

I AM BOLD I AM STRONG

bold and strong with line break

I AM BOLD
I AM STRONG

<code />

I am using for denoting CODE see I am so useful, only sometimes you have to use me; like very rarely

#include stdio.h #include conio.h

I am useful, isn't it? that doesn't mean you can write HTML code inside of me.
See, I know... Now you also thinking I am garbage piece of shit!
But you know? you can use HTML Entities for that! Okay, let's learn what is HTML entities.
Character entities are used to display reserved characters in HTML.
for eg symbol like "<", ">" and so on..
So, we can display these symbol by its code name. Remember you can display HTML entities by its name or number.


You have to use <pre> tag before <code> tag. otherwise, your code will be break down by the browser.


before <pre> tag

#include <stdio.h> int main() { printf("Hello Geeks"); }

after <pre> tag

          
              #include <stdio.h>
                int main() {
                    printf("Hello Geeks");
                }
          
      

<sub> Heyyyyy I Defines subscripted text Normally people use me for writing chemical/mathematical equations H20

<sup> Heyyyyy I Defines superscripted text Normally people use me for writing chemical/mathematical equations 22 = 4

Hey, I emphasize and I've a cousin his name is italics <i> but I'm better than italics

I am written by italics

I am <s> tag I am for striking through the middle of the text
I am <u> tag I do underlines :)