LEARNING TO DESIGN: WHY HTML IS NOT A PROGRAMMING LANGUAGE

Let's talk programming and HTML.

— Chelsea ♥



 

As a good number of you who watch the She Designs Things YouTube channel may know, I don't consider myself a developer. Sure there are things I do that are most definitely considered backend development, but I wouldn't bother to add that to my title because my wheelhouse are markup languages. There are many markup languages including HTML, XHTML,  XML and PVL, to name a few. For the sake of this blog post, let's stick to the basic HTML. However, when I say HTML(Hypertext Markup Language), I'm referring to HTML5 (Hypertext Markup Language 5). HTML and HTML5, might seem the same but they are slightly different. Both HTML and HTML5 are hypertext markup languages, used to develop web pages or applications. HTML5 is the latest version of HTML and supports new markup language functionalities like multimedia, new tags, elements, and API's. HTML5 also supports audio and video.


Why Not Programming?



HTML, which stands for Hypertext Markup Language, is a markup language commonly used for defining the structure and content of web pages. Unlike traditional programming languages like Python, Java, or C++, HTML doesn't have the ability to perform logical operations or control structures. HTML uses a set of predefined tags to format text, images, and other content. For example, the <p> tag is used to define a paragraph of text, the <img> tag is used to embed images, and the <a> tag is used to create hyperlinks. These tags tell the web browser how to display the content, but they don’t contain any programming logic.  This means that it is not considered a programming language in the traditional sense. Think of it as the skeleton of the website. It still needs a brain to function. Speaking of functions, how do we start a programmatic code in JavaScript? We write function!


function myFunc(theObject) {

  theObject.make = "Toyota";

}


const mycar = {

  make: "Honda",

  model: "Accord",

  year: 1998,

};



So what's a script?



Scripting languages are used to add interactivity and dynamic behavior to a web page.  You can combine HTML with other scripting languages, such as JavaScript and Python to create dynamic web pages that can change in response to user input or other events. 


What about css?


An HTML document can include separate files called Cascading Style Sheets (CSS) documents (which are also text files) which tell the web browser what the page will look like. You don't need CSS, but it makes it helpful to create web pages faster other than manually writing each style. CSS is the first technology you should start learning after HTML. While HTML is used to define the structure and semantics of your content, CSS is used to style it and lay it out. For example, you can use CSS to alter the font, color, size, and spacing of your content, split it into multiple columns, or add animations and other decorative features. After you have learned CSS, move into learning JavaScript. Javascript is how pages go from sitting static to becoming alive.


If you would like to learn more about web development I recommend starting with MDN Web Docs. And if you want to learn to design inside of Google Sites, checkout The Design School by She Designs Things.

0 comments