Computer Science

| HTML/CSS |

What is HTML? What is CSS?

All of this fancy wording may seem like it is some sort of hack.

ACTUALLY

HTML and CSS are actually what made this website possible!



HTML

HTML coding is just to start on the basics, or you could call it the skeleton. The HTML code without any CSS code just has a white background with a standard font and everything all dull.

Here is an example of an HTML website without any CSS added:

Welcome to my website!

This website is about hacking!

Do you know anything about hacking?

hax

Here is the HTML code that made this:


<p><center>Welcome to my website!</center></p>

<p> This website is about hacking!</p>

<p>Do <strong> you </strong> know anything about hacking?</p>

<center><img src="pictures/hacking.gif" alt="hax" width="300"></center></p>

                


HTML Example Code Breakdown

                            
<p><center>Welcome to my website!</center></p>

<p> This website is about hacking!</p>
                            
                        

The HTML command " < p> < /p>" is the paragraph command. This command is standard for most text.




                            
                                
<p><center>Welcome to my website!</center></p>
                            
                        

The " < center> < /center>" command, centers the text.




                            
<center><img src="pictures/hacking.gif" alt="hax" width="300"></center></p>
                            
                        

The " < img>" command puts in an image. The "src" part is where the picture comes from. In this case the picture comes from the file pictures on this server and is named "hacking.gif". The "alt" part shows the alternative name of the image if it somehow doesn't load in. You can also adjust the width and height of the image, and if you adjust one, then it will auto-resize to be of the original ratio. Those commands are "width" and "height".

                            
<p>Do <strong> you </strong> know anything about hacking?</p>
                            
                        

The " < strong> < /strong>" command makes the text in that command stand out in bold. You can also add a class to that for CSS.