0% found this document useful (0 votes)
6 views1 page

HTML5 and CSS Styling Basics

The document provides a brief overview of HTML5 and CSS elements, including the use of H1 and H2 tags for titles and subheadings, respectively. It explains how to create paragraphs with <p> tags and includes examples of inline styles and CSS selectors for styling elements. Additionally, it mentions the use of CSS classes for further styling of elements.

Uploaded by

sarah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

HTML5 and CSS Styling Basics

The document provides a brief overview of HTML5 and CSS elements, including the use of H1 and H2 tags for titles and subheadings, respectively. It explains how to create paragraphs with <p> tags and includes examples of inline styles and CSS selectors for styling elements. Additionally, it mentions the use of CSS classes for further styling of elements.

Uploaded by

sarah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HTML5 + CSS

H1 element = title
H2 element = subheadings
(opening tag = <h1> and closing tag = </h1>

p elements = normal= sized paragraph text on websites


<p> (insert text) </p>

comments = <!— end of comment = 

Set styles e.g - <h2 style=”color: blue”>CatPhotoApp</h2> THIS IS CALLED


AN INLINE STYLE

CSS Selectors to style elements:


<style> and </style>
to make all h2 elements red = <style> h2 {color: red; } </style>

<style>
h2 {color: blue;}
</style>
<h2>CatPhotoApp</h2>

CSS Class to Style an Element -

You might also like