Tuesday, February 26, 2013

Marking Up Text Content in HTML & The Head

Last week we went over attributions and how to change the look of your text content within your browser by altering the HTML text with specific attributions. The <head> contains the most instructions for your browser. Setting the character encoding tells the browser what characters will be used for your browser.

Example:<meta charset="utf-8" />


<!DOCTYPE html>
<html lang="en-GB">
<head>

<meta charset="utf-8">
<title>I am a title example</title>
<meta name="keywords" content="HTML,CSS,Example,Keywords">
<meta name="description" content="A class example showing the various components of the head element">
</head>
</html>
Like always, you need to close the tags but you can add more content by specifying the variations to be made to the <head>. You can also add external files and Java script with the <script> tag.  In order to add styles and CSS you modify the <style> tag to your document.


You also add more by marking up your text content within the HTML by adding certain attributions to your tags such as <em> for emphasis, <i> for italic, <strong> for a bold look, as well as a variety of other attributions that include timestamps, quotes, font size, a strike through and other various alterations to the text.

No comments:

Post a Comment