HTML #2 HTML Basics

 

HTML Basics

As in part 1 of this blog we discussed about HTML if, you haven’t read that post then read it by clicking this link or you may not understand what I am talking about.

HTML #1 Introduction to HTML

As you know to write HTML in PC we need Notepad or Any Editor like that. If you are using mobile then don’t close this blog you can either download a HTML Editor App or Use our websites Online HTML Editor so keep learning.

So first open a text editor like notepad.



Save the notepad file as .htm or .html and remember, to edit the saved HTML document. Right click then open with notepad and then edit, save and open again.



Now you have created your first webpage lets open it. Select the file and open it in any web browser you have installed of your device for me it’s Mozilla Firefox, Microsoft Edge, and Google Chrome.



You will see a blank webpage with your file’s location as address bar because I have not purchased any web hosting and domain. 


Domain

Domain is nothing but when you buy web hosting you are given such a long name a default and you can’t change which make people to forget your websites name and never visit it that is not good, so there are domains available in this you can shorten the long link to small and remember able link like www.test1234.trialwebsite.com to www.test1234.com, but most of the times web hosting providers like GoDaddy provide free domain for a year that’s awesome. 


Let’s go back to the topic. 

Now you learnt how to create a simple webpage and gathered knowledge about Domains so, let’s move forward.


Now we will code few and easy line of HTML. HTML Webpage starts with 2 common codes which is <!DOCTYPE html> and <html>

<!DOCTYPE html> means this is a html file. <html> is main starting of every HTML document. 

<test> and </test> are both same? No<test> is starting tag as it doesn’t have any backslash / in it and </test> is closing tag. HTML document starts with <html> and ends with </html> and the main coding is in between these tags

HTML document also have 2 main parts head and body. Head contains Title, Images, Taglines, Paragraphs, etc… and Body includes the main content. Head and Body starts and ends like <test> </test>.


Input



Output




Post a Comment

0 Comments