Sinisterly
Understanding HTML Part 2 - Elements - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: Understanding HTML Part 2 - Elements (/Thread-Understanding-HTML-Part-2-Elements)



Understanding HTML Part 2 - Elements - Anonymous - 11-25-2012

Hello everyone and I'm back to talk more about HTML coding! For our next step, I decided that we should learn more about Elements.

Lets take a look at what makes an Element.
Ex:
Code:
<p> Text will show here in this certain element (just like a notepad when you type in it). </p>

So we have
An opeing tag- <p>
Our Content -The text we want to see.
And a closing tag - </p>

Now Lets look at just making a simple web page.

Code:
<html> <p> This is simple coding.</p> </html>

Now you might be asking, what does the html element do?
The html element holds our smaller elements and help keep them neatly in place.
So lets open up Notepad and type in the code above.
Once you have the code typed in to Notepad, save it as index.html somewhere easy to find.
Run the index.html and you will notice it opens a webpage on your browser with the word we typed in the paragraph element (hints the <p> tag.)

Here are a few tags for you to play with in Notepad.
Ex:
<h1> - header tag
<title> - title tag
<h2> - Just another header tag (they can keep going like this.

If don't want to use Notepad, there are tons of editors out there just google it, as well as a list of html tags. (Usually you will find a site that explains how to use tags.)
Enjoy!


RE: Understanding HTML Part 2 - Elements - wen372 - 11-25-2012

Nice job, and for and you can use notepad ++ to have use edit it.


RE: Understanding HTML Part 2 - Elements - Anonymous - 11-25-2012

Yeah, I was going to mention a few but decided to just tell them to google it and pick the one they like best. =)


RE: Understanding HTML Part 2 - Elements - wen372 - 11-26-2012

Thats a good idea, but you should post the ones you like also.


RE: Understanding HTML Part 2 - Elements - Anonymous - 11-26-2012

I know , its just I need to understand these other wise hacking can be diffcult.