What Are HTML & CSS?
What Are HTML & CSS?
HTML, HyperText Markup Language, gives content structure and meaning by defining that content as, for example, headings, paragraphs, or images. CSS, or Cascading Style Sheets, is a presentation language created to style the appearance of content—using, for example, fonts or colors.The two languages—HTML and CSS—are independent of one another and should remain that way. CSS should not be written inside of an HTML document and vice versa. As a rule, HTML will always represent content, and CSS will always represent the appearance of that content.
With this understanding of the difference between HTML and CSS, let’s dive into HTML in more detail.
Understanding Common HTML Terms#common-html-terms
While getting started with HTML, you will likely encounter new—and often strange—terms. Over time you will become more and more familiar with all of them, but the three common HTML terms you should begin with are elements, tags, and attributes.Elements
Elements are designators that define the structure and content of objects within a page. Some of the more frequently used elements include multiple levels of headings (identified as<h1>
through <h6>
elements) and paragraphs (identified as the <p>
element); the list goes on to include the <a>
, <div>
, <span>
, <strong>
, and <em>
elements, and many more.Elements are identified by the use of less-than and greater-than angle brackets,
< >
, surrounding the element name. Thus, an element will look like the following:
Comments
Post a Comment