Things you'll think will impress you mates, things that are inprinted on you, like my bro he was called chuckles because of his insane laughter, hilarious.
However thats not what i'm here to talk about. I'm here to talk about HTML(Hyper Text Marketing Language).
Clean Code...
Clean code means that your HTML coding follows all specifications, I personally don't use true clean code, but very close to it. Here are a few ways to keep your code clean:
Don't type special characters into your code, instead type their escape code... many characters should NEVER be typed directly into HTML code... for example the "<", ">", the "©", "&", and the " itself. Instead, type &escape_code; (Ampersand, Escape Code for Character, then a semicolon). For these 5 characters, here are the escape codes...
For the < type <
For the > type >
For the © type ©
For the & type &
For the " type "
Use quotes around values in attributes... For example, if you want a horizontal rule that is half of the screen width, type
rather than
, or if you want one that is size 5 type
rather than
. Isn't it ironic that I don't?
Don't overlap tags... Overlapping occurs when Tag A starts, Tag B starts, Tag A closes, then Tag B closes. This will cause errors in sensitive browsers. For Example, it will not render correctly in Navigator 4.0 Beta1, Netscape purposefully built into the browser so developers could catch errors. Examples:
Wrong Way (Overlaps):This is Bold and One Font Size BiggerRight Way (Doesn't Overlap):This is Bold and One Font Size Bigger
Wrong Way (Overlaps):This link is italicizedRight Way (Doesn't Overlap):This link is italicized
The page you are viewing right now is an HTML document. HTML documents look a lot like word processing documents...
You can have bold and italicized, Larger and Smaller, or it could look type-written.
Of course, the HTML code for this looks like a bunch of gibberish...
You can have bold and italicized, Larger and Smaller, or it could look type-written.
So what are all these "<" and ">" things doing here?
When you place a certain thing within these you are making something known as a tag. For example the tag is saying to start bold text, and the tag is saying to stop bold text. The tag with the slash (/) is known as the closing tag. Many opening tags require a following closing tag, but not all do. Tags make up the entire structure of an HTML document.
E.g.<>This Text is Bold< / b >
^^^^^--Opening Tag ^^^^^--Closing Tag
Here are two pieces of HTML code, the second of the two has an error in it, what is it?
#1 - Bob jumped OVER the fence.
#1 - Bob jumped <>OVER< / b > the fence.
#2 - Bob jumped UNDER the fence.
#2 - Bob jumped <>UNDER< / b > the fence.
You should have noticed that the second code is missing a slash (/) in the tag after the word UNDER, which causes the web brows
