WebMasterCampus
WEB DEVELOPER Resources

CSS Styling Div Heading Image

CSS Styling Div Heading Image


Div Tag

The html <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.

The html <div> tag is easily styled by using the class or id attribute.

Any sort of content can be put inside the html <div> tag!

Heading Tag

HTML headings are titles or subtitles that you want to display on a webpage.

The html<h1> to html <h6> HTML elements represent six levels of section headings.

html<h1> defines the most important heading. html <h6> defines the least important heading.

Search engines use the headings to index the structure and content of your web pages.

void element or self-closing Tag

void element are those that cannot have any child content and cannot have an end tag.

Image Tag

The HTML html <img> tag is used to embed an image in a web page.

Image Tag requires two attributes to be useful: src and alt.

Without a src attribute, an img element has no image to load.

the src attribute can be a relative URL or an absolute URL.

Can define width and height attribute but not recommended in html. Instead control via css is better choice.

Created with love and passion.