DEV Community

Cover image for Html For Newbie Code.
Angwyn-Developer
Angwyn-Developer

Posted on • Edited on

Html For Newbie Code.

if you are new to coding, HTML is the right code for you. because html is very easy and suitable for beginners. first of all the application you need is a code editor, suitable code editor for html is notepad++ (for me, code editor is not necessarily the same, you can use: Notepad, Sublime, Atom, etc) if you want to use notepad++ go to this website : https://notepad-plus-plus.org/downloads/

OK.if you already download the Code Editor, Open the code editor, and Click File > New Or "Ctrl + N" And Save or Save As, Then rename it "index.html" ,so the text file can be a html file, after that u can type your first code :)

<html>
<head>

</head>
<body>

</body>
</html>

<html> element to know that the file is html, this element must be on the first line.

<head> element for the title element, the title element is useful for changing the name of your website website

Example:

<html>
<head>
<title>This Is TITLE.</title>
</head>
<body>

</body>
</html>

if you write the code correctly then the browser title is "This is TITLE".

Header
the header element is useful for displaying jumbo/large letters, the header element has many font sizes, there are <h1>, <h2>, <h3>, to <h6>

Code:

<html>
<head>
<title>Header Tutorial</title>
</head>
<body>
<h1>This is Header 1 </h1>
</body>
</html>

if you typed the code correctly then the result is like this...

Alt Text

To be continued...
See you in part 2...
Sorry for short articles because im litlle bit lazy, in part 2 maybe its gonna be longgggg..... :)

Top comments (0)