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!
CSS is a styling part of adding onto HTML. CSS can do a lot of things, adding color to text, adding a background color, and more!
Here is the HTML example with CSS added:
This website is about hacking!
Do you know anything about hacking?
Here is the HTML code that made this:
Welcome to my website! This website is about hacking!
Do you know anything about hacking?
Here is the CSS code that made this
#css-examp {
background: gray;
padding: 5px;
}
#css-examp p {
color: black;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
.hacking {
color: red;
}
#css-examp {
background: gray;
padding: 5px;
}
The command, "background:;" means that the background in that div is going to be a certain color. Since the full command is, "background:gray;" the background will be gray.
The command, "padding:;" tells the div how much space is needed along the borders. In this case, there is a 5px padding on each side.
#css-examp p {
color: black;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
The command "color:;" tells the website what color the text should be while it is in that div. In this case, the command is "color:black;" so therefor the color of the text is black.
The "font-family:;" command tells you what sort of font to use in the text. In this case is using the serif font, Palatino Linotype.
.hacking {
color: red;
}
The same thing as before, the command "color:;" tells the text what color it should be and in this case it is red.
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:
This website is about hacking!
Do you know anything about hacking?
Here is the HTML code that made this:
Welcome to my website! This website is about hacking!
Do you know anything about hacking?
Welcome to my website! This website is about hacking!
The HTML command " < p> < /p>" is the paragraph command. This command is standard for most text.
Welcome to my website!
The " < center> < /center>" command, centers the text.
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".
Do you know anything about hacking?
The " < strong> < /strong>" command makes the text in that command stand out in bold. You can also add a class to that for CSS.