html is fun. learn it. stop thinking about rocket league. ill tell some html tags on this page
many tags are used for writing. some are:
i am in a p tag
i am in another p tag
notice the new line in these two p tagsheading tags are, obviously, used for heading.
h1 tag:Disappointed because the tag with a bigger number is the smallest? I was, too, but now i ignore it. you should, too :D
The styling tags bi and u tags behave like span tags. like span tags, they dont start a new line either.
the div tag isnt used for writing, but rather they are used for containing stuff. div tags are used as containers: meaning they arent anything of their own.
in writing, the div tag behaves exactly like the p tag. but developers always use it as containers, since div is an abbreviation for division.
the point to note above was created using the div tag:
there is a chance that you dont know how to write a goddamn tag and are still reading all this (or maybe randomly jumped on this seciton?). anyway.
writing tags is easy. all you have to do is put a <, then the name of the tag, then >. This starts a tag. Like:
<span>
a span tag has opened
cool, now you know how to open tags. but what to do with it? like, you have a tag, what do you do with that tag? lick it?
absolutely yes- i mean no. when tags open, tags close too (mostly, unlike <br> tag). How to end a tag? Simple:
</span>
a span tag has been closed now
so what? what do you do with this? it doesnt produce any output :/
add some text in it:Congrats! Now you know how to write a tag!
A few of the, are:
Standalone tags have only one difference: they dont need to end like </span>. You type <br> only, and the tag does its job.
Simple. like really:
Did you try to add a new line using the enter key, but failed?
the reason: html ignores enters.
the solution: use br tag as demonstrated below
Simple:
the line break tag is written, but isnt visible because there was nothing in between, a better demonstration would be using it in between some text:
I amnotice the new line in between. even though this is a single span, the br tag was able to break the line.
the code behind is:
Probably the most interesting tag on the whole page: the img tag.
Syntax:where path is the full path of the image
the img tag can display an image from the internet or locally. Loading an image from the internet:
the code behind is:
if the image is in a folder, you need to give the folder name too like:
yes. its a tag. what does it do? you can create a link with it :D!
a tag is not a standalone tag, it needs to be ended. its syntax is:
where path is path of the page you want to link.
like the img tag, the a tag can also use local or online pages.
Attributes are the properties we give to tags, like the src attribute, or the href attribute. All tags can have attributes, but i have discussed related attributes only.