HTML5 Overview
HTML5 Overview
HTML5 is the latest major revision of the HyperText Markup Language, the core standard for
structuring and presenting content on the web. Developed by the WHATWG and later adopted
by the W3C, HTML5 introduced significant enhancements over previous versions, including
native support for audio, video, offline storage, and more robust APIs, reducing the need for
plugins like Flash [1] .
CSS: Introduction
CSS (Cascading Style Sheets) is a stylesheet language used to control the presentation,
formatting, and layout of HTML elements. It separates content (HTML) from presentation,
making web development more efficient and maintainable. CSS allows you to control colors,
fonts, spacing, alignment, and more, across multiple pages with a single stylesheet [2] [3] .
Class Selector: Targets elements with a specific class attribute (e.g., .classname {}).
Font Properties
CSS font properties control the appearance of text:
font-family: Sets the typeface (e.g., Arial, sans-serif).
p {
font: italic bold 16px/1.5 Arial, sans-serif;
}
List Properties
CSS can style lists using the list-style property, which is shorthand for:
list-style-type: Disc, circle, square, decimal, etc.
list-style-position: Inside or outside the list item.
list-style-image: Custom image as the list marker [8] .
Example:
ul {
list-style: square inside url('marker.png');
}
Color
The color property sets the text color. You can use:
Color names (e.g., red)
Hex codes (e.g., #ff0000)
RGB/RGBA (e.g., rgb(255,0,0))
HSL/HSLA (e.g., hsl(0, 100%, 50%)) [9] .
Example:
h1 {
color: #3366cc;
}
Alignment of Text
Text alignment is controlled with the text-align property:
left, right, center, justify
Example:
p {
text-align: center;
}
The <span> and <div> Tags
<span>: An inline container used to mark up a part of a text or a document. Useful for styling
small sections of text.
<div>: A block-level container used to group larger sections of content or elements for
styling or layout purposes.
Example:
Summary:
HTML5 and CSS3 together enable modern, responsive, and interactive web design. HTML5
structures content and introduces new APIs, while CSS3 provides powerful styling, layout, and
animation capabilities, making web development more efficient and visually appealing.
⁂
1. https://www.spiceworks.com/tech/tech-general/articles/what-is-html-five/
2. https://www.tutorialspoint.com/css/what_is_css.htm
3. https://www.w3schools.com/html/html_css.asp
4. https://pressbooks.library.torontomu.ca/webdesign/chapter/chapter-5-css-forms/
5. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units
6. https://www.tutorialspoint.com/css/css_selectors.htm
7. https://www.w3schools.com/cssref/pr_font_font.php
8. https://www.w3schools.com/cssref/pr_list-style.php
9. https://www.w3schools.com/cssref/pr_text_color.php