What are CSS and HTML?
HTML and CSS are the building blocks of the Internet. Without these types of markup code, the Internet would not exist.
What is HTML?
HTML (Hypertext Markup Language) is a language which all computers everywhere can understand and use. Every computer in the world can turn HTML to handle text, images, and videos. This coding language is what makes the World Wide Web possible. HTML can be identified within code because it occurs in angle-brackets such as
<br> to label all parts of the page which are being displayed.
Four basic markup tags are used for HTML formatting of text and images:
<p>creates a paragraph. The
<p>tag should be closed with a corresponding
<div>defines a division (section) of an HTML document. The
<div>tag should be closed with a corresponding
<br>is a line break to create a new line of text. A closing tag is not needed.
<hr>is a line break to create a new line of text, but instead of a simple line break it creates an actual line on your page. A closing tag is not needed.
Property tags such as
background-color can be added to
What is CSS?
CSS (Cascading Style Sheets) is a markup code that controls the visual aspects of a page. CSS codes are in the form:
property: value;. They can be included within HTML code using
style="" (see the
style markup?). For example,
<p style="background-color: yellow"> means "make the paragraph's background yellow."
make the paragraph's background yellow
A "style sheet" means your entire site can be controlled from a single page of CSS markup. Each part of your site can be labeled with a piece of markup code to control its appearance. If you want neon pink text on a grey background, you can write CSS to control that.
Tip: Check your site on different browsers.
Not all computers are equal. Your code may display differently on different computers. Take a few minutes to check that your code both works and looks the way you want it to look on different computers.