๐Ÿ”’ Closed [guide] basic html coding (basics)

Masakit po ba sa ulo ang Explanation?

  • Opo

    Votes: 0 0.0%
  • Hindi po

    Votes: 0 0.0%

  • Total voters
    0
  • Poll closed .
Status
Not open for further replies.

PseudoPro

Enthusiast
HTML stands for:
H - Hyper
T- Text
M- Markup
L - Language


Things to remember:
> HTML coding requires a little bit of memorization. You will need to understand and memorize Tags and attributes.
> In preparing to do a hands-n HTML coding, it is highly recommended to use Notepad ++ to see your mistakes faster.
> You will need to be patient. Take your time and don't tire yourself. Rest if you need it.


LET'S START THE LEARNING!
There are main things that we need to remember or consider when making an HTML code:

Tags
There are two types of tags:
1. Paired Tags
HTML:
 Examples are:
<html> and </html>
<body> and </body>
<p> and </p>
From the name itself, the tags are paired. If one is missing, the tag will be unreadable.

TAKE NOTE:
> The </(tag)> are what you call end tags.
> The <html> pair tag should always comes first as they are the utmost important tag.
> If the end tag is missing, it will not be readable

2. Unpaired Tags
HTML:
Examples are:
<br>
<hr>
<img src="url">
This is the opposite of the paired tags.

TAKE NOTE:
> Unpaired tags don't have end tags but you can add a backslash in these following Tags:
HTML:
 </br>
</hr>

These are useful and basic tags that we will use:
The Paragraph - <p>, </p>
The Heading - <h (1-6)>, </h (corresponding number>
- > Note that H1 is the most important heading while H6 is the least important Heading.
The HTML tag - <html>, </html>
- > These are inserted at the beginning of the notepad
The Body Tag - <body>, </body>
- > This is where you put the content of the web site
The Head tag - <head>, </head>
- > don't be confused with Head and Heading. Head tags are usually typed after the HTML tag. The use of this is to put the title of the website which can be found in the Tab of the browser.
The Title - <title>, </title>
- > The very title of the website that is located in the tab of the browser. Titles tags are inserted inside the Head tag.
The Break - <br>
- > How to use:
HTML:
<p> I like ponies.
I like trains </p>

Output:
I like ponies. I like trains
-> Browser doesn't read Enters. If you want to move a specific sentence in the next line, you can use Breaks.

<p> I like ponies.<br>
I like Trains </p>

Output:
I like ponies.
I like Trains.

The Horizontal Rule - <hr>
- > Much like The Break, horizontal rule adds a horizontal line in the web site.

Here is a sample HTML code:
HTML:
<html>
    <head>
        <title> Insert Title Here </title>
    </head>
<body>
    <h1> This is a Heading </h1>
    <p> This is a paragraph </p>
</body>
</html>

* Pwede po akong mag-add ng bagong topics kung gusto ninyo po. Pa feedback po kung naintindhan ninyo po ang pinag-type ko :) Salamat mga kaPHC!
 
Mhm, Thanks for sharing your knowledge paps to the community, I just hope makatulong rin ito sa iba. (Java next language paps pleaaase?) :)
 
pandagdag lang kung gusto niyo. two columns with 1 header and footer

HTML:
<!doctype html>

<!-- <div> stands for division (or section) -->
<html>
<head>
<title> PUT YOUR TITLE HERE </title>

<style type="text/css">
/* (dot) in html class */
/* (hash,pound) in html id */



body { background:#ccc; }
p { margin:0; font-family: calibri; }
#container {     margin:0 auto;    width:100%; }
#column_left { float:left; width:45%;}
#column_right { float:right; width:45%;}
.column_margin { border:1px solid #000;}
.column_margin_2 { margin:2px 0px;}
.clear { clear:both;}

</style>


</head>
<body>
<div id="container">
<div class="column_margin_2">
<div class="column_margin">
<!-- start-->
<h1 align="center"> HEADER </h1>

<!-- or <h1><center> TEXT HERE </center> </h1> -->



<!-- end -->
</div><!-- end of column_margin class -->
</div><!-- end of column_margin_2 class -->

<div id="column_left">
    
<h1> COLUMN LEFT </h1> <!-- you can change this part if you like -->

<div class="column_margin_2">
<div class="column_margin">
<!-- start-->   


<p>Content Left </p> <!-- put some html here -->



<!-- end -->
</div><!-- end of column_margin class -->
</div><!-- end of column_margin_2 class -->
</div> <!-- end of column_left id -->

<div id="column_right">

<h1> COLUMN RIGHT </h1> <!-- you can change this part if you like -->

<div class="column_margin">
<!-- start-->

<p> Content Right </p> <!-- put some html here -->

</div> <!-- end of column_margin class -->
</div> <!-- end of column_right id -->
<div class="clear"></div>

<div id="footer">
<div class="column_margin_2">
<div class="column_margin">
<!-- start-->

<h1 align="center"> FOOTER </h1> <!-- put some html here -->




<!-- end -->
</div> <!-- end of column_margin class -->
</div> <!-- end of column_margin_2 class -->
</div> <!-- end of footer id -->

</div> <!-- end of container -->
</body>
</html>
 
Status
Not open for further replies.

About this Thread

  • 18
    Replies
  • 1K
    Views
  • 18
    Participants
Last reply from:
cooldex

Online now

Members online
996
Guests online
767
Total visitors
1,763

Forum statistics

Threads
2,275,621
Posts
28,964,488
Members
1,231,885
Latest member
xbim101
Back
Top