What does it mean for a tag to be rendered?

Question

This exercise says that tags will be rendered. What does it mean for a tag to be rendered?

Answer

A key component of a web browser is its rendering engine. The rendering engine takes HTML code and renders it or interprets it into what we see visually on the page. A tag like <em> together with the browser’s default style sheet, instructs the rendering engine to display this tag’s content in italics, thereby emphasizing its content.

35 Likes

That was very interesting. Thanks for that.

14 Likes

So can we change how to browser interprets a tag like with our own CSS or are certain tags defaulted by the browser always (like h1, h2; em and strong etc)?

3 Likes

Every browser has default interpretations for tags, yes. As mentioned in the lesson, content in tags will usually display as italicized text and content in tags will display as bolded text. However, the browser is programmed to look first for any CSS instructions in (or linked to) the document it is rendering. If the CSS instructions say to display text marked up with tags with pink underlines, or h1 headings as half the font size of regular paragraph text, that’s what the browser will do.

Hth

23 Likes

Thanks for the answers

1 Like

render , fancy word for what is “painted in the browser”.
render = the visualization of the element or the code for human. this is going to be useful when you learn react

10 Likes

So what your saying is that the CSS code takes priority over the HTML mark ups?

Could you also describe rendering as a “graphic” visualization of the element or code for the user?

i think i am getting closer

1 Like

this course is really getting intresting but the course is a very wide one

2 Likes

big thanks to codecademy

2 Likes

so in other words rendering means interpreting